|
Public Member Functions |
| UniversalServo (UniversalJoint *joint, double min1, double max1, double power1, double min2, double max2, double power2) |
| min and max values are understood as travel bounds.
|
void | set (double position1, double position2) |
| sets the set point of the servo.
|
double | get1 () |
| returns the position of the hinge in ranges [-1, 1] (scaled by min, max)
|
double | get2 () |
| returns the position of the hinge in ranges [-1, 1] (scaled by min, max)
|
void | get (double &p1, double &p2) |
| returns the position of the hinge in ranges [-1, 1] (scaled by min, max)
|
void | setPower (double power1, double power2) |
Private Attributes |
PID | pid1 |
PID | pid2 |
double | min1 |
double | max1 |
double | min2 |
double | max2 |
UniversalJoint * | joint |