2015-05-20 08:40:15 -03:00
|
|
|
# DISTANCE_SENSOR message data
|
|
|
|
|
2018-08-06 21:30:05 -03:00
|
|
|
uint64 timestamp # time since system start (microseconds)
|
2015-05-20 08:40:15 -03:00
|
|
|
|
2020-12-15 22:28:22 -04:00
|
|
|
uint32 device_id # unique device ID for the sensor that does not change between power cycles
|
|
|
|
|
2015-05-24 10:28:19 -03:00
|
|
|
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)
|
2019-02-22 11:41:17 -04:00
|
|
|
float32 variance # Measurement variance (in m^2), 0 for unknown / invalid readings
|
2018-07-12 16:50:47 -03:00
|
|
|
int8 signal_quality # Signal quality in percent (0...100%), where 0 = invalid signal, 100 = perfect signal, and -1 = unknown signal quality.
|
2015-05-20 08:40:15 -03:00
|
|
|
|
2015-05-24 10:28:19 -03:00
|
|
|
uint8 type # Type from MAV_DISTANCE_SENSOR enum
|
2015-05-20 08:40:15 -03:00
|
|
|
uint8 MAV_DISTANCE_SENSOR_LASER = 0
|
|
|
|
uint8 MAV_DISTANCE_SENSOR_ULTRASOUND = 1
|
|
|
|
uint8 MAV_DISTANCE_SENSOR_INFRARED = 2
|
2016-12-27 08:34:52 -04:00
|
|
|
uint8 MAV_DISTANCE_SENSOR_RADAR = 3
|
2015-05-20 08:40:15 -03:00
|
|
|
|
2019-06-04 12:49:49 -03:00
|
|
|
float32 h_fov # Sensor horizontal field of view (rad)
|
|
|
|
float32 v_fov # Sensor vertical field of view (rad)
|
2019-07-11 08:20:27 -03:00
|
|
|
float32[4] q # Quaterion sensor orientation with respect to the vehicle body frame to specify the orientation ROTATION_CUSTOM
|
2019-09-10 18:38:17 -03:00
|
|
|
|
|
|
|
uint8 orientation # Direction the sensor faces from MAV_SENSOR_ORIENTATION enum
|
|
|
|
|
|
|
|
uint8 ROTATION_YAW_0 = 0 # MAV_SENSOR_ROTATION_NONE
|
|
|
|
uint8 ROTATION_YAW_45 = 1 # MAV_SENSOR_ROTATION_YAW_45
|
|
|
|
uint8 ROTATION_YAW_90 = 2 # MAV_SENSOR_ROTATION_YAW_90
|
|
|
|
uint8 ROTATION_YAW_135 = 3 # MAV_SENSOR_ROTATION_YAW_135
|
|
|
|
uint8 ROTATION_YAW_180 = 4 # MAV_SENSOR_ROTATION_YAW_180
|
|
|
|
uint8 ROTATION_YAW_225 = 5 # MAV_SENSOR_ROTATION_YAW_225
|
|
|
|
uint8 ROTATION_YAW_270 = 6 # MAV_SENSOR_ROTATION_YAW_270
|
|
|
|
uint8 ROTATION_YAW_315 = 7 # MAV_SENSOR_ROTATION_YAW_315
|
|
|
|
|
|
|
|
uint8 ROTATION_FORWARD_FACING = 0 # MAV_SENSOR_ROTATION_NONE
|
|
|
|
uint8 ROTATION_RIGHT_FACING = 2 # MAV_SENSOR_ROTATION_YAW_90
|
|
|
|
uint8 ROTATION_BACKWARD_FACING = 4 # MAV_SENSOR_ROTATION_YAW_180
|
|
|
|
uint8 ROTATION_LEFT_FACING = 6 # MAV_SENSOR_ROTATION_YAW_270
|
|
|
|
|
|
|
|
uint8 ROTATION_UPWARD_FACING = 24 # MAV_SENSOR_ROTATION_PITCH_90
|
|
|
|
uint8 ROTATION_DOWNWARD_FACING = 25 # MAV_SENSOR_ROTATION_PITCH_270
|
|
|
|
|
|
|
|
uint8 ROTATION_CUSTOM = 100 # MAV_SENSOR_ROTATION_CUSTOM
|