Functions | |
void | enable_servo (int port) |
Enable a specific servo. More... | |
void | disable_servo (int port) |
Disable a specific servo. More... | |
void | enable_servos () |
Enable all four servo channels. More... | |
void | disable_servos () |
Disable all four servo channels. More... | |
void | set_servo_enabled (int port, int enabled) |
Enable or disable a specific servo. More... | |
int | get_servo_enabled (int port) |
Check if a servo is enabled. More... | |
int | get_servo_position (int port) |
Get the most recent commanded servo position. More... | |
void | set_servo_position (int port, int position) |
Set a new servo goal position. More... | |
void disable_servo | ( | int | port | ) |
Disable a specific servo.
[in] | port | The port, between 0 and 3, to disable |
void disable_servos | ( | ) |
Disable all four servo channels.
void enable_servo | ( | int | port | ) |
Enable a specific servo.
[in] | port | The port, between 0 and 3, to enable |
void enable_servos | ( | ) |
Enable all four servo channels.
int get_servo_enabled | ( | int | port | ) |
Check if a servo is enabled.
[in] | port | The port, between 0 and 3 |
int get_servo_position | ( | int | port | ) |
Get the most recent commanded servo position.
port | The port of the servo |
void set_servo_enabled | ( | int | port, |
int | enabled | ||
) |
Enable or disable a specific servo.
[in] | port | The port, between 0 and 3, to enable |
[in] | enabled | The new enable setting 0: disabled 1: enabled |
void set_servo_position | ( | int | port, |
int | position | ||
) |
Set a new servo goal position.
port | The port of the servo |
position | The new servo position, between 0 and 2047 |