summaryrefslogtreecommitdiff
path: root/digital/beacon/src/stub/simu_stub.host.c
diff options
context:
space:
mode:
Diffstat (limited to 'digital/beacon/src/stub/simu_stub.host.c')
-rw-r--r--digital/beacon/src/stub/simu_stub.host.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/digital/beacon/src/stub/simu_stub.host.c b/digital/beacon/src/stub/simu_stub.host.c
index 2073e678..38cf93fb 100644
--- a/digital/beacon/src/stub/simu_stub.host.c
+++ b/digital/beacon/src/stub/simu_stub.host.c
@@ -44,6 +44,7 @@ struct position_t simu_positions[2];
uint8_t simu_seq;
uint8_t simu_recv_jack;
+uint8_t simu_recv_team_color;
uint8_t simu_recv_robot_nb;
struct position_t simu_recv_robot_position;
@@ -64,9 +65,10 @@ simu_twi_proto_poll (void)
continue;
simu_seq = recv_buf[1];
simu_recv_jack = recv_buf[2];
- simu_recv_robot_nb = recv_buf[3];
- simu_recv_robot_position.x = v8_to_v16 (recv_buf[4], recv_buf[5]);
- simu_recv_robot_position.y = v8_to_v16 (recv_buf[6], recv_buf[7]);
+ simu_recv_team_color = recv_buf[3];
+ simu_recv_robot_nb = recv_buf[4];
+ simu_recv_robot_position.x = v8_to_v16 (recv_buf[5], recv_buf[6]);
+ simu_recv_robot_position.y = v8_to_v16 (recv_buf[7], recv_buf[8]);
}
}