forked from Archive/PX4-Autopilot
control_mode: add allocation to orbit mode to not crash
This commit is contained in:
parent
a99a7d2abd
commit
6e31638817
|
@ -168,12 +168,13 @@ void getVehicleControlMode(uint8_t nav_state, uint8_t vehicle_type,
|
|||
case vehicle_status_s::NAVIGATION_STATE_ORBIT:
|
||||
vehicle_control_mode.flag_control_manual_enabled = false;
|
||||
vehicle_control_mode.flag_control_auto_enabled = false;
|
||||
vehicle_control_mode.flag_control_rates_enabled = true;
|
||||
vehicle_control_mode.flag_control_attitude_enabled = true;
|
||||
vehicle_control_mode.flag_control_altitude_enabled = true;
|
||||
vehicle_control_mode.flag_control_climb_rate_enabled = true;
|
||||
vehicle_control_mode.flag_control_position_enabled = true;
|
||||
vehicle_control_mode.flag_control_velocity_enabled = true;
|
||||
vehicle_control_mode.flag_control_altitude_enabled = true;
|
||||
vehicle_control_mode.flag_control_climb_rate_enabled = true;
|
||||
vehicle_control_mode.flag_control_attitude_enabled = true;
|
||||
vehicle_control_mode.flag_control_rates_enabled = true;
|
||||
vehicle_control_mode.flag_control_allocation_enabled = true;
|
||||
break;
|
||||
|
||||
// vehicle_status_s::NAVIGATION_STATE_EXTERNALx: handled in ModeManagement
|
||||
|
|
Loading…
Reference in New Issue