Struct hal::mock::servo
ClassList > hal > mock > servo
Mock servo implementation for use in unit tests and simulations with a spy function for position() __
#include <servo.hpp>
Inherits the following classes: hal::servo
Public Attributes
Type | Name |
---|---|
spy_handler< float > | spy_position Spy handler for hal::servo::position() __ |
Public Functions
Type | Name |
---|---|
void | reset () Reset spy information for position() __ |
Public Functions inherited from hal::servo
See hal::servo
Type | Name |
---|---|
result< position_t > | position (hal::degrees p_position) Set the position of the servo's output shaft. |
virtual | ~servo () = default |
Public Attributes Documentation
variable spy_position
spy_handler<float> hal::mock::servo::spy_position;
Public Functions Documentation
function reset
inline void hal::mock::servo::reset ()
The documentation for this class was generated from the following file libraries/include/libhal-mock/servo.hpp