HF-TMC51x0 Driver (TMC5130 & TMC5160) 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC51x0 (TMC5130 & TMC5160)
Loading...
Searching...
No Matches
TestUnitSettings Struct Reference

Test unit settings - synchronized with test machine via ESP-NOW. More...

#include <espnow_protocol.hpp>

Public Attributes

uint32_t cycle_amount = 300
 Target cycles (0 = infinite)
 
float oscillation_vmax_rpm = 60.0f
 Max velocity during oscillation (RPM)
 
float oscillation_amax_rev_s2 = 10.0f
 Acceleration during oscillation (rev/s²)
 
uint32_t dwell_time_ms = 500
 Dwell at endpoints (ms)
 
bool bounds_method_stallguard = true
 true = StallGuard2, false = encoder
 
float bounds_search_velocity_rpm = 0.0f
 Search speed during bounds finding (RPM, 0 = use test config default)
 
float stallguard_min_velocity_rpm = 0.0f
 Min velocity for StallGuard2 (RPM, 0 = use test config default)
 
float stall_detection_current_factor = 0.0f
 Current reduction factor (0.0-1.0, 0 = use test config default)
 
float bounds_search_accel_rev_s2 = 0.0f
 Search acceleration (rev/s², 0 = use test config default)
 
int8_t stallguard_sgt = 0
 StallGuard threshold [-64..63], 127 = use test config default.
 

Detailed Description

Test unit settings - synchronized with test machine via ESP-NOW.

These settings control the fatigue test behavior.

PROTOCOL V2: Uses direct velocity/acceleration control instead of cycle time.

Member Data Documentation

◆ bounds_method_stallguard

bool TestUnitSettings::bounds_method_stallguard = true

true = StallGuard2, false = encoder

◆ bounds_search_accel_rev_s2

float TestUnitSettings::bounds_search_accel_rev_s2 = 0.0f

Search acceleration (rev/s², 0 = use test config default)

◆ bounds_search_velocity_rpm

float TestUnitSettings::bounds_search_velocity_rpm = 0.0f

Search speed during bounds finding (RPM, 0 = use test config default)

◆ cycle_amount

uint32_t TestUnitSettings::cycle_amount = 300

Target cycles (0 = infinite)

◆ dwell_time_ms

uint32_t TestUnitSettings::dwell_time_ms = 500

Dwell at endpoints (ms)

◆ oscillation_amax_rev_s2

float TestUnitSettings::oscillation_amax_rev_s2 = 10.0f

Acceleration during oscillation (rev/s²)

◆ oscillation_vmax_rpm

float TestUnitSettings::oscillation_vmax_rpm = 60.0f

Max velocity during oscillation (RPM)

◆ stall_detection_current_factor

float TestUnitSettings::stall_detection_current_factor = 0.0f

Current reduction factor (0.0-1.0, 0 = use test config default)

◆ stallguard_min_velocity_rpm

float TestUnitSettings::stallguard_min_velocity_rpm = 0.0f

Min velocity for StallGuard2 (RPM, 0 = use test config default)

◆ stallguard_sgt

int8_t TestUnitSettings::stallguard_sgt = 0

StallGuard threshold [-64..63], 127 = use test config default.


The documentation for this struct was generated from the following file: