Revision 366
The lib things were just because of a few recompilations.
Data requests project works for IR, the problems with IR were almost definitely the problems with the others (encoder / BOM data).
I'll fix the code for those next time, and then begin work on encoders.
Hopefully I'll be able to abstract the robots out completely and just work with raw data in a month or two.
bom.c | ||
---|---|---|
39 | 39 |
#include "analog.h" |
40 | 40 |
|
41 | 41 |
//constants |
42 |
//TODO: for better readability, make all of these hex or decimal |
|
43 | 42 |
const int lookup[16] = {7,6,5,0xe,1,4,3,2,0xf,0,0xd,8,0xc,0xb,9,0xa}; |
44 | 43 |
|
45 | 44 |
// internal function prototypes |
46 |
//TODO: if these are only used in this file, make them static |
|
47 | 45 |
void output_high(int which); |
48 | 46 |
void output_low(int which); |
49 | 47 |
|
... | ... | |
112 | 110 |
**/ |
113 | 111 |
int get_max_bom(void) { |
114 | 112 |
int max_bom_temp = 0; |
115 |
//TODO: renamed a, i, and h to give them meaningful names |
|
116 | 113 |
int a, i, j, h; |
117 | 114 |
h = 255; |
118 | 115 |
|
... | ... | |
199 | 196 |
void output_low(int which) { |
200 | 197 |
digital_output(which, 0); |
201 | 198 |
} |
199 |
|
Also available in: Unified diff