Skip to content

Struct SYN_FOCEncoder

ClassList > 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

SYN_FOCEncoderConfig SYN_FOCEncoder::config;

Encoder configuration parameters


variable count

int32_t SYN_FOCEncoder::count;

Current raw pulse count


variable elec_angle_rad

q16_t SYN_FOCEncoder::elec_angle_rad;

Calculated electrical angle (0 to 2*PI in Q16)


variable elec_speed_rad_s

q16_t SYN_FOCEncoder::elec_speed_rad_s;

Calculated electrical speed in Q16 rad/s


variable hall_state

uint8_t SYN_FOCEncoder::hall_state;

Hall sensor 3-bit state (1 to 6)


variable prev_count

int32_t SYN_FOCEncoder::prev_count;

Previous raw pulse count



The documentation for this class was generated from the following file src/syntropic/motor/syn_foc_encoder.h