Project

General

Profile

Statistics
| Revision:

root / trunk / code / projects / diagnostic_station / station / hardware_turntable.c @ 1255

History | View | Annotate | Download (435 Bytes)

1
#include "hardware_turntable.h"
2
#include <encoders.h>
3

    
4
void turntable_init ()
5
{
6
  encoders_init();
7
}
8

    
9
void turntable_rotate_to_position (int16_t position)
10
{
11
  usb_puts ("# Turntable rotating to ");
12
  usb_puti (position);
13
  usb_puts (NL);
14
        
15
  // FIXME implement
16
        
17
  usb_puts ("# Turntable position reached" NL);
18
}
19

    
20
uint16_t turntable_get_position (void)
21
{
22
  //TODO: convert units
23
  return encoder_read(RIGHT);
24
}