libwallaby  v24
The wallaby standard library
servo.h
Go to the documentation of this file.
1 /*
2  * servo.h
3  *
4  * Created on: Nov 5, 2015
5  * Author: Joshua Southerland
6  */
7 
8 #ifndef INCLUDE_WALLABY_SERVO_H_
9 #define INCLUDE_WALLABY_SERVO_H_
10 
11 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
27 void enable_servo(int port);
28 
34 void disable_servo(int port);
35 
40 void enable_servos();
41 
46 void disable_servos();
47 
54 void set_servo_enabled(int port, int enabled);
55 
62 int get_servo_enabled(int port);
63 
71 int get_servo_position(int port);
72 
83 void set_servo_position(int port, int position);
84 
85 #ifdef __cplusplus
86 }
87 #endif
88 
89 
90 #endif /* INCLUDE_WALLABY_SERVO_H_ */
disable_servos
void disable_servos()
Disable all four servo channels.
set_servo_enabled
void set_servo_enabled(int port, int enabled)
Enable or disable a specific servo.
set_servo_position
void set_servo_position(int port, int position)
Set a new servo goal position.
disable_servo
void disable_servo(int port)
Disable a specific servo.
enable_servos
void enable_servos()
Enable all four servo channels.
get_servo_enabled
int get_servo_enabled(int port)
Check if a servo is enabled.
get_servo_position
int get_servo_position(int port)
Get the most recent commanded servo position.
enable_servo
void enable_servo(int port)
Enable a specific servo.