diff --git a/src/Vehicle/Vehicle.cc b/src/Vehicle/Vehicle.cc index 5fceb31d18ba6ed6d7cfd01386c3219919075db7..8092f05e50090296e3c2c903bd3af847b63eaa3b 100644 --- a/src/Vehicle/Vehicle.cc +++ b/src/Vehicle/Vehicle.cc @@ -3290,9 +3290,9 @@ void Vehicle::setSoloFirmware(bool soloFirmware) } } -void Vehicle::motorTest(int motor, int percent, int timeoutSecs) +void Vehicle::motorTest(int motor, int percent) { - sendMavCommand(_defaultComponentId, MAV_CMD_DO_MOTOR_TEST, motor, MOTOR_TEST_THROTTLE_PERCENT, percent, timeoutSecs); + sendMavCommand(_defaultComponentId, MAV_CMD_DO_MOTOR_TEST, true, motor, MOTOR_TEST_THROTTLE_PERCENT, percent, 0, 0, MOTOR_TEST_ORDER_BOARD); } QString Vehicle::brandImageIndoor(void) const diff --git a/src/Vehicle/Vehicle.h b/src/Vehicle/Vehicle.h index 8a8497583fc355241eba98ad3e7b77055b5f447e..fda6cf0bb2b7b1d1dcc3b632e3a0ba10dae5dc22 100644 --- a/src/Vehicle/Vehicle.h +++ b/src/Vehicle/Vehicle.h @@ -747,8 +747,7 @@ public: /// 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); + Q_INVOKABLE void motorTest(int motor, int percent); bool guidedModeSupported (void) const; bool pauseVehicleSupported (void) const;