Revision 1251
test_encoders.c | ||
---|---|---|
51 | 51 |
int16_t *data_robot_r =malloc (num_measurements*sizeof (uint16_t)); |
52 | 52 |
usb_puts ("# Resetting encoders" NL); |
53 |
encoders_reset ();
|
|
53 |
dynamos_reset ();
|
|
54 | 54 |
robot_reset_encoders (); |
55 | 55 |
|
56 | 56 |
for (uint8_t m=0; m<num_measurements; ++m) |
... | ... | |
61 | 61 |
robot_set_motors_off (); |
62 | 62 |
delay_ms (off_delay); |
63 | 63 |
|
64 |
// Read the station encoders
|
|
65 |
encoders_read (&(data_station_l[m]), &(data_station_r[m]));
|
|
64 |
// Read the station dynamos
|
|
65 |
dynamos_read (&(data_station_l[m]), &(data_station_r[m]));
|
|
66 | 66 |
|
67 | 67 |
// Read the robot encoders |
68 | 68 |
robot_read_encoders (&(data_robot_l[m]), &(data_robot_r[m])); |
Also available in: Unified diff