Commit 3c0e3383 authored by Jacob Walser's avatar Jacob Walser Committed by Willian Galvani

Vehicle: update interface for Motortest

parent d3dcf3f8
......@@ -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
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment