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/MockServomotor.hpp@26:328f659fc1b3, 2017-03-11 (annotated)
- Committer:
- Maxime Dupuis
- Date:
- Sat Mar 11 13:44:32 2017 -0500
- Revision:
- 26:328f659fc1b3
- Parent:
- TESTS/MockServomotor.hpp@18:353fb432c03c
Move all mocks in a subdirectory
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Maxime Dupuis |
18:353fb432c03c | 1 | #ifndef MOCK_SERVOMOTOR_HPP |
Maxime Dupuis |
18:353fb432c03c | 2 | #define MOCK_SERVOMOTOR_HPP |
Maxime Dupuis |
18:353fb432c03c | 3 | |
Maxime Dupuis |
18:353fb432c03c | 4 | #include "ServomotorInterface.hpp" |
Maxime Dupuis |
18:353fb432c03c | 5 | |
Maxime Dupuis |
18:353fb432c03c | 6 | class MockServomotor : public ServomotorInterface |
Maxime Dupuis |
18:353fb432c03c | 7 | { |
Maxime Dupuis |
18:353fb432c03c | 8 | public: |
Maxime Dupuis |
18:353fb432c03c | 9 | MOCK_METHOD0(set_position_up, void()); |
Maxime Dupuis |
18:353fb432c03c | 10 | MOCK_METHOD0(set_position_down, void()); |
Maxime Dupuis |
18:353fb432c03c | 11 | MOCK_METHOD1(set_angle, void(const float angle_degree)); |
Maxime Dupuis |
18:353fb432c03c | 12 | }; |
Maxime Dupuis |
18:353fb432c03c | 13 | |
Maxime Dupuis |
18:353fb432c03c | 14 | #endif |