Skip to content

Class hal::soft::inert_rotation_sensor

ClassList > hal > soft > inert_rotation_sensor

Inert implementation of rotation measuring hardware.

  • #include <inert_rotation_sensor.hpp>

Inherits the following classes: hal::rotation_sensor

Public Functions inherited from hal::rotation_sensor

See hal::rotation_sensor

Type Name
result< read_t > read ()
Read the current angle measured by the device.
virtual ~rotation_sensor () = default

Public Static Functions

Type Name
result< inert_rotation_sensor > create (read_t p_position)
Factory function to create inert_rotation_sensor object.

Public Static Functions Documentation

function create

Factory function to create inert_rotation_sensor object.

static inline result< inert_rotation_sensor > hal::soft::inert_rotation_sensor::create (
    read_t p_position
) 

Parameters:

  • p_position - read_t object to return when read() is called

Returns:

result<inert_rotation_sensor> - Constructed inert_rotation_sensor onject


The documentation for this class was generated from the following file libraries/include/libhal-soft/inert_drivers/inert_rotation_sensor.hpp