libwallaby  v23
The wallaby standard library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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_ */
void set_servo_position(int port, int position)
Set a new servo goal position.
void enable_servos()
Enable all four servo channels.
void disable_servo(int port)
Disable a specific servo.
int get_servo_position(int port)
Get the most recent commanded servo position.
int get_servo_enabled(int port)
Check if a servo is enabled.
void enable_servo(int port)
Enable a specific servo.
void disable_servos()
Disable all four servo channels.
void set_servo_enabled(int port, int enabled)
Enable or disable a specific servo.