Skip to content

Commit

Permalink
Add ArduPilot Plane AUTOLAND mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Hwurzburg committed Dec 31, 2024
1 parent 89775de commit 69c488a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/FirmwarePlugin/APM/ArduPlaneFirmwarePlugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ APMPlaneMode::APMPlaneMode(uint32_t mode, bool settable)
{ QAUTOTUNE, "QuadPlane AutoTune" },
{ QACRO, "QuadPlane Acro" },
{ THERMAL, "Thermal"},
{ LOITER2QLAND, "QuadPlane LoitertoQLand"},
{ AUTOLAND, "AutoLand"},
});
}

Expand Down Expand Up @@ -71,6 +73,8 @@ ArduPlaneFirmwarePlugin::ArduPlaneFirmwarePlugin(void)
APMPlaneMode(APMPlaneMode::QAUTOTUNE, true),
APMPlaneMode(APMPlaneMode::QACRO, true),
APMPlaneMode(APMPlaneMode::THERMAL, true),
APMPlaneMode(APMPlaneMode::LOITER2QLAND, true),
APMPlaneMode(APMPlaneMode::AUTOLAND, true),
});

if (!_remapParamNameIntialized) {
Expand Down
2 changes: 2 additions & 0 deletions src/FirmwarePlugin/APM/ArduPlaneFirmwarePlugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ class APMPlaneMode: public APMCustomMode
QAUTOTUNE = 22,
QACRO = 23,
THERMAL = 24,
LOITER2QLAND = 25,
AUTOLAND = 26,
};

APMPlaneMode(uint32_t mode, bool settable);
Expand Down

0 comments on commit 69c488a

Please sign in to comment.