![]() |
Doly C++ SDK v1.00
|
Functions | |
| int8_t | init () |
| Initialize the arm subsystem. | |
| int8_t | dispose () |
| Dispose/stop the arm subsystem and release resources. | |
| bool | isActive () |
| Check whether the subsystem is active (initialized and running). | |
| void | Abort (ArmSide side) |
| Abort the current operation for a given side. | |
| uint16_t | getMaxAngle () |
| Get maximum allowed angle for the arm. | |
| int8_t | setAngle (uint16_t id, ArmSide side, uint8_t speed, uint16_t angle, bool with_brake=false) |
| Command the arm to move to an angle. | |
| ArmState | getState (ArmSide side) |
| Get current operation state for a side. | |
| std::vector< ArmData > | getCurrentAngle (ArmSide side) |
| Get the current angle(s) for the requested side(s). | |
| float | getVersion () |
| Get SDK/library version. | |
| void ArmControl::Abort | ( | ArmSide | side | ) |
Abort the current operation for a given side.
This is intended as an emergency/stop action.
| side | Arm side to abort (LEFT/RIGHT/BOTH). |
| int8_t ArmControl::dispose | ( | ) |
Dispose/stop the arm subsystem and release resources.
Get the current angle(s) for the requested side(s).
| side | Requested side (LEFT/RIGHT/BOTH). |
| uint16_t ArmControl::getMaxAngle | ( | ) |
Get maximum allowed angle for the arm.
Get current operation state for a side.
| side | Arm side. |
| float ArmControl::getVersion | ( | ) |
Get SDK/library version.
Format note from original header: 0.XYZ (3 digits after major).
| int8_t ArmControl::init | ( | ) |
Initialize the arm subsystem.
This must be called once before other control functions.
| bool ArmControl::isActive | ( | ) |
Check whether the subsystem is active (initialized and running).
| int8_t ArmControl::setAngle | ( | uint16_t | id, |
| ArmSide | side, | ||
| uint8_t | speed, | ||
| uint16_t | angle, | ||
| bool | with_brake = false ) |
Command the arm to move to an angle.
The operation is handled asynchronously (non-blocking). Results are reported via:
| id | User-defined command identifier (echoed back in completion/error callbacks). |
| side | Arm side to move (LEFT/RIGHT/BOTH). |
| speed | Speed percentage in range [1..100]. |
| angle | Target angle in degrees in range [0..getMaxAngle()]. |
| with_brake | If true, apply brake/hold behavior at target (implementation-defined). |