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
TESTS/mocks/MockNerfusTicker.hpp@32:50b777bab5a4, 2017-03-27 (annotated)
- Committer:
- Maxime Dupuis
- Date:
- Mon Mar 27 20:39:08 2017 -0400
- Revision:
- 32:50b777bab5a4
- Parent:
- 29:049a2f46c738
Implement TargetManager
A TargetManager manages a group of targets, listens for
events (hit/miss) and dispatch them to the appropriate target
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Maxime Dupuis |
29:049a2f46c738 | 1 | #ifndef MOCK_NERFUS_TICKER_HPP |
Maxime Dupuis |
29:049a2f46c738 | 2 | #define MOCK_NERFUS_TICKER_HPP |
Maxime Dupuis |
29:049a2f46c738 | 3 | |
Maxime Dupuis |
29:049a2f46c738 | 4 | #include "NerfusTickerInterface.hpp" |
Maxime Dupuis |
29:049a2f46c738 | 5 | |
Maxime Dupuis |
29:049a2f46c738 | 6 | class MockNerfusTicker : public NerfusTickerInterface |
Maxime Dupuis |
29:049a2f46c738 | 7 | { |
Maxime Dupuis |
29:049a2f46c738 | 8 | public: |
Maxime Dupuis |
29:049a2f46c738 | 9 | MOCK_METHOD1(start, void(int timeout_ms)); |
Maxime Dupuis |
29:049a2f46c738 | 10 | MOCK_METHOD0(stop, void()); |
Maxime Dupuis |
32:50b777bab5a4 | 11 | MOCK_METHOD0(get_time_ms, int()); |
Maxime Dupuis |
29:049a2f46c738 | 12 | }; |
Maxime Dupuis |
29:049a2f46c738 | 13 | |
Maxime Dupuis |
29:049a2f46c738 | 14 | #endif |
Maxime Dupuis |
29:049a2f46c738 | 15 |