upm
0.5.1
Sensor/Actuator repository for libmraa (v0.9.1)
|
API for the ES08A Servo. More...
This module defines the ES08A interface for ES08A servos. Like other servos, the ES08A servo has a shaft that can be controlled by setting the desired angle. There are also routines for setting and getting the minimum and maximum pulse width as well as the maximum period.
Public Member Functions | |
ES08A (int pin) | |
~ES08A () | |
Public Member Functions inherited from Servo | |
Servo (int pin) | |
Servo (int pin, int minPulseWidth, int maxPulseWidth) | |
Servo (int pin, int minPulseWidth, int maxPulseWidth, int waitAndDisablePwm) | |
~Servo () | |
mraa_result_t | setAngle (int angle) |
mraa_result_t | haltPwm () |
std::string | name () |
void | setMinPulseWidth (int width) |
void | setMaxPulseWidth (int width) |
void | setPeriod (int period) |
int | getMinPulseWidth () |
int | getMaxPulseWidth () |
int | getPeriod () |
Additional Inherited Members | |
Protected Member Functions inherited from Servo | |
int | calcPulseTraveling (int value) |
Protected Attributes inherited from Servo | |
std::string | m_name |
int | m_servoPin |
float | m_maxAngle |
mraa_pwm_context | m_pwmServoContext |
int | m_currAngle |
int | m_minPulseWidth |
int | m_maxPulseWidth |
int | m_period |
int | m_waitAndDisablePwm |