#include <hinge2servo.h>
Collaboration diagram for Hinge2Servo:
Definition at line 39 of file hinge2servo.h.
Public Member Functions | |
Hinge2Servo (Hinge2Joint *joint, double min, double max, double power) | |
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 hinge in ranges [-1, 1] (scaled by min, max) |
|
min and max values are understood as travel bounds. power is the power of the servo Definition at line 40 of file hinge2servo.cpp. |
|
returns the position of the hinge in ranges [-1, 1] (scaled by min, max)
Definition at line 59 of file hinge2servo.cpp. |
|
sets the set point of the servo. Position must be between -1 and 1. It is scaled to fit into min, max Definition at line 48 of file hinge2servo.cpp. |