Browse Source

APMAutoPilotPlugin - do not display Heli Setup for versions prior to Copter 4.0

QGC4.4
ChristopherOlson 6 years ago
parent
commit
c9c3df08ab
  1. 2
      src/AutoPilotPlugins/APM/APMAutoPilotPlugin.cc

2
src/AutoPilotPlugins/APM/APMAutoPilotPlugin.cc

@ -111,7 +111,7 @@ const QVariantList& APMAutoPilotPlugin::vehicleComponents(void)
_components.append(QVariant::fromValue((VehicleComponent*)_followComponent)); _components.append(QVariant::fromValue((VehicleComponent*)_followComponent));
} }
if (_vehicle->vehicleType() == MAV_TYPE_HELICOPTER) { if (_vehicle->vehicleType() == MAV_TYPE_HELICOPTER && (_vehicle->versionCompare(4, 0, 0) >= 0)) {
_heliComponent = new APMHeliComponent(_vehicle, this); _heliComponent = new APMHeliComponent(_vehicle, this);
_heliComponent->setupTriggerSignals(); _heliComponent->setupTriggerSignals();
_components.append(QVariant::fromValue((VehicleComponent*)_heliComponent)); _components.append(QVariant::fromValue((VehicleComponent*)_heliComponent));

Loading…
Cancel
Save