Project

General

Profile

Revision 116

Updated recharging code for the robot, it actually runs, trying to fix problem with orbs in debugging mode.

View differences:

bays.h
7 7
#define SELECT_1	_PIN_A3
8 8
#define SELECT_2	_PIN_A4
9 9

  
10
#define NUM_BAYS 4
11

  
12
#define MAX_ROBOTS 20
13
char sensors[MAX_ROBOTS]; //from wl_charging_station...probably should be there instead of here, but assign_bay needs for now
14

  
15
int bayStates[NUM_BAYS]; //holds robot id of robot in each bay 0-3 (255 if empty)
16
int robot_seeking; //robot if of the robot currently seeking (255 if none)
17

  
18 10
int active_bay;
19 11

  
20
void bay_tester(void);
21
void print_bays_debug(void);
22
void do_consistency_checks(void);
23

  
12
// bom & beacon functions
24 13
void bays_init(void);
25

  
26
int assign_bay(int robot);
27
int robot_assignment(int robot);
28
int is_empty(void);
29

  
30
// bom & beacon functions
31 14
void lbom_on(void);
32 15
void lbom_off(void);
33 16
void bay_enable(int which);

Also available in: Unified diff