Skip to content

Namespace hal::rmd

Namespace List > hal > rmd

Classes

Type Name
class drc
Driver for RMD motors equip with the DRC motor drivers.
class drc_angular_velocity_sensor
angular velocity sensor adaptor for DRC
class drc_motor
Motor interface adaptor for DRC.
class drc_rotation_sensor
Rotation sensor adaptor for DRC motors.
class drc_servo
Servo interface adaptor for DRC.
class drc_temperature_sensor
Temperature sensor adaptor for DRC motors.
class mc_x
Driver for RMD series motors equip with the MC-X motor driver.
class mc_x_current_sensor
current sensor adaptor for mc_x __
class mc_x_motor
Control a mc_x motor driver like ahal::motor .
class mc_x_rotation
Reports the rotation of the DRC motor.
class mc_x_servo
Control a mc_x motor driver like ahal::servo .
class mc_x_temperature
Reports the temperature of the DRC motor.

Public Functions

Type Name
result< drc_angular_velocity_sensor > make_angular_velocity_sensor (drc & p_drc)
Create a hal::angular_velocity_sensor driver using the drc driver.
result< mc_x_current_sensor > make_current_sensor (mc_x & p_mc_x)
Create a hal::current_sensor driver using themc_x driver.
result< drc_motor > make_motor (drc & p_drc, hal::rpm p_max_speed)
Create a hal::motor implementation from the drc driver.
result< mc_x_motor > make_motor (mc_x & p_mc_x, hal::rpm p_max_speed)
Create a hal::motor driver using the MC-X driver.
result< drc_rotation_sensor > make_rotation_sensor (drc & p_drc)
Create a hal::rotation_sensor driver using the drc driver.
result< mc_x_rotation > make_rotation_sensor (mc_x & p_mc_x)
Create a hal::rotation_sensor driver using the MC-X driver.
result< drc_servo > make_servo (drc & p_drc, hal::rpm p_max_speed)
Create a hal::servo driver using the drc driver.
result< mc_x_servo > make_servo (mc_x & p_mc_x, hal::rpm p_max_speed)
Create a hal::rotation_sensor driver using the MC-X driver.
result< drc_temperature_sensor > make_temperature_sensor (drc & p_drc)
Create a hal::temperature_sensor driver using the drc driver.
result< mc_x_temperature > make_temperature_sensor (mc_x & p_mc_x)
Create a hal::temperature_sensor driver using the MC-X driver.

Public Functions Documentation

function make_angular_velocity_sensor

Create a hal::angular_velocity_sensor driver using the drc driver.

result< drc_angular_velocity_sensor > hal::rmd::make_angular_velocity_sensor (
    drc & p_drc
) 

Parameters:

  • p_drc - reference to a drc driver. This object's lifetime must exceed the lifetime of the returned object

Returns:

result<angular_velocity_sensor> - angular_velocity_sensor implementation based on the drc driver

function make_current_sensor

Create a hal::current_sensor driver using themc_x driver.

result< mc_x_current_sensor > hal::rmd::make_current_sensor (
    mc_x & p_mc_x
) 

Parameters:

  • p_mc_x - reference to a mc_x driver. This object's lifetime must exceed the lifetime of the returned object

Returns:

result<mc_x_current_sensor> - current_sensor implementation based on the mc_x driver

function make_motor

Create a hal::motor implementation from the drc driver.

result< drc_motor > hal::rmd::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

function make_motor

Create a hal::motor driver using the MC-X driver.

result< mc_x_motor > hal::rmd::make_motor (
    mc_x & p_mc_x,
    hal::rpm p_max_speed
) 

Parameters:

  • p_mc_x - reference to a MC-X driver. This object's lifetime must exceed the lifetime of the returned object.
  • p_max_speed - maximum speed of the motor represented by +1.0 and -1.0

Returns:

result<mc_x_motor> - motor implementation using the MC-X driver

function make_rotation_sensor

Create a hal::rotation_sensor driver using the drc driver.

result< drc_rotation_sensor > hal::rmd::make_rotation_sensor (
    drc & p_drc
) 

Parameters:

  • p_drc - reference to a drc driver. This object's lifetime must exceed the lifetime of the returned object.

Returns:

drc_rotation_sensor - motor implementation based on the drc driver

function make_rotation_sensor

Create a hal::rotation_sensor driver using the MC-X driver.

result< mc_x_rotation > hal::rmd::make_rotation_sensor (
    mc_x & p_mc_x
) 

Parameters:

  • p_mc_x - reference to a MC-X driver. This object's lifetime must exceed the lifetime of the returned object.

Returns:

result<mc_x_rotation> - rotation sensor implementation based on the MC-X driver

function make_servo

Create a hal::servo driver using the drc driver.

result< drc_servo > hal::rmd::make_servo (
    drc & p_drc,
    hal::rpm p_max_speed
) 

Parameters:

  • p_drc - reference to a drc driver. This object's lifetime must exceed the lifetime of the returned object.
  • p_max_speed - maximum speed of the servo when moving to an angle

Returns:

result<drc_servo> - servo implementation based on the drc driver

function make_servo

Create a hal::rotation_sensor driver using the MC-X driver.

result< mc_x_servo > hal::rmd::make_servo (
    mc_x & p_mc_x,
    hal::rpm p_max_speed
) 

Parameters:

  • p_mc_x - reference to a MC-X driver. This object's lifetime must exceed the lifetime of the returned object.
  • p_max_speed - maximum speed of the motor when moving to an angle

Returns:

result<mc_x_rotation> - rotation sensor implementation based on the MC-X driver

function make_temperature_sensor

Create a hal::temperature_sensor driver using the drc driver.

result< drc_temperature_sensor > hal::rmd::make_temperature_sensor (
    drc & p_drc
) 

Parameters:

  • p_drc - reference to a drc driver. This object's lifetime must exceed the lifetime of the returned object.

Returns:

result<drc_temperature_sensor> - temperature sensor implementation based on the drc driver.

function make_temperature_sensor

Create a hal::temperature_sensor driver using the MC-X driver.

result< mc_x_temperature > hal::rmd::make_temperature_sensor (
    mc_x & p_mc_x
) 

Parameters:

  • p_mc_x - reference to a MC-X driver. This object's lifetime must exceed the lifetime of the returned object.

Returns:

result<mc_x_temperature> - temperature sensor implementation based on the MC-X driver


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