23#ifndef COMPILE_FOR_HOST
61#ifndef COMPILE_FOR_HOST
79 unsigned int minPulse = 1000,
unsigned int maxPulse = 2000,
80 unsigned int frequency = 50);
82 explicit Servo(
unsigned int minPulse = 1000,
unsigned int maxPulse = 2000,
83 unsigned int frequency = 50);
101 void setPosition(
float position,
bool limited =
true);
137#ifndef COMPILE_FOR_HOST
Driver for easy access to the PWM capabilities of the general purpose timers.
Driver to operate a PWM controlled servo motor.
ServoData getState()
Returns the current position and the current timestamp.
void setPosition360Deg(float degrees)
void setPosition90Deg(float degrees)
void enable()
Starts producing the PWM signal.
void setPosition180Deg(float degrees)
float getPosition180Deg()
void disable()
Stops producing the PWM signal.
Servo(TIM_TypeDef *const timer, TimerUtils::Channel pwmChannel, unsigned int minPulse=1000, unsigned int maxPulse=2000, unsigned int frequency=50)
Prepare the timer and sets the PWM output to the minimum.
void setPosition(float position, bool limited=true)
Set the position of the servomotor.
float getPosition()
Returns the current position of the servomotor.
void setPosition120Deg(float degrees)
float getPosition360Deg()
This file includes all the types the logdecoder script will decode.