Project

General

Profile

Statistics
| Revision:

root / trunk / code / projects / diagnostic_station / station / comm_robot.h @ 1204

History | View | Annotate | Download (587 Bytes)

1
#ifndef _robot_comm_h
2
#define _robot_comm_h
3

    
4
void comm_robot_init (void);
5

    
6

    
7
void robot_set_orbs (uint8_t red1, uint8_t green1, uint8_t blue1, uint8_t red2, uint8_t green2, uint8_t blue2);
8
void robot_set_motors (uint8_t direction1, uint8_t speed1, uint8_t direction2, uint8_t speed2);
9
void robot_set_motors_off (void);
10
void robot_set_bom (uint16_t bitmask);
11
char* robot_read_encoders (void);
12
void robot_station_receive(char type, int source, unsigned char* packet, int length);
13

    
14
#define direction_off 0
15
#define direction_forward 1
16
#define direction_backward 2
17

    
18

    
19
#endif