diff --git a/src/AutoPilotPlugins/APM/APMAutoPilotPlugin.cc b/src/AutoPilotPlugins/APM/APMAutoPilotPlugin.cc index 2c2f3f6..cf2b579 100644 --- a/src/AutoPilotPlugins/APM/APMAutoPilotPlugin.cc +++ b/src/AutoPilotPlugins/APM/APMAutoPilotPlugin.cc @@ -111,7 +111,7 @@ const QVariantList& APMAutoPilotPlugin::vehicleComponents(void) _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->setupTriggerSignals(); _components.append(QVariant::fromValue((VehicleComponent*)_heliComponent));