Browse Source

Some more code cleanup.

Signed-off-by: Claudio Micheli <claudio@auterion.com>
sbg
Claudio Micheli 6 years ago committed by Beat Küng
parent
commit
cd47cefb03
  1. 2
      msg/vehicle_status.msg
  2. 2
      src/modules/commander/Commander.cpp
  3. 4
      src/modules/commander/state_machine_helper.h

2
msg/vehicle_status.msg

@ -74,7 +74,7 @@ uint8 rc_input_mode # set to 1 to disable the RC input, 2 to enable manual co @@ -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

2
src/modules/commander/Commander.cpp

@ -1280,7 +1280,7 @@ Commander::run() @@ -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;

4
src/modules/commander/state_machine_helper.h

@ -64,8 +64,8 @@ enum class link_loss_actions_t { @@ -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 {

Loading…
Cancel
Save