Commit bc44ca91 authored by Don Gagne's avatar Don Gagne

VTOL must report as fixed wing

parent 886b40b5
...@@ -87,7 +87,9 @@ QStringList SensorsComponent::setupCompleteChangedTriggerList(void) const ...@@ -87,7 +87,9 @@ QStringList SensorsComponent::setupCompleteChangedTriggerList(void) const
QStringList triggers; QStringList triggers;
triggers << "CAL_MAG0_ID" << "CAL_GYRO0_ID" << "CAL_ACC0_ID"; triggers << "CAL_MAG0_ID" << "CAL_GYRO0_ID" << "CAL_ACC0_ID";
if (_uas->getSystemType() == MAV_TYPE_FIXED_WING) { if (_uas->getSystemType() == MAV_TYPE_FIXED_WING ||
_uas->getSystemType() == MAV_TYPE_VTOL_DUOROTOR ||
_uas->getSystemType() == MAV_TYPE_VTOL_QUADROTOR) {
triggers << "SENS_DPRES_OFF"; triggers << "SENS_DPRES_OFF";
} }
...@@ -123,7 +125,9 @@ QUrl SensorsComponent::summaryQmlSource(void) const ...@@ -123,7 +125,9 @@ QUrl SensorsComponent::summaryQmlSource(void) const
QString summaryQml; QString summaryQml;
qDebug() << _uas->getSystemType(); qDebug() << _uas->getSystemType();
if (_uas->getSystemType() == MAV_TYPE_FIXED_WING) { if (_uas->getSystemType() == MAV_TYPE_FIXED_WING ||
_uas->getSystemType() == MAV_TYPE_VTOL_DUOROTOR ||
_uas->getSystemType() == MAV_TYPE_VTOL_QUADROTOR) {
summaryQml = "qrc:/qml/SensorsComponentSummaryFixedWing.qml"; summaryQml = "qrc:/qml/SensorsComponentSummaryFixedWing.qml";
} else { } else {
summaryQml = "qrc:/qml/SensorsComponentSummary.qml"; summaryQml = "qrc:/qml/SensorsComponentSummary.qml";
......
...@@ -408,7 +408,9 @@ bool SensorsComponentController::fixedWing(void) ...@@ -408,7 +408,9 @@ bool SensorsComponentController::fixedWing(void)
{ {
UASInterface* uas = _autopilot->uas(); UASInterface* uas = _autopilot->uas();
Q_ASSERT(uas); Q_ASSERT(uas);
return uas->getSystemType() == MAV_TYPE_FIXED_WING; return uas->getSystemType() == MAV_TYPE_FIXED_WING ||
uas->getSystemType() == MAV_TYPE_VTOL_DUOROTOR ||
uas->getSystemType() == MAV_TYPE_VTOL_QUADROTOR;
} }
void SensorsComponentController::_updateAndEmitShowOrientationCalArea(bool show) void SensorsComponentController::_updateAndEmitShowOrientationCalArea(bool show)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment