Classes | |
class | Servo |
Encapsulates the concept of a servo motor. More... | |
Functions | |
VF EXPORT_SYM void | enable_servo (int port) |
VF EXPORT_SYM void | disable_servo (int port) |
VF EXPORT_SYM void | enable_servos () |
VF EXPORT_SYM void | disable_servos () |
VF EXPORT_SYM void | set_servo_enabled (int port, int enabled) |
VF EXPORT_SYM int | get_servo_enabled (int port) |
VF EXPORT_SYM int | get_servo_position (int servo) |
VF EXPORT_SYM void | set_servo_position (int servo, int position) |
VF EXPORT_SYM void disable_servo | ( | int | port | ) |
VF EXPORT_SYM void disable_servos | ( | ) |
VF EXPORT_SYM void enable_servo | ( | int | port | ) |
VF EXPORT_SYM void enable_servos | ( | ) |
VF EXPORT_SYM int get_servo_enabled | ( | int | port | ) |
VF EXPORT_SYM int get_servo_position | ( | int | servo | ) |
servo | The port of the servo |
VF EXPORT_SYM void set_servo_enabled | ( | int | port, |
int | enabled | ||
) |
VF EXPORT_SYM void set_servo_position | ( | int | servo, |
int | position | ||
) |
servo | The port of the servo |
position | The new servo position, between 0 and 1023 |