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:
parent
93ff480b7a
commit
77eacb2294
@ -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();
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user