Open rmackay9 opened 3 years ago
I just had this problem on master (post 4.5.0). I did it by having Smart_RTL as one of the modes on my FLTMODE_CH switch. Interesting that it doesn't happen if the switch is set to Smart_RTL on boot, but only when switching to Smart_RTL after switching to some other switch position/mode and then switching back.
During testing of Copter-4.1 a user managed to trigger these lines of code in SmartRTL. In SITL this causes the simulator to crash (on purposes so that we can catch these types of error) but on a real vehicle the vehicle would immediately land and the user would find they were unable to re-arm and takeoff because of this internal error.
by doing this in SITL:
@tridge has reproduced the issue in SITL.