Doly C++ SDK v1.00
Loading...
Searching...
No Matches
ServoControl.h
Go to the documentation of this file.
1#pragma once
2#include <stdint.h>
3#include "ServoEvent.h"
4
19
20namespace ServoControl
21{
30 int8_t init();
31
48 int8_t setServo(uint16_t id, ServoId channel, float angle, uint8_t speed, bool invert);
49
57 int8_t abort(ServoId channel);
58
69 int8_t release(ServoId channel);
70
75 int8_t dispose();
76
84 float getVersion();
85};
ServoId
Servo channel identifiers.
Definition ServoEventListener.h:25
Definition ServoControl.h:21
int8_t setServo(uint16_t id, ServoId channel, float angle, uint8_t speed, bool invert)
Set a servo target angle.
int8_t release(ServoId channel)
Release servo hold (disable holding torque) for a channel.
float getVersion()
Get current library version.
int8_t abort(ServoId channel)
Abort an ongoing servo action.
int8_t dispose()
Dispose/stop the servo subsystem and release resources.
int8_t init()
Initialize the servo subsystem.