Skip to content

Commit

Permalink
Fix VTOL landing item scanning for PX4
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenp02 authored and DonLakeFlyer committed Jan 3, 2025
1 parent 7f2541b commit 23c0b68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MissionManager/VTOLLandingComplexItem.cc
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ void VTOLLandingComplexItem::_calcGlideSlope(void)

bool VTOLLandingComplexItem::_isValidLandItem(const MissionItem& missionItem)
{
if (missionItem.command() != MAV_CMD_NAV_LAND ||
if (missionItem.command() != MAV_CMD_NAV_VTOL_LAND ||
!(missionItem.frame() == MAV_FRAME_GLOBAL_RELATIVE_ALT || missionItem.frame() == MAV_FRAME_GLOBAL) ||
missionItem.param1() != 0 || missionItem.param2() != 0 || missionItem.param3() != 0 || !qIsNaN(missionItem.param4())) {
return false;
Expand Down

0 comments on commit 23c0b68

Please sign in to comment.