Skip to content

Commit

Permalink
Added MAV_TYPE for vtol tilt-rotor
Browse files Browse the repository at this point in the history
  • Loading branch information
Austriker committed Jul 16, 2015
1 parent d5a21e1 commit e1f095e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/AutoPilotPlugins/PX4/SensorsComponent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}

Expand Down Expand Up @@ -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";
Expand Down
3 changes: 2 additions & 1 deletion src/AutoPilotPlugins/PX4/SensorsComponentController.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e1f095e

Please sign in to comment.