From e1f095ed23436723b1553622c97b763c2243b6a3 Mon Sep 17 00:00:00 2001 From: Hugo Serrat Date: Tue, 26 May 2015 17:26:15 +0200 Subject: [PATCH] Added MAV_TYPE for vtol tilt-rotor --- src/AutoPilotPlugins/PX4/SensorsComponent.cc | 6 ++++-- src/AutoPilotPlugins/PX4/SensorsComponentController.cc | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/AutoPilotPlugins/PX4/SensorsComponent.cc b/src/AutoPilotPlugins/PX4/SensorsComponent.cc index 560c47246..e6b64d464 100644 --- a/src/AutoPilotPlugins/PX4/SensorsComponent.cc +++ b/src/AutoPilotPlugins/PX4/SensorsComponent.cc @@ -89,7 +89,8 @@ QStringList SensorsComponent::setupCompleteChangedTriggerList(void) const triggers << "CAL_MAG0_ID" << "CAL_GYRO0_ID" << "CAL_ACC0_ID"; if (_uas->getSystemType() == MAV_TYPE_FIXED_WING || _uas->getSystemType() == MAV_TYPE_VTOL_DUOROTOR || - _uas->getSystemType() == MAV_TYPE_VTOL_QUADROTOR) { + _uas->getSystemType() == MAV_TYPE_VTOL_QUADROTOR || + _uas->getSystemType() == MAV_TYPE_VTOL_TILTROTOR) { triggers << "SENS_DPRES_OFF"; } @@ -117,7 +118,8 @@ QUrl SensorsComponent::summaryQmlSource(void) const qDebug() << _uas->getSystemType(); if (_uas->getSystemType() == MAV_TYPE_FIXED_WING || _uas->getSystemType() == MAV_TYPE_VTOL_DUOROTOR || - _uas->getSystemType() == MAV_TYPE_VTOL_QUADROTOR) { + _uas->getSystemType() == MAV_TYPE_VTOL_QUADROTOR || + _uas->getSystemType() == MAV_TYPE_VTOL_TILTROTOR) { summaryQml = "qrc:/qml/SensorsComponentSummaryFixedWing.qml"; } else { summaryQml = "qrc:/qml/SensorsComponentSummary.qml"; diff --git a/src/AutoPilotPlugins/PX4/SensorsComponentController.cc b/src/AutoPilotPlugins/PX4/SensorsComponentController.cc index a09802a41..50e277bf2 100644 --- a/src/AutoPilotPlugins/PX4/SensorsComponentController.cc +++ b/src/AutoPilotPlugins/PX4/SensorsComponentController.cc @@ -431,7 +431,8 @@ bool SensorsComponentController::fixedWing(void) Q_ASSERT(uas); return uas->getSystemType() == MAV_TYPE_FIXED_WING || uas->getSystemType() == MAV_TYPE_VTOL_DUOROTOR || - uas->getSystemType() == MAV_TYPE_VTOL_QUADROTOR; + uas->getSystemType() == MAV_TYPE_VTOL_QUADROTOR || + uas->getSystemType() == MAV_TYPE_VTOL_TILTROTOR; } void SensorsComponentController::_updateAndEmitShowOrientationCalArea(bool show) -- 2.22.0