Project

General

Profile

Statistics
| Revision:

root / trunk / code / projects / colonet / robot / wl_network_colonet / localization.h @ 481

History | View | Annotate | Download (595 Bytes)

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