Revision 1513
slightly modified makefile, added more error checking to bom beacon code
bom.c | ||
---|---|---|
33 | 33 |
* @author Colony Project, CMU Robotics Club |
34 | 34 |
**/ |
35 | 35 |
|
36 |
#include "dragonfly_defs.h" |
|
36 |
//#include "dragonfly_defs.h" |
|
37 |
#include "bom.h" |
|
37 | 38 |
#include "dio.h" |
38 | 39 |
#include "serial.h" |
39 | 40 |
#include "analog.h" |
40 |
#include "bom.h" |
|
41 | 41 |
|
42 | 42 |
//On the original BOM1.0, the emmitter angular order does not match the analog mux order |
43 | 43 |
//so you need to iterate through the mux index in the following order if you want to get |
... | ... | |
159 | 159 |
break; |
160 | 160 |
case RBOM: |
161 | 161 |
break; |
162 |
default: |
|
163 |
return -1; |
|
162 | 164 |
//default: |
163 | 165 |
} |
164 | 166 |
|
... | ... | |
382 | 384 |
break; |
383 | 385 |
case RBOM: |
384 | 386 |
break; |
387 |
default: |
|
388 |
return -1; |
|
385 | 389 |
} |
386 | 390 |
|
387 | 391 |
return 0; |
Also available in: Unified diff