mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-20 18:27:36 +08:00
DistanceSensorCheck: do not raise a distance sensor failure if the SFXX_MODE is set to 2 and we are in a VTOL FX flight phase
This commit is contained in:
@@ -40,3 +40,8 @@ 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
|
||||
|
||||
uint8 mode # mode of operation
|
||||
uint8 DISTANCE_SENSOR_MODE_UNKNOWN = 0 # Unknown mode
|
||||
uint8 DISTANCE_SENSOR_MODE_RUN = 1 # sensor is running continuosly
|
||||
uint8 DISTANCE_SENSOR_MODE_DISABLED = 2 # sensor is disabled per request
|
||||
|
||||
Reference in New Issue
Block a user