Struct sstep_status¶
Snapshot returned by sstep_get_status() , in engineering units.
#include <sstep_ctrl.h>
Public Attributes¶
| Type | Name |
|---|---|
| int32_t | emf_d_mv Filtered back-EMF estimate along the commanded current vector [mV]; 0 when stall detection is off. |
| int32_t | emf_q_mv Filtered back-EMF estimate 90 degrees ahead of the commanded current vector [mV]; 0 when stall detection is off. |
| uint16_t | faults Active SSTEP_FAULT_OVERCURRENT ... flags. |
| int32_t | i_a_ma Last measured phase A current [mA]. |
| int32_t | i_b_ma Last measured phase B current [mA]. |
| int32_t | load_angle_cdeg Estimated load angle, commanded minus rotor electrical angle [0.01 deg], same sign as the motor torque. |
| int32_t | position Commanded position [microsteps]. |
| int32_t | rotor_velocity Estimated rotor velocity [microsteps/s], from the back-EMF magnitude; 0 when stall detection is off. |
| uint8_t | stall_level_pct Stall detector level, 0 . |
| enum sstep_state | state Driver state. |
| int32_t | target Target of the current move [microsteps]. |
| uint32_t | vbus_mv Last measured bus voltage [mV]. |
| int32_t | velocity Commanded velocity [microsteps/s]. |
Public Attributes Documentation¶
variable emf_d_mv¶
Filtered back-EMF estimate along the commanded current vector [mV]; 0 when stall detection is off.
variable emf_q_mv¶
Filtered back-EMF estimate 90 degrees ahead of the commanded current vector [mV]; 0 when stall detection is off.
variable faults¶
Active SSTEP_FAULT_OVERCURRENT ... flags.
variable i_a_ma¶
Last measured phase A current [mA].
variable i_b_ma¶
Last measured phase B current [mA].
variable load_angle_cdeg¶
Estimated load angle, commanded minus rotor electrical angle [0.01 deg], same sign as the motor torque.
variable position¶
Commanded position [microsteps].
variable rotor_velocity¶
Estimated rotor velocity [microsteps/s], from the back-EMF magnitude; 0 when stall detection is off.
variable stall_level_pct¶
Stall detector level, 0 .
. 100 % of the trip.
variable state¶
Driver state.
variable target¶
Target of the current move [microsteps].
variable vbus_mv¶
Last measured bus voltage [mV].
variable velocity¶
Commanded velocity [microsteps/s].
The documentation for this class was generated from the following file inc/sstep_ctrl.h