Browse Source

Fix SYS_AUTOSTART=0 issue

QGC4.4
Don Gagne 10 years ago
parent
commit
1cc531ac76
  1. 6
      src/AutoPilotPlugins/PX4/AirframeComponentController.cc

6
src/AutoPilotPlugins/PX4/AirframeComponentController.cc

@ -40,7 +40,9 @@ bool AirframeComponentController::_typesRegistered = false; @@ -40,7 +40,9 @@ bool AirframeComponentController::_typesRegistered = false;
AirframeComponentController::AirframeComponentController(QObject* parent) :
QObject(parent),
_uas(NULL),
_autoPilotPlugin(NULL)
_autoPilotPlugin(NULL),
_currentVehicleIndex(0),
_autostartId(0)
{
_uas = UASManager::instance()->getActiveUAS();
Q_ASSERT(_uas);
@ -80,9 +82,11 @@ AirframeComponentController::AirframeComponentController(QObject* parent) : @@ -80,9 +82,11 @@ AirframeComponentController::AirframeComponentController(QObject* parent) :
_airframeTypes.append(QVariant::fromValue(airframeType));
}
if (_autostartId != 0) {
// FIXME: Should be a user error
Q_UNUSED(autostartFound);
Q_ASSERT(autostartFound);
}
}
AirframeComponentController::~AirframeComponentController()

Loading…
Cancel
Save