NerfUS mobile node that manages a target for the Nerf gun firing range
Dependencies: LedController mbed-rtos mbed NerfUSXbee Servomotor TargetManager
Fork of NerfUS by
Diff: source/Target.cpp
- Revision:
- 41:d60c9ced57ab
- Parent:
- 40:1f0a5e5f24f6
- Child:
- 43:b8cda61584a8
diff -r 1f0a5e5f24f6 -r d60c9ced57ab source/Target.cpp --- a/source/Target.cpp Sun Apr 09 21:22:08 2017 +0000 +++ b/source/Target.cpp Sun Apr 09 18:59:01 2017 -0400 @@ -55,12 +55,12 @@ { uint8_t message[4]; generate_message(target_number, Target::RESULT_MISSED, time_taken_ms, message); - xbee_transmitter.transmit(message, coordinator_address); + xbee_transmitter.transmit(message, 4, coordinator_address); } void Target::hit(const int time_taken_ms) { uint8_t message[4]; generate_message(target_number, Target::RESULT_HIT, time_taken_ms, message); - xbee_transmitter.transmit(message, coordinator_address); + xbee_transmitter.transmit(message, 4, coordinator_address); }