#include <universalservo.h>
Collaboration diagram for UniversalServo:

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 |
|
||||||||||||||||||||||||||||||||
|
min and max values are understood as travel bounds. power is the power of the servo |
|
||||||||||||
|
returns the position of the hinge in ranges [-1, 1] (scaled by min, max)
|
|
|
returns the position of the hinge in ranges [-1, 1] (scaled by min, max)
|
|
|
returns the position of the hinge in ranges [-1, 1] (scaled by min, max)
|
|
||||||||||||
|
sets the set point of the servo. Position must be between -1 and 1. It is scaled to fit into min, max |
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.8