Skip to content

Struct SYN_Servo

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

uint16_t SYN_Servo::angle_range;

Full range in degrees (e.g., 180)


variable current_us

uint16_t SYN_Servo::current_us;

Current pulse width (µs)


variable last_tick

uint32_t SYN_Servo::last_tick;

Last update tick


variable pulse_max

uint16_t SYN_Servo::pulse_max;

Maximum pulse width in µs (e.g., 2000)


variable pulse_min

uint16_t SYN_Servo::pulse_min;

Minimum pulse width in µs (e.g., 1000)


variable rate

int32_t SYN_Servo::rate;

Movement rate (µs per ms), 0 = instant


variable target_us

uint16_t SYN_Servo::target_us;

Target pulse width (µs)



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