Skip to content

Class hal::soft::inert_distance_sensor

ClassList > hal > soft > inert_distance_sensor

Inert implementation of linear distance hardware.

  • #include <inert_distance_sensor.hpp>

Inherits the following classes: hal::distance_sensor

Public Functions inherited from hal::distance_sensor

See hal::distance_sensor

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

Public Static Functions

Type Name
result< inert_distance_sensor > create (read_t p_result)
Factory function to create inert_distance_sensor object.

Public Static Functions Documentation

function create

Factory function to create inert_distance_sensor object.

static inline result< inert_distance_sensor > hal::soft::inert_distance_sensor::create (
    read_t p_result
) 

Parameters:

  • p_result - read_t data to be returned when calling read()

Returns:

result<inert_distance_sensor> - Constructed inert_distance_sensor object


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