diff --git a/src/AutoPilotPlugins/APM/APMAutoPilotPlugin.cc b/src/AutoPilotPlugins/APM/APMAutoPilotPlugin.cc index 126d96834f0253d24215f9d00d54e1927647aefb..82964444bd79023e0d4c1b982edc068f1e58e37e 100644 --- a/src/AutoPilotPlugins/APM/APMAutoPilotPlugin.cc +++ b/src/AutoPilotPlugins/APM/APMAutoPilotPlugin.cc @@ -37,7 +37,10 @@ APMAutoPilotPlugin::APMAutoPilotPlugin(Vehicle* vehicle, QObject* parent) , _cameraComponent(NULL) , _flightModesComponent(NULL) , _powerComponent(NULL) +#if 0 + // Temporarily removed, waiting for new command implementation , _motorComponent(NULL) +#endif , _radioComponent(NULL) , _safetyComponent(NULL) , _sensorsComponent(NULL) @@ -81,11 +84,15 @@ const QVariantList& APMAutoPilotPlugin::vehicleComponents(void) _powerComponent->setupTriggerSignals(); _components.append(QVariant::fromValue((VehicleComponent*)_powerComponent)); +#if 0 + // Temporarily removed, waiting for new command implementation + if (_vehicle->multiRotor() || _vehicle->vtol()) { _motorComponent = new MotorComponent(_vehicle, this); _motorComponent->setupTriggerSignals(); _components.append(QVariant::fromValue((VehicleComponent*)_motorComponent)); } +#endif _safetyComponent = new APMSafetyComponent(_vehicle, this); _safetyComponent->setupTriggerSignals(); diff --git a/src/AutoPilotPlugins/APM/APMAutoPilotPlugin.h b/src/AutoPilotPlugins/APM/APMAutoPilotPlugin.h index 961d88aee174b31c3429db81db3494b48c9ae9f2..35d870d61e7e4388bfedb5104714ffd291ae3d93 100644 --- a/src/AutoPilotPlugins/APM/APMAutoPilotPlugin.h +++ b/src/AutoPilotPlugins/APM/APMAutoPilotPlugin.h @@ -42,7 +42,10 @@ public: APMCameraComponent* cameraComponent (void) const { return _cameraComponent; } APMFlightModesComponent* flightModesComponent(void) const { return _flightModesComponent; } APMPowerComponent* powerComponent (void) const { return _powerComponent; } +#if 0 + // Temporarily removed, waiting for new command implementation MotorComponent* motorComponent (void) const { return _motorComponent; } +#endif APMRadioComponent* radioComponent (void) const { return _radioComponent; } APMSafetyComponent* safetyComponent (void) const { return _safetyComponent; } APMSensorsComponent* sensorsComponent (void) const { return _sensorsComponent; } @@ -61,7 +64,10 @@ private: APMCameraComponent* _cameraComponent; APMFlightModesComponent* _flightModesComponent; APMPowerComponent* _powerComponent; +#if 0 + // Temporarily removed, waiting for new command implementation MotorComponent* _motorComponent; +#endif APMRadioComponent* _radioComponent; APMSafetyComponent* _safetyComponent; APMSensorsComponent* _sensorsComponent; diff --git a/src/Vehicle/Vehicle.cc b/src/Vehicle/Vehicle.cc index e925e58953a370d663bb5d19abcc3b01d2842bdc..942303dba059fff8fae5344cf0c604a6e1c6f519 100644 --- a/src/Vehicle/Vehicle.cc +++ b/src/Vehicle/Vehicle.cc @@ -1806,10 +1806,13 @@ void Vehicle::setSoloFirmware(bool soloFirmware) } } +#if 0 + // Temporarily removed, waiting for new command implementation void Vehicle::motorTest(int motor, int percent, int timeoutSecs) { doCommandLong(defaultComponentId(), MAV_CMD_DO_MOTOR_TEST, motor, MOTOR_TEST_THROTTLE_PERCENT, percent, timeoutSecs); } +#endif const char* VehicleGPSFactGroup::_hdopFactName = "hdop"; const char* VehicleGPSFactGroup::_vdopFactName = "vdop"; diff --git a/src/Vehicle/Vehicle.h b/src/Vehicle/Vehicle.h index 06207e20a867edcd809f8d8bdf53452225b09706..be54c36309f6159eb7400d6b91daee7289e26274 100644 --- a/src/Vehicle/Vehicle.h +++ b/src/Vehicle/Vehicle.h @@ -377,11 +377,14 @@ public: /// Clear Messages Q_INVOKABLE void clearMessages(); +#if 0 + // Temporarily removed, waiting for new command implementation /// Test motor /// @param motor Motor number, 1-based /// @param percent 0-no power, 100-full power /// @param timeoutSecs Number of seconds for motor to run Q_INVOKABLE void motorTest(int motor, int percent, int timeoutSecs); +#endif bool guidedModeSupported(void) const; bool pauseVehicleSupported(void) const;