51 #include <px4_platform_common/px4_config.h> 52 #include <px4_platform_common/module.h> 53 #include <px4_platform_common/px4_work_queue/ScheduledWorkItem.hpp> 59 #define TFMINI_DEFAULT_PORT "/dev/ttyS3" 63 class TFMINI :
public px4::ScheduledWorkItem
66 TFMINI(
const char *port, uint8_t rotation = distance_sensor_s::ROTATION_DOWNWARD_FACING);
89 static constexpr
int kCONVERSIONINTERVAL{9_ms};
93 unsigned int _linebuf_index{0};
measure the time elapsed performing an event
count the number of times an event occurs
High-resolution timer with callouts and timekeeping.
void init()
Activates/configures the hardware registers.
PX4Rangefinder _px4_rangefinder
__BEGIN_DECLS typedef uint64_t hrt_abstime
Absolute time, in microsecond units.
Performance measuring tools.