Struct SYN_FOCEncoder¶
Sensored Encoder State.
#include <syn_foc_encoder.h>
Public Attributes¶
| Type | Name |
|---|---|
| SYN_FOCEncoderConfig | config |
| int32_t | count |
| q16_t | elec_angle_rad |
| q16_t | elec_speed_rad_s |
| uint8_t | hall_state |
| int32_t | prev_count |
Public Attributes Documentation¶
variable config¶
Encoder configuration parameters
variable count¶
Current raw pulse count
variable elec_angle_rad¶
Calculated electrical angle (0 to 2*PI in Q16)
variable elec_speed_rad_s¶
Calculated electrical speed in Q16 rad/s
variable hall_state¶
Hall sensor 3-bit state (1 to 6)
variable prev_count¶
Previous raw pulse count
The documentation for this class was generated from the following file src/syntropic/motor/syn_foc_encoder.h