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:
Wed Apr 12 10:33:32 2017 -0400
Revision:
51:6bf268cd1a1b
Parent:
29:049a2f46c738
Update tests to ignore target hits before 750ms threshold

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Maxime Dupuis 28:8fc53a870691 1 #ifndef MOCK_TARGET_HPP
Maxime Dupuis 28:8fc53a870691 2 #define MOCK_TARGET_HPP
Maxime Dupuis 28:8fc53a870691 3
Maxime Dupuis 28:8fc53a870691 4 #include "TargetInterface.hpp"
Maxime Dupuis 28:8fc53a870691 5
Maxime Dupuis 28:8fc53a870691 6 class MockTarget : public TargetInterface
Maxime Dupuis 28:8fc53a870691 7 {
Maxime Dupuis 28:8fc53a870691 8 public:
Maxime Dupuis 28:8fc53a870691 9 MOCK_METHOD0(ally_command, void());
Maxime Dupuis 28:8fc53a870691 10 MOCK_METHOD0(enemy_command, void());
Maxime Dupuis 28:8fc53a870691 11 MOCK_METHOD1(timeout, void(int));
Maxime Dupuis 28:8fc53a870691 12 MOCK_METHOD1(hit, void(int));
Maxime Dupuis 28:8fc53a870691 13 };
Maxime Dupuis 28:8fc53a870691 14
Maxime Dupuis 29:049a2f46c738 15 #endif
Maxime Dupuis 28:8fc53a870691 16