Skip to content

Struct hal::soft::rc_servo::settings

ClassList > hal > soft > rc_servo > settings

Information about the RC servo needed to control it properly.

  • #include <rc_servo.hpp>

Public Attributes

Type Name
hal::hertz frequency = = 50
PWM signal frequency. Check the documentation for the RC servo to determine what range of frequencies can be used with it.
hal::degrees max_angle = = 90
The physical maximum angle that the servo shaft can move to.
std::uint32_t max_microseconds = = 2000
The maximum pulse width in microseconds that maps to the maximum angle of the servo.
hal::degrees min_angle = = 0
The physical minimum angle that the servo shaft can move to.
std::uint32_t min_microseconds = = 1000
The minimum pulse width in microseconds that maps to the minimum angle of the servo.

Public Attributes Documentation

variable frequency

hal::hertz hal::soft::rc_servo::settings::frequency;

variable max_angle

hal::degrees hal::soft::rc_servo::settings::max_angle;

variable max_microseconds

std::uint32_t hal::soft::rc_servo::settings::max_microseconds;

variable min_angle

hal::degrees hal::soft::rc_servo::settings::min_angle;

variable min_microseconds

std::uint32_t hal::soft::rc_servo::settings::min_microseconds;

The documentation for this class was generated from the following file libraries/include/libhal-soft/rc_servo.hpp