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:fix auto fence enable in Mode Takeoff #25788

Closed
wants to merge 1 commit into from

Conversation

Hwurzburg
Copy link
Collaborator

@Hwurzburg Hwurzburg commented Dec 17, 2023

fixes bug in Mode takeoff where autoenable occurs immediately after initial phase of climb and triggers min alt fence breach....AUTO takeoffs (both fw and VTOL) do not auto-enable until takeoff alt is obtained and mission moves to next item....this does roughly the equivalent

addresses #25783

Copy link
Contributor

@tridge tridge left a comment

Choose a reason for hiding this comment

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

this means we won't have a geofence while in the loiter section of takeoff. Is that deliberate?

ArduPlane/mode_takeoff.cpp Outdated Show resolved Hide resolved
@Hwurzburg
Copy link
Collaborator Author

this means we won't have a geofence while in the loiter section of takeoff. Is that deliberate?

yes...same issue with auto mode fw and vtol takeoffs....just the same pattern....violating a fence on a planned takeoff is a user config error....one that becomes immediately obvious

#if AP_FENCE_ENABLED
void ModeTakeoff::_exit()
{
if (plane.is_flying() && plane.is_flying()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Checking the plane is definitely flying?

@Hwurzburg
Copy link
Collaborator Author

closed , replaced with #25804

@Hwurzburg Hwurzburg closed this Dec 20, 2023
@Hwurzburg Hwurzburg deleted the mode_takeoff_fix branch December 20, 2023 19:19
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.

4 participants