mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-30 05:23:36 +08:00
Extended vehicle detection
This commit is contained in:
@@ -70,12 +70,14 @@ bool is_multirotor(const struct vehicle_status_s *current_status)
|
|||||||
{
|
{
|
||||||
return ((current_status->system_type == VEHICLE_TYPE_QUADROTOR) ||
|
return ((current_status->system_type == VEHICLE_TYPE_QUADROTOR) ||
|
||||||
(current_status->system_type == VEHICLE_TYPE_HEXAROTOR) ||
|
(current_status->system_type == VEHICLE_TYPE_HEXAROTOR) ||
|
||||||
(current_status->system_type == VEHICLE_TYPE_OCTOROTOR));
|
(current_status->system_type == VEHICLE_TYPE_OCTOROTOR) ||
|
||||||
|
(current_status->system_type == VEHICLE_TYPE_TRICOPTER));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool is_rotary_wing(const struct vehicle_status_s *current_status)
|
bool is_rotary_wing(const struct vehicle_status_s *current_status)
|
||||||
{
|
{
|
||||||
return is_multirotor(current_status);
|
return is_multirotor(current_status) || (current_status->system_type == VEHICLE_TYPE_HELICOPTER)
|
||||||
|
|| (current_status->system_type == VEHICLE_TYPE_COAXIAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user