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/MockXbeeTransmitter.hpp@51:6bf268cd1a1b, 2017-04-12 (annotated)
- Committer:
- Maxime Dupuis
- Date:
- Wed Apr 12 10:33:32 2017 -0400
- Revision:
- 51:6bf268cd1a1b
- Parent:
- 41:d60c9ced57ab
Update tests to ignore target hits before 750ms threshold
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Maxime Dupuis |
21:a701f5a37a37 | 1 | #ifndef MOCK_XBEE_TRANSMITTER_HPP |
Maxime Dupuis |
21:a701f5a37a37 | 2 | #define MOCK_XBEE_TRANSMITTER_HPP |
Maxime Dupuis |
21:a701f5a37a37 | 3 | |
Maxime Dupuis |
28:8fc53a870691 | 4 | #include "XbeeTransmitterInterface.hpp" |
Maxime Dupuis |
21:a701f5a37a37 | 5 | |
Maxime Dupuis |
28:8fc53a870691 | 6 | class MockXbeeTransmitter : public XbeeTransmitterInterface |
Maxime Dupuis |
21:a701f5a37a37 | 7 | { |
Maxime Dupuis |
21:a701f5a37a37 | 8 | public: |
Maxime Dupuis |
41:d60c9ced57ab | 9 | MOCK_METHOD2(transmit, void(const std::vector<uint8_t>& bytes, int address[8])); |
Maxime Dupuis |
41:d60c9ced57ab | 10 | MOCK_METHOD3(transmit, void(uint8_t bytes[4], int length, int address[8])); |
Maxime Dupuis |
21:a701f5a37a37 | 11 | }; |
Maxime Dupuis |
21:a701f5a37a37 | 12 | |
Maxime Dupuis |
21:a701f5a37a37 | 13 | #endif |