mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 07:53:34 +08:00
Removed is_rotor_wing, replaced with vehicle_type
This commit is contained in:
committed by
Julian Oes
parent
2ca40bfc65
commit
a134da6e12
@@ -62,7 +62,7 @@ void VtolLandDetector::_update_topics()
|
||||
bool VtolLandDetector::_get_maybe_landed_state()
|
||||
{
|
||||
// Only trigger in RW mode
|
||||
if ((_vehicle_status.timestamp != 0) && !_vehicle_status.is_rotary_wing) {
|
||||
if ((_vehicle_status.timestamp != 0) && _vehicle_status.vehicle_type == vehicle_status_s::VEHICLE_TYPE_FIXED_WING) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -72,7 +72,7 @@ bool VtolLandDetector::_get_maybe_landed_state()
|
||||
bool VtolLandDetector::_get_landed_state()
|
||||
{
|
||||
// Only trigger in RW mode
|
||||
if ((_vehicle_status.timestamp != 0) && !_vehicle_status.is_rotary_wing) {
|
||||
if ((_vehicle_status.timestamp != 0) && _vehicle_status.vehicle_type == vehicle_status_s::VEHICLE_TYPE_FIXED_WING) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user