mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-16 13:37:34 +08:00
commander: send parachute command on termination (#17564)
* commander: send parachute command on termination This sends the DO_PARACHUTE command to parachute component. * commander: fix lying comments and printf * commander: use one flag for termination triggered This merges the duplicate flags _flight_termination_triggered and _flight_flight_termination_printed. * commander: correct variable name * commander: always send tune with parachute * commander: fix target_component for parachute cmd The previous changes were wrong in that all commands were now sent to the parachute component which doesn't make any sense. Of course only the parachute command should be sent there.
This commit is contained in:
@@ -120,6 +120,10 @@ uint8 VEHICLE_CAMERA_ZOOM_TYPE_CONTINUOUS = 1 # Continuous zoom up/down unt
|
||||
uint8 VEHICLE_CAMERA_ZOOM_TYPE_RANGE = 2 # Zoom value as proportion of full camera range
|
||||
uint8 VEHICLE_CAMERA_ZOOM_TYPE_FOCAL_LENGTH = 3 # Zoom to a focal length
|
||||
|
||||
uint8 PARACHUTE_ACTION_DISABLE = 0
|
||||
uint8 PARACHUTE_ACTION_ENABLE = 1
|
||||
uint8 PARACHUTE_ACTION_RELEASE = 2
|
||||
|
||||
uint8 FAILURE_UNIT_SENSOR_GYRO = 0
|
||||
uint8 FAILURE_UNIT_SENSOR_ACCEL = 1
|
||||
uint8 FAILURE_UNIT_SENSOR_MAG = 2
|
||||
|
||||
Reference in New Issue
Block a user