mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 09:28:31 -04:00
Plane: correct spelling of mode_lotier_qland
This commit is contained in:
parent
7c0b1f46d6
commit
4068d57930
@ -280,6 +280,7 @@ private:
|
|||||||
ModeQLand mode_qland;
|
ModeQLand mode_qland;
|
||||||
ModeQRTL mode_qrtl;
|
ModeQRTL mode_qrtl;
|
||||||
ModeQAcro mode_qacro;
|
ModeQAcro mode_qacro;
|
||||||
|
ModeLoiterAltQLand mode_loiter_qland;
|
||||||
#if QAUTOTUNE_ENABLED
|
#if QAUTOTUNE_ENABLED
|
||||||
ModeQAutotune mode_qautotune;
|
ModeQAutotune mode_qautotune;
|
||||||
#endif // QAUTOTUNE_ENABLED
|
#endif // QAUTOTUNE_ENABLED
|
||||||
@ -288,9 +289,6 @@ private:
|
|||||||
#if HAL_SOARING_ENABLED
|
#if HAL_SOARING_ENABLED
|
||||||
ModeThermal mode_thermal;
|
ModeThermal mode_thermal;
|
||||||
#endif
|
#endif
|
||||||
#if HAL_QUADPLANE_ENABLED
|
|
||||||
ModeLoiterAltQLand mode_lotier_qland;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// This is the state of the flight control system
|
// This is the state of the flight control system
|
||||||
// There are multiple states defined such as MANUAL, FBW-A, AUTO
|
// There are multiple states defined such as MANUAL, FBW-A, AUTO
|
||||||
|
@ -90,7 +90,7 @@ Mode *Plane::mode_from_mode_num(const enum Mode::Number num)
|
|||||||
break;
|
break;
|
||||||
#if HAL_QUADPLANE_ENABLED
|
#if HAL_QUADPLANE_ENABLED
|
||||||
case Mode::Number::LOITER_ALT_QLAND:
|
case Mode::Number::LOITER_ALT_QLAND:
|
||||||
ret = &mode_lotier_qland;
|
ret = &mode_loiter_qland;
|
||||||
break;
|
break;
|
||||||
#endif // HAL_QUADPLANE_ENABLED
|
#endif // HAL_QUADPLANE_ENABLED
|
||||||
|
|
||||||
|
@ -208,7 +208,7 @@ void Plane::handle_battery_failsafe(const char *type_str, const int8_t action)
|
|||||||
#if HAL_QUADPLANE_ENABLED
|
#if HAL_QUADPLANE_ENABLED
|
||||||
case Failsafe_Action_Loiter_alt_QLand:
|
case Failsafe_Action_Loiter_alt_QLand:
|
||||||
if (quadplane.available()) {
|
if (quadplane.available()) {
|
||||||
plane.set_mode(mode_lotier_qland, ModeReason::BATTERY_FAILSAFE);
|
plane.set_mode(mode_loiter_qland, ModeReason::BATTERY_FAILSAFE);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
FALLTHROUGH;
|
FALLTHROUGH;
|
||||||
@ -223,7 +223,7 @@ void Plane::handle_battery_failsafe(const char *type_str, const int8_t action)
|
|||||||
case Failsafe_Action_Land: {
|
case Failsafe_Action_Land: {
|
||||||
bool already_landing = flight_stage == AP_Vehicle::FixedWing::FLIGHT_LAND;
|
bool already_landing = flight_stage == AP_Vehicle::FixedWing::FLIGHT_LAND;
|
||||||
#if HAL_QUADPLANE_ENABLED
|
#if HAL_QUADPLANE_ENABLED
|
||||||
if (control_mode == &mode_qland || control_mode == &mode_lotier_qland) {
|
if (control_mode == &mode_qland || control_mode == &mode_loiter_qland) {
|
||||||
already_landing = true;
|
already_landing = true;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@ -244,7 +244,7 @@ void Plane::handle_battery_failsafe(const char *type_str, const int8_t action)
|
|||||||
case Failsafe_Action_RTL: {
|
case Failsafe_Action_RTL: {
|
||||||
bool already_landing = flight_stage == AP_Vehicle::FixedWing::FLIGHT_LAND;
|
bool already_landing = flight_stage == AP_Vehicle::FixedWing::FLIGHT_LAND;
|
||||||
#if HAL_QUADPLANE_ENABLED
|
#if HAL_QUADPLANE_ENABLED
|
||||||
if (control_mode == &mode_qland || control_mode == &mode_lotier_qland ||
|
if (control_mode == &mode_qland || control_mode == &mode_loiter_qland ||
|
||||||
quadplane.in_vtol_land_sequence()) {
|
quadplane.in_vtol_land_sequence()) {
|
||||||
already_landing = true;
|
already_landing = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user