mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-21 13:02:25 +08:00
Some more code cleanup.
Signed-off-by: Claudio Micheli <claudio@auterion.com>
This commit is contained in:
committed by
Beat Küng
parent
59cf9a1dd4
commit
cd47cefb03
@@ -74,7 +74,7 @@ uint8 rc_input_mode # set to 1 to disable the RC input, 2 to enable manual co
|
||||
bool data_link_lost # datalink to GCS lost
|
||||
uint8 data_link_lost_counter # counts unique data link lost events
|
||||
|
||||
bool high_latency_data_link_lost # all low latency datalinks to GCS lost
|
||||
bool high_latency_data_link_lost # Set to true if the high latency data link (eg. RockBlock Iridium 9603 telemetry module) is lost
|
||||
|
||||
bool engine_failure # Set to true if an engine failure is detected
|
||||
bool mission_failure # Set to true if mission could not continue/finish
|
||||
|
||||
@@ -1280,7 +1280,7 @@ Commander::run()
|
||||
int system_power_sub = orb_subscribe(ORB_ID(system_power));
|
||||
int vtol_vehicle_status_sub = orb_subscribe(ORB_ID(vtol_vehicle_status));
|
||||
|
||||
struct geofence_result_s geofence_result {};
|
||||
geofence_result_s geofence_result {};
|
||||
|
||||
land_detector.landed = true;
|
||||
|
||||
|
||||
@@ -64,8 +64,8 @@ enum class link_loss_actions_t {
|
||||
AUTO_RTL = 2, // Return mode
|
||||
AUTO_LAND = 3, // Land mode
|
||||
AUTO_RECOVER = 4, // Data Link Auto Recovery (CASA Outback Challenge rules)
|
||||
TERMINATE = 5, // Terminate
|
||||
LOCKDOWN = 6, // Lockdown
|
||||
TERMINATE = 5, // Turn off all controllers and set PWM outputs to failsafe value
|
||||
LOCKDOWN = 6, // Kill the motors, same result as kill switch
|
||||
};
|
||||
|
||||
typedef enum {
|
||||
|
||||
Reference in New Issue
Block a user