Project

General

Profile

Statistics
| Revision:

root / branches / library_refactor / projects / colonet / server / manual_control / manualControlRobot / localization.h @ 1390

History | View | Annotate | Download (610 Bytes)

1 13 emarinel
#ifndef _LOCALIZATION_H_
2
#define _LOCALIZATION_H_
3
4
5
// Max number of robots possible
6
#define MAX_ROBOTS 4
7
8
9
unsigned char sensors[MAX_ROBOTS][MAX_ROBOTS];
10
11
12
13
typedef struct{
14
    //actual row of sensor values -- need to be able to have up to
15
    //max_robots
16
    unsigned char row[MAX_ROBOTS];
17
    //actual length of the row
18
    unsigned char len;
19
    //'index' value of the row -- which robot it's for
20
    unsigned char row_num;
21
22
 } SensorRow;
23
24
25
void addSensor (int maxBom, int self, int other, int NUM_BOTS);
26
unsigned char getSelfSensor (unsigned char self, unsigned char other, int NUM_BOTS);
27
28
#endif