#include <oneaxisservo.h>
Inherits OneAxisServo.
Inheritance diagram for OneAxisServoCentered:


Public Member Functions | |
| OneAxisServoCentered (OneAxisJoint *joint, double _min, double _max, double power, double damp=0.2, double integration=2, double maxVel=10.0, double jointLimit=1.3) | |
| min and max values are understood as travel bounds. | |
| virtual | ~OneAxisServoCentered () |
| virtual void | set (double pos) |
| sets the set point of the servo. | |
| virtual double | get () |
| returns the position of the slider in ranges [-1, 1] (scaled by min, max, centered) | |
| OneAxisServoCentered | ( | OneAxisJoint * | joint, | |
| double | _min, | |||
| double | _max, | |||
| double | power, | |||
| double | damp = 0.2, |
|||
| double | integration = 2, |
|||
| double | maxVel = 10.0, |
|||
| double | jointLimit = 1.3 | |||
| ) | [inline] |
min and max values are understood as travel bounds.
The zero position is max-min/2
| virtual ~OneAxisServoCentered | ( | ) | [inline, virtual] |
| virtual double get | ( | ) | [inline, virtual] |
returns the position of the slider in ranges [-1, 1] (scaled by min, max, centered)
Reimplemented from OneAxisServo.
| virtual void set | ( | double | pos | ) | [inline, virtual] |
sets the set point of the servo.
Position must be between -1 and 1. It is scaled to fit into min, max, however 0 is just in the center of min and max
Reimplemented from OneAxisServo.
1.4.7