Struct SYN_Actuator_Config¶
ClassList > SYN_Actuator_Config
Actuator configuration.
#include <syn_actuator.h>
Public Attributes¶
| Type | Name |
|---|---|
| SYN_DCMotor * | dc_motor |
| int32_t | deadband |
| SYN_ErrLog * | errlog |
| int32_t | pid_kd |
| int32_t | pid_ki |
| int32_t | pid_kp |
| uint8_t | pid_scale |
| void * | read_ctx |
| SYN_MotorCtrl_ReadPos | read_pos |
| int32_t | stall_threshold |
| uint16_t | stall_timeout_ms |
| int32_t | stroke_max |
| int32_t | stroke_min |
| uint16_t | update_hz |
Public Attributes Documentation¶
variable dc_motor¶
DC motor for actuation
variable deadband¶
Position deadband (ADC units)
variable errlog¶
Optional error logging
variable pid_kd¶
PID derivative gain
variable pid_ki¶
PID integral gain
variable pid_kp¶
PID proportional gain
variable pid_scale¶
Gain divisor = 1 << pid_scale
variable read_ctx¶
Context for read_pos
variable read_pos¶
Read potentiometer (returns int32_t)
variable stall_threshold¶
Min motion for "not stalled"
variable stall_timeout_ms¶
0 = disabled
variable stroke_max¶
ADC value at fully extended
variable stroke_min¶
ADC value at fully retracted
variable update_hz¶
Control loop frequency
The documentation for this class was generated from the following file src/syntropic/motor/syn_actuator.h