Remote Controlled Servo (RC Servo)#
Soft Driver#
Defined in namespace hal::soft
#include <libhal-soft/rc_servo.hpp>
-
class rc_servo : public hal::servo#
Generic RC servo driver.
Public Functions
-
struct settings#
Information about the RC servo needed to control it properly.
Public Members
-
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.
-
std::uint32_t min_microseconds = 1000#
The minimum pulse width in microseconds that maps to the minimum angle of the servo.
-
std::uint32_t max_microseconds = 2000#
The maximum pulse width in microseconds that maps to the maximum angle of the servo.
-
hal::hertz frequency = 50#
-
struct settings#