![]() |
Doly C++ SDK v1.00
|
Functions | |
| int8_t | init () |
| Initialize the servo subsystem. | |
| int8_t | setServo (uint16_t id, ServoId channel, float angle, uint8_t speed, bool invert) |
| Set a servo target angle. | |
| int8_t | abort (ServoId channel) |
| Abort an ongoing servo action. | |
| int8_t | release (ServoId channel) |
| Release servo hold (disable holding torque) for a channel. | |
| int8_t | dispose () |
| Dispose/stop the servo subsystem and release resources. | |
| float | getVersion () |
| Get current library version. | |
| int8_t ServoControl::abort | ( | ServoId | channel | ) |
Abort an ongoing servo action.
| channel | Servo channel to abort. |
| int8_t ServoControl::dispose | ( | ) |
Dispose/stop the servo subsystem and release resources.
| float ServoControl::getVersion | ( | ) |
Get current library version.
Original note: format 0.XYZ (3 digits after major).
| int8_t ServoControl::init | ( | ) |
Initialize the servo subsystem.
| int8_t ServoControl::release | ( | ServoId | channel | ) |
Release servo hold (disable holding torque) for a channel.
| channel | Servo channel to release. |
| int8_t ServoControl::setServo | ( | uint16_t | id, |
| ServoId | channel, | ||
| float | angle, | ||
| uint8_t | speed, | ||
| bool | invert ) |
Set a servo target angle.
| id | User-defined action identifier (forwarded to event callbacks). |
| channel | Servo channel to control. |
| angle | Target angle (degrees). |
| speed | Speed percentage (valid range: 0..100). |
| invert | If true, invert the direction/orientation for the given channel. |