#include <oneaxisservo.h>
Collaboration diagram for OneAxisServo:

Public Member Functions | |
| OneAxisServo (OneAxisJoint *joint, double _min, double _max, double power, double damp=0.2, double integration=2, double maxVel=10.0) | |
| min and max values are understood as travel bounds. | |
| virtual | ~OneAxisServo () |
| 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) | |
| virtual void | setMinMax (double _min, double _max) |
| virtual void | setPower (double power) |
| adjusts the power of the servo | |
| virtual double & | power () |
| returns the power of the servo | |
| virtual double & | damping () |
| returns the damping of the servo | |
| virtual double & | offsetCanceling () |
| returns the damping of the servo | |
| OneAxisServo | ( | OneAxisJoint * | joint, | |
| double | _min, | |||
| double | _max, | |||
| double | power, | |||
| double | damp = 0.2, |
|||
| double | integration = 2, |
|||
| double | maxVel = 10.0 | |||
| ) | [inline] |
min and max values are understood as travel bounds.
Min should be less than 0.
| virtual ~OneAxisServo | ( | ) | [inline, virtual] |
| virtual double& damping | ( | ) | [inline, virtual] |
returns the damping of the servo
| virtual double get | ( | ) | [inline, virtual] |
returns the position of the slider in ranges [-1, 1] (scaled by min, max)
| virtual double& offsetCanceling | ( | ) | [inline, virtual] |
returns the damping of the servo
| virtual double& power | ( | ) | [inline, virtual] |
returns the power of the servo
| 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
| virtual void setMinMax | ( | double | _min, | |
| double | _max | |||
| ) | [inline, virtual] |
| virtual void setPower | ( | double | power | ) | [inline, virtual] |
adjusts the power of the servo
1.4.7