31 #define MIN_PULSE_WIDTH 600
32 #define MAX_PULSE_WIDTH 2500
38 #define DEFAULT_WAIT_DISABLE_PWM 0
66 Servo (
int pin,
int minPulseWidth,
int maxPulseWidth);
77 Servo (
int pin,
int minPulseWidth,
int maxPulseWidth,
int waitAndDisablePwm);
150 int calcPulseTraveling (
int value);
155 mraa_pwm_context m_pwmServoContext;
162 int m_waitAndDisablePwm;
165 void init (
int pin,
int minPulseWidth,
int maxPulseWidth,
int waitAndDisablePwm);
mraa_result_t setAngle(int angle)
Definition: servo.cxx:60
void setMinPulseWidth(int width)
Definition: servo.cxx:110
void setMaxPulseWidth(int width)
Definition: servo.cxx:115
int getPeriod()
Definition: servo.cxx:135
std::string name()
Definition: servo.h:102
void setPeriod(int period)
Definition: servo.cxx:120
int getMaxPulseWidth()
Definition: servo.cxx:130
int getMinPulseWidth()
Definition: servo.cxx:125
~Servo()
Definition: servo.cxx:46
Servo(int pin)
Definition: servo.cxx:34
mraa_result_t haltPwm()
Definition: servo.cxx:82