ardupilot/ArduPlane
Peter Barker 39c87c0b1b Plane: call update_loiter before determining whether to fly home or not
we are calling "reached_loiter_target" as part of our checks as to whether to fly home or not.

We need to call update_loiter so the L1 controller can update its internal state for the new waypoint which do_RTL has set.  Depending on location (but typically), that will mean that L1's reached_loiter_target() will then return false, so we fly home.

This bug was affected by f8d7be5e43 .  Any sort of altitude error greater than 10m would delay us entering the landing sequence, allowing the L1 controller to update its state.
2024-04-10 17:44:25 +10:00
..
AP_Arming.cpp Plane: AP_Arming: use `mission.contains_item()` eather than `.mission.get_landing_sequence_start() > 0` 2024-04-02 11:11:59 +11:00
AP_Arming.h Plane: implement AP_PLANE_BLACKBOX_LOGGING 2023-05-18 12:59:09 +10:00
AP_ExternalControl_Plane.cpp AP_ExternalControl: add REP-147 Global Position Control 2023-12-20 02:37:01 +00:00
AP_ExternalControl_Plane.h ArduPlane: add REP-147 Global Position Control 2023-12-20 02:37:01 +00:00
ArduPlane.cpp Plane: pass current location to mission landing methods 2024-04-02 11:11:59 +11:00
Attitude.cpp Plane: output nav scripting throttle with rest of nav scripting stuff 2024-02-13 10:50:03 +11:00
GCS_Mavlink.cpp ArduPlane: move handling of DO_SET_HOME up to GCS_MAVLink base class 2024-04-09 09:35:16 +10:00
GCS_Mavlink.h ArduPlane: move handling of DO_SET_HOME up to GCS_MAVLink base class 2024-04-09 09:35:16 +10:00
GCS_Plane.cpp ArduPlane: move RC bits in mavlink to common code 2024-02-10 11:46:44 +11:00
GCS_Plane.h ArduPlane: code-generate chan-fetching methods 2022-12-15 08:31:54 +11:00
Log.cpp ArduPlane: allow HarmonicNotches to be compiled out of the code 2024-03-19 07:04:13 +11:00
Makefile.waf waf: use single entry point for make wrappers 2015-12-10 10:40:34 +09:00
Parameters.cpp Plane: fix units metadata for PTCH_LIM_MIN_DEG 2024-04-09 09:30:41 +10:00
Parameters.h Plane: compile in AC_PrecLand for scripting 2024-03-06 09:39:51 +11:00
Plane.cpp ArduPlane: move logger object up to AP_Vehicle 2024-02-13 10:54:29 +11:00
Plane.h ArduPlane: move handling of DO_SET_HOME up to GCS_MAVLink base class 2024-04-09 09:35:16 +10:00
RC_Channel.cpp Plane: make precsion QLOITER possible from lua 2024-03-12 10:45:56 +11:00
RC_Channel.h ArduPlane: use AUX_FUNC instead of typedef aux_func_t 2024-02-15 08:41:30 +11:00
ReleaseNotes.txt Plane: release notes for 4.5.1 2024-04-08 13:09:16 +10:00
afs_plane.cpp AP_AdvancedFailsafe: option to automatically set mode to auto when datalink is loss 2023-09-12 09:09:39 +10:00
afs_plane.h AP_AdvancedFailsafe: option to automatically set mode to auto when datalink is loss 2023-09-12 09:09:39 +10:00
altitude.cpp Plans: rename ALT_CRUISE_MIN to CRUISE_ALT_FLOOR 2024-01-23 15:00:30 +11:00
avoidance_adsb.cpp ArduPlane: convert ALT_HOLD_RTL and ALT_HOLD_FBWCM 2024-01-23 15:00:30 +11:00
avoidance_adsb.h all: use CLASS_NO_COPY() macro 2022-10-04 11:23:04 +11:00
commands.cpp Plane: ensure home is up to date on arming 2023-02-19 10:45:42 +11:00
commands_logic.cpp Plane: do_RTL: don't log mode 2024-03-19 12:24:54 +11:00
config.h Plane: move AP_Stats to AP_vehicle 2024-01-30 11:12:21 +11:00
control_modes.cpp ArduPlane: make Plane use more of RC_Channel library for mode switching 2023-04-18 09:19:20 +10:00
createTags treewide: fix shebangs - /bin/bash -> /usr/bin/env bash 2024-02-13 11:36:23 +11:00
defines.h Plane: convert parameter TRIM_PITCH_CD to TRIM_PITCH_DEG 2024-01-23 15:00:30 +11:00
ekf_check.cpp ArduPlane: allow compilation with HAL_LOGGING_ENABLED false 2024-01-17 18:25:55 +11:00
events.cpp Plane: pass current location to mission landing methods 2024-04-02 11:11:59 +11:00
failsafe.cpp Plane: use is_armed_and_safety_off() 2023-02-21 07:44:09 +11:00
fence.cpp ArduPlane: convert ALT_HOLD_RTL and ALT_HOLD_FBWCM 2024-01-23 15:00:30 +11:00
is_flying.cpp Plane: move AP_Stats to AP_vehicle 2024-01-30 11:12:21 +11:00
mode.cpp Plane: move pilot throttle output up to control modes 2024-02-06 11:02:28 +11:00
mode.h Plane: make precsion QLOITER possible from lua 2024-03-12 10:45:56 +11:00
mode_LoiterAltQLand.cpp Plane: mode LoiterAltQLand to reuse loiter point if available 2023-11-28 10:27:19 +11:00
mode_acro.cpp Plane: move pilot throttle output up to control modes 2024-02-06 11:02:28 +11:00
mode_auto.cpp Plane: output nav scripting throttle with rest of nav scripting stuff 2024-02-13 10:50:03 +11:00
mode_autotune.cpp Plane: move pilot throttle output up to control modes 2024-02-06 11:02:28 +11:00
mode_avoidADSB.cpp Plane: compile out ADSB mode if required 2020-09-24 08:22:16 -07:00
mode_circle.cpp Plane: move auto_throttle_mode to being a method on each mode 2021-01-10 16:04:30 +11:00
mode_cruise.cpp ArduPlane: make AHRS attitude member variables private 2024-01-14 12:47:47 +11:00
mode_fbwa.cpp Plane: move pilot throttle output up to control modes 2024-02-06 11:02:28 +11:00
mode_fbwb.cpp Plane: move auto_throttle_mode to being a method on each mode 2021-01-10 16:04:30 +11:00
mode_guided.cpp Plane: move guided throttle passthrough to mode_guided 2024-01-31 18:21:27 +11:00
mode_loiter.cpp Plane: rework `isHeadingLinedUp` function for loiter breakout 2024-02-13 10:48:47 +11:00
mode_manual.cpp Plane: move manual mode throttle limits to main throttle limit function. 2024-03-05 11:38:28 +11:00
mode_qacro.cpp ArduPlane: Fix some typos 2023-10-12 18:30:42 +11:00
mode_qautotune.cpp Plane: Handle reset of q_fwd_throttle in QuadPlane::mode_enter(void) 2023-09-27 11:43:45 +10:00
mode_qhover.cpp Plane: Q_ACCEL_Z -> Q_PILOT_ACCEL_Z 2024-01-23 15:00:30 +11:00
mode_qland.cpp Plane: make precsion QLOITER possible from lua 2024-03-12 10:45:56 +11:00
mode_qloiter.cpp Plane: make precsion QLOITER possible from lua 2024-03-12 10:45:56 +11:00
mode_qrtl.cpp ArduPlane: convert ALT_HOLD_RTL and ALT_HOLD_FBWCM 2024-01-23 15:00:30 +11:00
mode_qstabilize.cpp ArduPlane: convert LIM_PITCH_MIN/MAX -> PTCH_LIM_MIN/MAX_DEG 2024-01-23 15:00:30 +11:00
mode_rtl.cpp Plane: call update_loiter before determining whether to fly home or not 2024-04-10 17:44:25 +10:00
mode_stabilize.cpp Plane: move pilot throttle output up to control modes 2024-02-06 11:02:28 +11:00
mode_takeoff.cpp ArduPlane: fix autofence enable in takeoff mode 2024-02-13 10:45:39 +11:00
mode_thermal.cpp Plane: Remove meaningless semicolons 2022-02-07 08:27:34 +09:00
mode_training.cpp Plane: move pilot throttle output up to control modes 2024-02-06 11:02:28 +11:00
motor_test.cpp ArduPlane: Fix some typos 2023-10-12 18:30:42 +11:00
navigation.cpp ArduPlane: convert MIN_GNDSPEED_CM to MIN_GROUNDSPEED 2024-01-23 15:00:30 +11:00
parachute.cpp ArduPlane: make and use AP_LANDINGGEAR_ENABLED 2022-12-14 18:30:23 +11:00
qautotune.cpp Plane: Q_ACCEL_Z -> Q_PILOT_ACCEL_Z 2024-01-23 15:00:30 +11:00
qautotune.h ArduPlane: allow compilation with HAL_LOGGING_ENABLED false 2024-01-17 18:25:55 +11:00
quadplane.cpp Plane: don't special case tilt rotors for motors shutdown 2024-03-06 08:01:52 +11:00
quadplane.h Plane: Prevent overloading quadplane wing during VTOL braking 2024-02-23 15:26:47 +11:00
radio.cpp Plane: fixed throttle_at_zero() 2024-03-15 09:26:40 +11:00
reverse_thrust.cpp Plane: ignore invalid pilot throttle 2023-11-29 18:15:01 +11:00
sensors.cpp ArduPlane: change namespace of MultiCopter and FixedWing params 2022-11-09 19:04:37 +11:00
servos.cpp Plane: allow set_throttle in manual and move disarmed override up 2024-02-20 11:35:17 +11:00
soaring.cpp Plane: soaring: No action if in landing sequence. 2021-08-04 06:52:56 +10:00
system.cpp ArduPlane: stop passing serial manager to GPS init 2024-03-19 07:28:55 +11:00
tailsitter.cpp ArduPlane: convert LIM_PITCH_MIN/MAX -> PTCH_LIM_MIN/MAX_DEG 2024-01-23 15:00:30 +11:00
tailsitter.h Plane: Quadplane: log tailsitter speed scailing in TSIT msg 2023-12-19 11:20:42 +11:00
takeoff.cpp Plane:add TKOFF_TIMEOUT to MODE TAKEOFF 2024-01-30 11:02:53 +11:00
tiltrotor.cpp ArduPlane: expand explanations in FWD THR docs 2023-11-07 10:57:04 +11:00
tiltrotor.h Plane: titrotor: is_motor_tilting: dont cast to uint8 2023-03-07 10:28:11 +11:00
transition.h Plane: use dedicated quadplane function for stick mixing enable 2023-04-25 10:06:50 +10:00
tuning.cpp Plane: Add Q_FWD_THR_GAIN to table of transmitter tuning parameters 2023-09-27 11:43:45 +10:00
tuning.h Plane: Add Q_FWD_THR_GAIN to table of transmitter tuning parameters 2023-09-27 11:43:45 +10:00
version.h ArduPlane: fix version setting in CheckFirmware app descriptor 2024-02-21 18:54:17 +11:00
wscript ArduPlane: move AP_OSD into common libraries list 2024-03-19 07:15:10 +11:00