ArduPilot/ardupilot

Plane: BUG with auto_state.checked_for_autoland

Offen

#12.996 geöffnet am 06.12.2019

 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C++ (15.603 Forks)batch import
Planegood first issue

Repository-Metriken

Stars
 (9.336 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 26T 16h) (166 gemergte PRs in 30 T)

Beschreibung

Bug report

Switch AUTO->RTL again an again, because checked_for_autoland always set to false when change mode

bool Mode::enter()
{
    // cancel inverted flight
    plane.auto_state.inverted_flight = false;

    // don't cross-track when starting a mission
    plane.auto_state.next_wp_crosstrack = false;

    // reset landing check
    plane.auto_state.checked_for_autoland = false;

Version 4.0 Platform [ ] All [ ] AntennaTracker [ ] Copter [*] Plane [ ] Rover [ ] Submarine

Airframe type What type of airframe (flying wing, glider, hex, Y6, octa etc)

Hardware type What autopilot hardware was used? (Pixhawk, Cube, Pixracer, Navio2, etc)

Logs Please provide a link to any relevant logs that show the issue

Contributor Guide