diff --git a/src/AutoPilotPlugins/APM/APMAutoPilotPlugin.cc b/src/AutoPilotPlugins/APM/APMAutoPilotPlugin.cc index 58b3e13b85cb14e686e1298586d15384aee6ef4b..b795e1430e862249337a8730c0efc9fd25c699ec 100644 --- a/src/AutoPilotPlugins/APM/APMAutoPilotPlugin.cc +++ b/src/AutoPilotPlugins/APM/APMAutoPilotPlugin.cc @@ -40,10 +40,7 @@ APMAutoPilotPlugin::APMAutoPilotPlugin(Vehicle* vehicle, QObject* parent) , _subFrameComponent (NULL) , _flightModesComponent (NULL) , _powerComponent (NULL) -#if 0 - // Temporarily removed, waiting for new command implementation , _motorComponent (NULL) -#endif , _radioComponent (NULL) , _safetyComponent (NULL) , _sensorsComponent (NULL) @@ -89,15 +86,11 @@ 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 018eb11502e8bdbd2dc013412448dc942ce0065d..5d9c03c434ee08255cc8eb4fbeec816c7c34bb88 100644 --- a/src/AutoPilotPlugins/APM/APMAutoPilotPlugin.h +++ b/src/AutoPilotPlugins/APM/APMAutoPilotPlugin.h @@ -50,10 +50,7 @@ protected: APMSubFrameComponent* _subFrameComponent; 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 9c662ab1b29e2c9ce7f1264d14112a3aa7268443..5fceb31d18ba6ed6d7cfd01386c3219919075db7 100644 --- a/src/Vehicle/Vehicle.cc +++ b/src/Vehicle/Vehicle.cc @@ -3290,13 +3290,10 @@ void Vehicle::setSoloFirmware(bool soloFirmware) } } -#if 0 -// Temporarily removed, waiting for new command implementation void Vehicle::motorTest(int motor, int percent, int timeoutSecs) { - doCommandLongUnverified(_defaultComponentId, MAV_CMD_DO_MOTOR_TEST, motor, MOTOR_TEST_THROTTLE_PERCENT, percent, timeoutSecs); + sendMavCommand(_defaultComponentId, MAV_CMD_DO_MOTOR_TEST, motor, MOTOR_TEST_THROTTLE_PERCENT, percent, timeoutSecs); } -#endif QString Vehicle::brandImageIndoor(void) const { diff --git a/src/Vehicle/Vehicle.h b/src/Vehicle/Vehicle.h index 38bb64fb777b574282a569328746db4e9a010627..8a8497583fc355241eba98ad3e7b77055b5f447e 100644 --- a/src/Vehicle/Vehicle.h +++ b/src/Vehicle/Vehicle.h @@ -744,14 +744,11 @@ public: Q_INVOKABLE void triggerCamera(void); Q_INVOKABLE void sendPlan(QString planFile); -#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;