Inert Distance Sensor#
Defined in namespace hal::soft
#include <libhal-soft/inert/inert_distance_sensor.hpp>
-
class inert_distance_sensor : public hal::distance_sensor#
Inert implementation of linear distance hardware.
Public Static Functions
-
static inline result<inert_distance_sensor> create(read_t p_result)#
Factory function to create inert_distance_sensor object.
- Parameters:
p_result – - read_t data to be returned when calling read()
- Returns:
result<inert_distance_sensor> - Constructed inert_distance_sensor object
-
static inline result<inert_distance_sensor> create(read_t p_result)#