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: Add tkoff. and land. to landed_state method #29534

Conversation

rubenp02
Copy link
Contributor

Updated the landed_state method in the MAVLink GCS module to accurately reflect the vehicle's status during takeoff and landing in the MAV_LANDED_STATE field of EXTENDED_SYS_STATE. The method now returns MAV_LANDED_STATE_TAKEOFF if the vehicle is taking off and MAV_LANDED_STATE_LANDING if it is landing, matching the ArduCopter and Blimp implementations.

In combination with mavlink/qgroundcontrol#12567, this makes it possible to abort landings in QGroundControl with ArduPilot aircraft.

Updated the landed_state method in the MAVLink GCS module to accurately
reflect the vehicle's status during takeoff and landing in the
MAV_LANDED_STATE field of EXTENDED_SYS_STATE. The method now returns
MAV_LANDED_STATE_TAKEOFF if the vehicle is taking off and
MAV_LANDED_STATE_LANDING if it is landing, matching the ArduCopter and
Blimp implementations.
Copy link
Member

@IamPete1 IamPete1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. This is a improvement, although i'm not sure we populate the methods correctly for all modes. @Hwurzburg looks like we might need to add the is_landing method to the new autoland mode.

@Hwurzburg
Copy link
Collaborator

#29553

@tridge tridge merged commit 530bce6 into ArduPilot:master Mar 18, 2025
72 checks passed
@rubenp02 rubenp02 deleted the feature/add-tkoff-and-landing-to-landed-state branch March 18, 2025 05:55
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.

5 participants