Skip to content

Struct hal::mock::motor

ClassList > hal > mock > motor

Mock motor implementation for use in unit tests and simulations with a spy function for power() __

  • #include <motor.hpp>

Inherits the following classes: hal::motor

Public Attributes

Type Name
spy_handler< float > spy_power
Spy handler for hal::motor::write()

Public Functions

Type Name
void reset ()
Reset spy information for power() __

Public Functions inherited from hal::motor

See hal::motor

Type Name
result< power_t > power (float p_power)
Apply power to the motor.
virtual ~motor () = default

Public Attributes Documentation

variable spy_power

spy_handler<float> hal::mock::motor::spy_power;

Public Functions Documentation

function reset

inline void hal::mock::motor::reset () 

The documentation for this class was generated from the following file libraries/include/libhal-mock/motor.hpp