Project

General

Profile

Statistics
| Revision:

root / trunk / code / projects / diagnostic_station / station / hardware_turntable.h @ 1308

History | View | Annotate | Download (437 Bytes)

1
#ifndef _hardware_turntable_h
2
#define _hardware_turntable_h
3

    
4
#include <dragonfly_lib.h>
5
#include "global.h"
6

    
7
#define TURNTABLE_HOME_POSITION 0
8

    
9

    
10
void turntable_init (void);
11
/*
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
uint16_t turntable_get_position (void);
17

    
18
#endif