Copter: RTL's ignore pilot yaw should apply to all stages of RTL
BUG
# Bug Report
If the user set RTL_OPTIONS = 2 (Ignore Pilot Yaw) the yaw is still consumed during the final stage of the RTL (e.g. landing). I think the correct interpretation is that we should ignore the pilot's input during all stages of RTL.
This is quite easy to reproduce in SITL:
1. ./Tools/autotest/sim_vehicle.py --map --console
2. param set RTL_OPTIONS 2 (to ignore pilot yaw)
3. GUIDED
4. arm throttle
5. takeoff 20
6. RTL
7. rc 4 1000
At this point the vehicle will yaw when it should not
I think the bug was introduced many years ago by PR https://github.com/ArduPilot/ardupilot/pull/21651
This issue was raised in [this 4.7 beta testing thread](https://discuss.ardupilot.org/t/rc-options-to-1-make-copter-yaw-spinning/142948/16).
**Version**
4.6, 4.7, 4.8 and earlier
**Platform**
[ ] All
[ ] AntennaTracker
[x] Copter
[ ] Plane
[ ] Rover
[ ] Submarine
**Airframe type**
Copter
**Logs**
available in the discussion linked above
0 条评论