40 _distance_sensor_pub{
ORB_ID(distance_sensor), priority}
~PX4Rangefinder() override
#define RANGE_FINDER_BASE_DEVICE_PATH
virtual int register_class_devname(const char *class_devname)
Register a class device name, automatically adding device class instance suffix if need be...
static int32_t device_id[max_accel_sens]
void set_device_type(uint8_t device_type)
uORB::PublicationMultiData< distance_sensor_s > _distance_sensor_pub
Definitions for the generic base classes in the device framework.
#define ORB_ID(_name)
Generates a pointer to the uORB metadata structure for a given topic.
void update(const hrt_abstime timestamp, const float distance, const int8_t quality=-1)
virtual int unregister_class_devname(const char *class_devname, unsigned class_instance)
Register a class device name, automatically adding device class instance suffix if need be...
PX4Rangefinder(const uint32_t device_id, const uint8_t priority=ORB_PRIO_DEFAULT, const uint8_t device_orientation=distance_sensor_s::ROTATION_DOWNWARD_FACING)
__BEGIN_DECLS typedef uint64_t hrt_abstime
Absolute time, in microsecond units.
void set_device_id(const uint8_t device_id)
int _class_device_instance
void set_orientation(const uint8_t device_orientation=distance_sensor_s::ROTATION_DOWNWARD_FACING)