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 NerfUS

Committer:
Maxime Dupuis
Date:
Mon Mar 27 19:05:45 2017 -0400
Revision:
30:412a779cf607
Parent:
28:8fc53a870691
Child:
32:50b777bab5a4
Finish TargetManager constructor

Takes a list of managed targets and a NerfusTicker

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Maxime Dupuis 28:8fc53a870691 1 #include "TargetManager.hpp"
Maxime Dupuis 28:8fc53a870691 2
Maxime Dupuis 30:412a779cf607 3 TargetManager::TargetManager(std::vector<TargetInterface*>& targets,
Maxime Dupuis 30:412a779cf607 4 NerfusTickerInterface& nerfus_ticker) :
Maxime Dupuis 30:412a779cf607 5 targets(targets),
Maxime Dupuis 30:412a779cf607 6 nerfus_ticker(nerfus_ticker)
Maxime Dupuis 30:412a779cf607 7 {
Maxime Dupuis 30:412a779cf607 8
Maxime Dupuis 30:412a779cf607 9 }
Maxime Dupuis 30:412a779cf607 10
Maxime Dupuis 28:8fc53a870691 11 void TargetManager::target_hit(int target_number)
Maxime Dupuis 28:8fc53a870691 12 {
Maxime Dupuis 28:8fc53a870691 13
Maxime Dupuis 28:8fc53a870691 14 }
Maxime Dupuis 28:8fc53a870691 15
Maxime Dupuis 28:8fc53a870691 16 void TargetManager::target_missed(int target_number)
Maxime Dupuis 28:8fc53a870691 17 {
Maxime Dupuis 28:8fc53a870691 18
Maxime Dupuis 28:8fc53a870691 19 }
Maxime Dupuis 28:8fc53a870691 20