#include <sliderservo.h>
Collaboration diagram for SliderServo:
Public Member Functions | |
SliderServo (SliderJoint *joint, double min, double max, double mass) | |
min and max values are understood as travel bounds. | |
void | set (double position) |
sets the set point of the servo. | |
double | get () |
returns the position of the slider in ranges [-1, 1] (scaled by min, max) | |
void | setPower (double power) |
Private Attributes | |
PID | pid |
double | min |
double | max |
SliderJoint * | joint |
|
min and max values are understood as travel bounds. Min should be less than 0. |
|
returns the position of the slider 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 |
|
|
|
|
|
|
|
|
|
|