]> rtime.felk.cvut.cz Git - eurobot/public.git/blob - src/robofsm/actuators.h
robofsm: Fix wrong manipulation with crane.
[eurobot/public.git] / src / robofsm / actuators.h
1 /**
2  * @file actuators.h
3  * @author Martin Zidek
4  * @author Filip Jares (?)
5  * @date 2009-2010
6  *
7  * @brief Robot's actuators control library
8  */
9
10 /*
11  * actuators.h                  09/02/25
12  *
13  * Robot's actuators control.
14  *
15  * Copyright: (c) 2008-2010 CTU Dragons
16  *            CTU FEE - Department of Control Engineering
17  * License: GNU GPL v.2
18  */
19 /**
20 \defgroup actlib Actuators control library
21
22 Actuators library serves as a single control point for all the actuators
23 of the robot.
24  */
25
26 #ifndef ACTUATORS_H
27 #define ACTUATORS_H
28
29 #define CRANE_UP                0x90
30 #define CRANE_DOWN              0x150
31
32 #include <stdint.h>
33
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37
38 void act_init(struct robottype_orte_data *ortedata);
39
40 void act_camera_on(void);
41 void act_camera_off(void);
42
43 void act_crane(int position);
44 void act_magnet(unsigned char on);
45 int act_crane_get_last_reqest(void);
46
47 #ifdef __cplusplus
48 }
49 #endif
50
51 #endif /* ACTUATORS_H */