mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 07:23:34 +08:00
distance_sensor: adapted message to float for distance and adapted the drivers
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
# DISTANCE_SENSOR message data
|
||||
|
||||
uint32 time_boot_ms # Time since system boot (us)
|
||||
uint64 timestamp # Microseconds since system boot
|
||||
|
||||
uint16 min_distance # Minimum distance the sensor can measure (in SI)
|
||||
uint16 max_distance # Maximum distance the sensor can measure (in SI)
|
||||
uint16 current_distance # Current distance reading (in SI)
|
||||
float32 min_distance # Minimum distance the sensor can measure (in m)
|
||||
float32 max_distance # Maximum distance the sensor can measure (in m)
|
||||
float32 current_distance # Current distance reading (in m)
|
||||
float32 covariance # Measurement covariance (in m), 0 for unknown / invalid readings
|
||||
|
||||
uint8 type # Type from MAV_DISTANCE_SENSOR enum
|
||||
uint8 type # Type from MAV_DISTANCE_SENSOR enum
|
||||
uint8 MAV_DISTANCE_SENSOR_LASER = 0
|
||||
uint8 MAV_DISTANCE_SENSOR_ULTRASOUND = 1
|
||||
uint8 MAV_DISTANCE_SENSOR_INFRARED = 2
|
||||
|
||||
uint8 id # Onboard ID of the sensor
|
||||
uint8 id # Onboard ID of the sensor
|
||||
|
||||
uint8 orientation # Direction the sensor faces from MAV_SENSOR_ORIENTATION enum
|
||||
uint8 covariance # Measurement covariance (in SI), 0 for unknown / invalid readings
|
||||
Reference in New Issue
Block a user