We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6eb8db commit b8a6024Copy full SHA for b8a6024
src/modules/navigator/land.cpp
@@ -83,8 +83,9 @@ void
83
Land::on_active()
84
{
85
/* for VTOL update landing location during back transition */
86
- if (_navigator->get_vstatus()->is_vtol &&
87
- _navigator->get_vstatus()->in_transition_mode) {
+ if (_navigator->get_vstatus()->is_vtol
+ && _navigator->get_vstatus()->in_transition_mode
88
+ && _navigator->get_local_position()->xy_global) {
89
struct position_setpoint_triplet_s *pos_sp_triplet = _navigator->get_position_setpoint_triplet();
90
91
// create a wp in front of the VTOL while in back-transition, based on MPC settings that will apply in MC phase afterwards
0 commit comments