Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plane:mode AUTOLAND enhancements #28976

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Hwurzburg
Copy link
Collaborator

This PR enhances the new AUTOLAND mode. It adds the following new features:

  1. Allows takeoff direction capture, and hence autoland direction and use, in ACRO, STABILIZE, FBWA, and MANUAL modes,
    in addition to Mode TAKEOFF and AUTO NAV_TAKEOFF, using the same criteria as currently used, the first time after arming.

  2. Adds an option that will set this direction upon arming using a compass, if in use, instead of ground course, allowing the user to set it on the ground arbitrarily as desired, independent of the actual takeoff direction.

The only change to current behavior, besides the new features, is that once the direction is captured it persists until a disarm occurs. Therefore multiple auto takeoffs while armed no longer reset the direction captured by the first, on each subsequent takeoff. Originally, I thought this behavior was desirable, but I now believe it's not of much benefit and the new behavior avoids the current corner case issue of resetting the direction while in flight if a NAV_TAKEOFF autotakeoff is interrupted and then resumed.

In addition, it removes the AUTOLAND code segments in the commands_logic and mode_takeoff modules, reducing the flash impact overall...

These changes have been tested in SITL and flight-tested in all configurations I could think of.

@Hwurzburg Hwurzburg requested review from IamPete1 and tridge December 31, 2024 22:00
@Hwurzburg Hwurzburg added the WikiNeeded needs wiki update label Dec 31, 2024
@Hwurzburg Hwurzburg force-pushed the autoland_improvements_mk2 branch 2 times, most recently from 0cc3cd5 to 3c10149 Compare January 1, 2025 15:03
ArduPlane/AP_Arming.cpp Outdated Show resolved Hide resolved
ArduPlane/Plane.cpp Outdated Show resolved Hide resolved
ArduPlane/mode_autoland.cpp Outdated Show resolved Hide resolved
libraries/AP_Vehicle/AP_FixedWing.h Show resolved Hide resolved
@Hwurzburg Hwurzburg force-pushed the autoland_improvements_mk2 branch from 3c10149 to e462280 Compare January 1, 2025 23:26
@Hwurzburg Hwurzburg force-pushed the autoland_improvements_mk2 branch from e462280 to f722212 Compare January 1, 2025 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants