libkipr  1.0.0
servo.h
Go to the documentation of this file.
1 
7 #ifndef _KIPR_SERVO_SERVO_H_
8 #define _KIPR_SERVO_SERVO_H_
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
19 void enable_servo(int port);
20 
26 void disable_servo(int port);
27 
33 
39 
46 void set_servo_enabled(int port, int enabled);
47 
54 int get_servo_enabled(int port);
55 
63 int get_servo_position(int port);
64 
75 void set_servo_position(int port, int position);
76 
77 #ifdef __cplusplus
78 }
79 #endif
80 
81 #endif
void disable_servo(int port)
Disable a specific servo.
int get_servo_enabled(int port)
Check if a servo is enabled.
void enable_servo(int port)
Enable a specific servo.
int get_servo_position(int port)
Get the most recent commanded servo position.
void set_servo_position(int port, int position)
Set a new servo goal position.
void disable_servos()
Disable all four servo channels.
void set_servo_enabled(int port, int enabled)
Enable or disable a specific servo.
void enable_servos()
Enable all four servo channels.