mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 20:33:34 +08:00
navigator land: don't project VTOL braking waypoint without global position
This commit is contained in:
committed by
Silvan Fuhrer
parent
b6eb8dbfd9
commit
b8a602414d
@@ -83,8 +83,9 @@ void
|
|||||||
Land::on_active()
|
Land::on_active()
|
||||||
{
|
{
|
||||||
/* for VTOL update landing location during back transition */
|
/* for VTOL update landing location during back transition */
|
||||||
if (_navigator->get_vstatus()->is_vtol &&
|
if (_navigator->get_vstatus()->is_vtol
|
||||||
_navigator->get_vstatus()->in_transition_mode) {
|
&& _navigator->get_vstatus()->in_transition_mode
|
||||||
|
&& _navigator->get_local_position()->xy_global) {
|
||||||
struct position_setpoint_triplet_s *pos_sp_triplet = _navigator->get_position_setpoint_triplet();
|
struct position_setpoint_triplet_s *pos_sp_triplet = _navigator->get_position_setpoint_triplet();
|
||||||
|
|
||||||
// create a wp in front of the VTOL while in back-transition, based on MPC settings that will apply in MC phase afterwards
|
// create a wp in front of the VTOL while in back-transition, based on MPC settings that will apply in MC phase afterwards
|
||||||
|
|||||||
Reference in New Issue
Block a user