Loiter: speed surge after releasing pitch + yaw with coordinated turns on (4.7.2 SITL logs)

Hi all,

@rmackay9 suggested I post this here so @Leonardthall or @andyp1per can take a look.

I noticed this in TuneKata (tunekata.com), a browser-based tuning trainer I built that runs the real ArduCopter firmware compiled to WebAssembly, and then reproduced it in the official Copter 4.7.2 SITL.

With LOIT_OPTIONS = 1 (coordinated turns, the default in 4.7.0 to 4.7.2), if you hold full pitch and full yaw together in Loiter for a few seconds and then centre both sticks,the copter almost doubles its speed before slowing down, and stops about 12 m from where the sticks were released. With LOIT_OPTIONS = 0 the speed doesn’t rise and it stops within 3 m. A pitch-only release is the same either way.

Setting LOIT_OPTIONS = 0 is what I did in TuneKata, and it’s also the new default on master (4b83b49c24).

How I tested: SITL with the default quad and copter.parm, PILOT_Y_RATE set to 90 and everything else at default, apart from ARMING_SKIPCHK (the script arms over MAVLink without an RC receiver). Each log is one flight: take off to 8 m, switch to Loiter, then three stick inputs, each held for 3 s and then released:

  • D: full forward pitch only
  • H: full forward pitch + full right yaw
  • I: full back pitch + full left yaw

The TuneKata logs are the same flight on its 22-inch quad model (firmware master 26c7363f64), written by the firmware itself. The numbers differ because the airframe and the firmware version are different.

Measured during the runs: ground speed when the sticks are centred → peak within the next 2 s, and the distance from the release point until it drops below 0.3 m/s:

H I D (pitch only)
4.7.2 SITL, LOIT_OPTIONS 1 3.20 → 6.00 m/s, 12.3 m 3.22 → 5.95 m/s, 12.2 m 6.68 → 6.98 m/s, 13.6 m
4.7.2 SITL, LOIT_OPTIONS 0 2.77 → 2.77 m/s, 2.9 m 2.71 → 2.71 m/s, 2.7 m 6.60 → 6.92 m/s, 13.4 m
TuneKata 22-inch, LOIT_OPTIONS 1 3.20 → 6.04 m/s, 10.8 m 3.25 → 6.13 m/s, 10.9 m 6.89 → 7.29 m/s, 12.5 m
TuneKata 22-inch, LOIT_OPTIONS 0 2.30 → 2.30 m/s, 1.3 m 2.24 → 2.24 m/s, 1.2 m 6.89 → 7.28 m/s, 12.5 m

I don’t have a log from a real aircraft. The four .BIN logs, the pymavlink script that flies the SITL runs (sitl_release_log.py) and LOGS.md with the time of each input are here: https://drive.google.com/file/d/1Wqm2HGGcvbScPSoXvnrG6-F9RobEgwLT/view?usp=sharing

Thanks,
Wei-Che