Struct SYN_Servo¶
Hobby servo instance — pulse range, position, smooth movement.
#include <syn_servo.h>
Public Attributes¶
| Type | Name |
|---|---|
| uint16_t | angle_range |
| uint16_t | current_us |
| uint32_t | last_tick |
| uint16_t | pulse_max |
| uint16_t | pulse_min |
| int32_t | rate |
| uint16_t | target_us |
Public Attributes Documentation¶
variable angle_range¶
Full range in degrees (e.g., 180)
variable current_us¶
Current pulse width (µs)
variable last_tick¶
Last update tick
variable pulse_max¶
Maximum pulse width in µs (e.g., 2000)
variable pulse_min¶
Minimum pulse width in µs (e.g., 1000)
variable rate¶
Movement rate (µs per ms), 0 = instant
variable target_us¶
Target pulse width (µs)
The documentation for this class was generated from the following file src/syntropic/motor/syn_servo.h