Revision 1195
finished storing encoder data
trunk/code/projects/diagnostic_station/station/comm_robot.c | ||
---|---|---|
101 | 101 |
switch (type) |
102 | 102 |
{ |
103 | 103 |
case robot_station_finished: new_data = 1; break; |
104 |
case robot_station_data_encoders: new_data = 1; break;
|
|
104 |
case robot_station_data_encoders: receive_encoders((int*)packet, length); break;
|
|
105 | 105 |
} |
106 |
new_data = 1; |
|
107 |
} |
|
108 |
|
|
109 |
void receive_encoders(int* data; int length){ |
|
110 |
((int*)data_received)[0] = data[0]; |
|
111 |
((int*)data_received)[1] = data[1]; |
|
106 | 112 |
} |
Also available in: Unified diff