Open julianoes opened 4 years ago
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.
This actually just happened to me and I wasn’t prepared for the default behavior. My question would be why by default is NAV_GPSF_TR 0? The answer I received was to descend but is that correct option as well as the default setting (when say rc and or telemetry is available?) That depends also on NAV_GPSF_LT (which prob shouldn’t default to 0) but why thrust is 0 doesn’t make sense. Am I missing something here or is the objective to hard land aka fixed bank loiter to land with no throttle? Which is basically crash land.
We experienced this on our BabyShark 260 VTOL a few days back. GPS position was lost, triggering the condition_local_velocity_valid
, condition_local_position_valid
and condition_global_position_valid
flags, which in turn triggered the nav_state to be set to NAVIGATION_STATE_AUTO_LANDGPSFAIL
, which gives the "fixed bank loiter" described here. As the vehicle was descending quite quickly, we did a transition from FW to RW mode manually in QGC. This immediately triggered the vehicle to change the nav_state to NAVIGATION_STATE_DESCEND
, causing it to land (thankfully safely) in RW mode.
The log can be found here. This was not at all the expected behaviour, as we were assuming that the vehicle would either loiter for a while or transition to RW mode, as @julianoes describes.
@julianoes @sfuhrer What is the status on this issue? Is a fix for this behaviour planned in the near future?
Also, it seems that the altitude is set to 0 when this happens, as reset_triplets()
is called by the navigator in navigator_main.cpp
when the nav_state is changed to fixed bank loiter (NAVIGATION_STATE_AUTO_LANDGPSFAIL
). Could it be that this is what is causing the motor to give zero thrust @julianoes ?
Describe the bug When GPS is lost during the fixedwing part of a VTOL mission, the plane says it is going to
fixed bank loiter
. It does so without thrust, so starts diving to keep above stall speed. This results in a "hard landing" at 13 m/s horizontal and 3 m/s vertical speed.I would assume that by default a VTOL would either actually loiter for a while to try to regain GPS or otherwise transition back to multicopter mode and slowly descend.
It certainly should not dive like that, especially when datalink and manual control is still available.
To Reproduce Steps to reproduce the behavior:
make px4_sitl gazebo_standard_vtol
param set SYS_FAILURE_EN 1
failure gps off
Log Files and Screenshots https://logs.px4.io/plot_app?log=d4571b45-9472-4265-bc6c-87555e95c784
FYI @sfuhrer @RomanBapst