Project

General

Profile

Statistics
| Revision:

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

History | View | Annotate | Download (743 Bytes)

1
#ifndef _robot_comm_h
2
#define _robot_comm_h
3

    
4
#include <wireless.h>
5

    
6
void comm_robot_init (void);
7

    
8
char *motor_direction_string (uint8_t direction);
9

    
10
void robot_set_orbs (uint8_t red1, uint8_t green1, uint8_t blue1, uint8_t red2, uint8_t green2, uint8_t blue2);
11
void robot_set_motors (uint8_t direction1, uint8_t speed1, uint8_t direction2, uint8_t speed2);
12
void robot_set_motors_off (void);
13
void robot_set_bom (uint16_t bitmask);
14
void robot_reset_encoders (void);
15

    
16
bool robot_read_encoders (int16_t *left, int16_t *right);
17
uint16_t robot_read_bom (uint8_t num);
18
uint16_t robot_read_rangefinder (uint8_t num);
19

    
20
#define motor_direction_off 0
21
#define motor_direction_forward 1
22
#define motor_direction_backward 2
23

    
24

    
25
#endif