1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-18 08:54:15 +01:00

OP-1835 - Motor Constraints 15.02.02 100% throttle curves default

This commit is contained in:
RS2K 2015-05-02 17:36:28 -05:00
parent 93ff480b7a
commit 77eacb2294
2 changed files with 3 additions and 3 deletions

View File

@ -420,7 +420,7 @@ void ConfigMultiRotorWidget::refreshWidgetsValues(QString frameType)
m_aircraft->multiThrottleCurve->initCurve(&curveValues);
} else {
// no, init a straight curve
m_aircraft->multiThrottleCurve->initLinearCurve(curveValues.count(), 0.9);
m_aircraft->multiThrottleCurve->initLinearCurve(curveValues.count(), 1.0);
}
GUIConfigDataUnion config = getConfigData();

View File

@ -710,7 +710,7 @@ void VehicleConfigurationHelper::applyMixerConfiguration(mixerChannelSettings ch
}
// Default maxThrottle and minThrottle
float maxThrottle = 0.9;
float maxThrottle = 1;
float minThrottle = 0;
@ -1010,7 +1010,7 @@ void VehicleConfigurationHelper::resetVehicleConfig()
Q_ASSERT(field);
// Set default curve at 90% max for Multirotors
for (quint32 i = 0; i < field->getNumElements(); i++) {
field->setValue(i * (0.9f / (field->getNumElements() - 1)), i);
field->setValue(i * (1.0f / (field->getNumElements() - 1)), i);
}
}