Browse Source

Add timeout field to motorTest() call in APMSubMotorComponent.qml

This is a bugfix due to changed signature in 3089da58b4
QGC4.4
Willian Galvani 6 years ago
parent
commit
eeed7a62ee
  1. 4
      src/AutoPilotPlugins/APM/APMSubMotorComponent.qml

4
src/AutoPilotPlugins/APM/APMSubMotorComponent.qml

@ -212,9 +212,9 @@ SetupPage { @@ -212,9 +212,9 @@ SetupPage {
var reversed = controller.getParameterFact(-1, "MOT_" + (_lastIndex + 1) + "_DIRECTION").value == -1
if (reversed) {
controller.vehicle.motorTest(_lastIndex, 100 - slider.motorSlider.value)
controller.vehicle.motorTest(_lastIndex, 100 - slider.motorSlider.value, 0)
} else {
controller.vehicle.motorTest(_lastIndex, slider.motorSlider.value)
controller.vehicle.motorTest(_lastIndex, slider.motorSlider.value, 0)
}
}
}

Loading…
Cancel
Save