Browse Source

Use the reversed values for the four control channels as well. Not using them would make the display very confusing.

QGC4.4
Lorenz Meier 11 years ago
parent
commit
07f1e08073
  1. 8
      src/ui/QGCPX4VehicleConfig.cc

8
src/ui/QGCPX4VehicleConfig.cc

@ -1896,10 +1896,10 @@ void QGCPX4VehicleConfig::checktimeOuts() @@ -1896,10 +1896,10 @@ void QGCPX4VehicleConfig::checktimeOuts()
void QGCPX4VehicleConfig::updateRcWidgetValues()
{
ui->rollWidget->setValueAndRange(rcMappedValue[0],rcMappedMin[0],rcMappedMax[0]);
ui->pitchWidget->setValueAndRange(rcMappedValue[1],rcMappedMin[1],rcMappedMax[1]);
ui->yawWidget->setValueAndRange(rcMappedValue[2],rcMappedMin[2],rcMappedMax[2]);
ui->throttleWidget->setValueAndRange(rcMappedValue[3],rcMappedMin[3],rcMappedMax[3]);
ui->rollWidget->setValueAndRange(rcMappedValueRev[0],rcMappedMin[0],rcMappedMax[0]);
ui->pitchWidget->setValueAndRange(rcMappedValueRev[1],rcMappedMin[1],rcMappedMax[1]);
ui->yawWidget->setValueAndRange(rcMappedValueRev[2],rcMappedMin[2],rcMappedMax[2]);
ui->throttleWidget->setValueAndRange(rcMappedValueRev[3],rcMappedMin[3],rcMappedMax[3]);
ui->radio5Widget->setValueAndRange(rcValueReversed[4],rcMin[4],rcMax[4]);
ui->radio6Widget->setValueAndRange(rcValueReversed[5],rcMin[5],rcMax[5]);

Loading…
Cancel
Save