Base class for other servo components.
More...
PMOD pins for MAX44000PMB1 board
|
int | calcPulseTraveling (int value) |
|
|
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_maxPeriod |
|
Instanciates a servo object
- Parameters
-
mraa_result_t setAngle |
( |
int |
angle | ) |
|
Set the of the servo engine.
X = between (MIN_PULSE_WIDTH , MAX_PULSE_WIDTH)
X usec
|_______________________________________ 20000 usec
Max period can be only 7968750(nses) which is ~8(msec) so the servo will not work as expected.
- Parameters
-
angle | number between 0 and 180 |
Return name of the component
void setMinPulseWidth |
( |
int |
width | ) |
|
Set min pulse width
- Parameters
-
void setMaxPulseWidth |
( |
int |
width | ) |
|
Set max pulse width
- Parameters
-
void setMaxPeriod |
( |
int |
width | ) |
|
Set max period width
- Parameters
-
Return max PWM period width
The documentation for this class was generated from the following files:
- /var/lib/jenkins/workspace/upm-doc/src/servo/servo.h
- /var/lib/jenkins/workspace/upm-doc/src/servo/servo.cxx