iNavFlight / inav

INAV: Navigation-enabled flight control software
https://inavflight.github.io
GNU General Public License v3.0
3.14k stars 1.47k forks source link

RTH in GPS-denied environment result in instant emergency landing #733

Closed digitalentity closed 7 years ago

digitalentity commented 7 years ago

In a GPS-denied environment activating RTH (either manually or by failsafe) result in instant emergency landing.

It would be better to create two scenarios:

  1. Manual RTH - disallow pilot to activate RTH
  2. Failsafe RTH - allow the UAV to drift with the wind and maintain only altitude for a certain timeout to allow GPS to recover, then switch to emergency landing.
DzikuVx commented 7 years ago

was this not covered some time ago with gps-glitch? Emergency landing was supposed to be triggered only after some time passed. Or this is different case?

digitalentity commented 7 years ago

That's a different case. If GPS is lost when RTH is already in progress it will wait for _nav_positiontimeout seconds. However if GPS is not available when RTH is only being activated - instant emergency landing is triggered.

digitalentity commented 7 years ago

Implementation in #745, closing.