From 87eab5d91dd931a0d1de01ae63002f2b0e4046c7 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Sat, 2 Jun 2012 10:13:23 +0200 Subject: digital/ai/src/twi_master: send team color to beacon --- digital/beacon/src/stub/simu_stub.host.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'digital/beacon/src/stub/simu_stub.host.c') 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]); } } -- cgit v1.2.3