#include <SERVO_Base.h>
Recomended PWM pins: 2,4,12-19,21-23,25-27,32-33
Public Member Functions | |
virtual void | begin ()=0 |
Begin the servo motor. | |
virtual void | set (float rotation)=0 |
Set the rotation (percent) of the servo motor. | |
void | setAngle (int angle) |
Set the angle (degrees) of the servo motor. | |
virtual SERVO_Base ** | getFollowers () |
Get the followers for the servo motor. | |
virtual void | updateFollowers (float rotation) |
Update the followers of the servo motor. |
Protected Attributes | |
int | minDeg = 0 |
int | maxDeg = 180 |
int | inverted = 0 |
int | offset = 0 |
int | minPulse = 1000 |
int | maxPulse = 2000 |
SERVO_Base * | followers [2] = {} |
|
pure virtual |
Begin the servo motor.
|
inlinevirtual |
Get the followers for the servo motor.
|
pure virtual |
Set the rotation (percent) of the servo motor.
rotation | The rotation (percent) to set the servo motor to |
|
inline |
Set the angle (degrees) of the servo motor.
angle | The angle (degrees) to set the servo motor to |
|
inlinevirtual |
Update the followers of the servo motor.
speed | The speed to set the followers to servo motor internally calls this, not necessary to call this externally |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |