root / trunk / code / projects / diagnostic_station / station / hardware_turntable.h @ 1390
History | View | Annotate | Download (437 Bytes)
1 | 1183 | deffi | #ifndef _hardware_turntable_h
|
---|---|---|---|
2 | #define _hardware_turntable_h
|
||
3 | |||
4 | #include <dragonfly_lib.h> |
||
5 | #include "global.h" |
||
6 | |||
7 | 1308 | bneuman | #define TURNTABLE_HOME_POSITION 0 |
8 | |||
9 | |||
10 | 1183 | deffi | void turntable_init (void); |
11 | 1255 | bneuman | /*
|
12 | * position: 10 bit angle, 0 is facing directly in to the station
|
||
13 | * positive numbers are counterclockwise looking down on the robot
|
||
14 | */
|
||
15 | void turntable_rotate_to_position (int16_t position);
|
||
16 | 1244 | deffi | uint16_t turntable_get_position (void);
|
17 | 1183 | deffi | |
18 | #endif |