summaryrefslogtreecommitdiff
path: root/digital/beacon/src/stub
diff options
context:
space:
mode:
authorNicolas Schodet2012-06-02 10:13:23 +0200
committerNicolas Schodet2012-06-02 10:13:23 +0200
commit87eab5d91dd931a0d1de01ae63002f2b0e4046c7 (patch)
treee6913459f58e8349c6e7411aea9996c1bcd10d1f /digital/beacon/src/stub
parentb7c8d24fd00b19207927035060e21b7698588f42 (diff)
digital/ai/src/twi_master: send team color to beacon
Diffstat (limited to 'digital/beacon/src/stub')
-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]);
}
}