Class hal::rmd::drc_motor
ClassList > hal > rmd > drc_motor
Motor interface adaptor for DRC.
#include <drc.hpp>
Inherits the following classes: hal::motor
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 |
Friends Documentation
friend make_motor
Create a hal::motor implementation from the drc driver.
result< drc_motor > hal::rmd::drc_motor::make_motor (
drc & p_drc,
hal::rpm p_max_speed
)
Parameters:
p_drc
- reference to a drc driver. This object's lifetime must NOT exceed the lifetime of the return drc motor.p_max_speed
- maximum speed of the motor represented by +1.0 and -1.0
Returns:
drc_motor - motor implementation based on the drc driver
The documentation for this class was generated from the following file libraries/include/libhal-rmd/drc.hpp