Project

General

Profile

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.

View differences:

data_requests.h
17 17
} RawData;
18 18

  
19 19
void data_requests_init(
20
                        void(*bom_data_handler)(BomNode* head),
21
                        void(*IR_data_handler)(unsigned char* data),
22
                        void(*encoder_data_handler)(unsigned char* data));
20
                        void(*bom_data_handler)(BomNode** head),
21
                        void(*IR_data_handler)(short** data),
22
                        void(*encoder_data_handler)(unsigned char** data));
23 23

  
24 24
void request_bom_data(int robot_id);
25 25
void request_IR_data(int robot_id);

Also available in: Unified diff