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/TargetManager.cpp
- Revision:
- 37:8fc7845ae95b
- Parent:
- 36:f55ce07292c9
- Child:
- 38:70a1c8bd2877
--- a/source/TargetManager.cpp Wed Apr 05 22:24:50 2017 +0000 +++ b/source/TargetManager.cpp Sat Apr 08 14:08:37 2017 -0400 @@ -29,7 +29,7 @@ nerfus_ticker.start(target_info.timeout_ms); } -void TargetManager::execute(std::vector<uint8_t>& target_info_bytes, int *address) +void TargetManager::execute(const std::vector<uint8_t>& target_info_bytes, int *address) { const int id = target_info_bytes[0]; const TargetType type = (target_info_bytes[1] == 0) ? TARGET_TYPE_ALLY : TARGET_TYPE_ENEMY;