|
VEX V5 C++ API
|
Use this class when programming with a servo device. More...
Inherits vex::__tridevice.
Public Member Functions | |
| servo (triport::port &port) | |
| Creates a new servo object on the port specified in the parameter. More... | |
| ~servo () | |
| void | position (int32_t value, percentUnits units) |
| Sets the position of the servo device. More... | |
| void | position (double value, rotationUnits units) |
| Sets the position of the servo device. More... | |
Use this class when programming with a servo device.
| vex::servo::servo | ( | triport::port & | port | ) |
Creates a new servo object on the port specified in the parameter.
| port | A reference to a three wire port. |
| vex::servo::~servo | ( | ) |
| void vex::servo::position | ( | int32_t | value, |
| percentUnits | units | ||
| ) |
Sets the position of the servo device.
| value | Sets the amount of rotation in the range [-100 to 100]. |
| units | The measurement unit for the rotation value. |
| void vex::servo::position | ( | double | value, |
| rotationUnits | units | ||
| ) |
Sets the position of the servo device.
| value | Sets the amount of rotation in the range [-50 deg to 50 deg]. |
| units | The measurement unit for the rotation value. |
1.8.15