1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

OP-1474 Uncrustify.

This commit is contained in:
m_thread 2014-09-07 00:23:20 +02:00
parent 45ea8015ed
commit 474466ac92

View File

@ -168,6 +168,7 @@ void ConfigStabilizationWidget::updateObjectsFromWidgets()
void ConfigStabilizationWidget::updateThrottleCurveFromObject()
{
StabilizationSettings *stabSettings = dynamic_cast<StabilizationSettings *>(getObjectManager()->getObject(QString("StabilizationSettings")));
Q_ASSERT(stabSettings);
QList<double> curve;
@ -183,6 +184,7 @@ void ConfigStabilizationWidget::updateThrottleCurveFromObject()
void ConfigStabilizationWidget::updateObjectFromThrottleCurve()
{
StabilizationSettings *stabSettings = dynamic_cast<StabilizationSettings *>(getObjectManager()->getObject(QString("StabilizationSettings")));
Q_ASSERT(stabSettings);
QList<double> curve = ui->thrustPIDScalingCurve->getCurve();
@ -191,12 +193,13 @@ void ConfigStabilizationWidget::updateObjectFromThrottleCurve()
}
stabSettings->setEnableThrustPIDScaling(ui->enableThrustPIDScalingCheckBox->isChecked() ?
StabilizationSettings::ENABLETHRUSTPIDSCALING_TRUE : StabilizationSettings::ENABLETHRUSTPIDSCALING_FALSE);
StabilizationSettings::ENABLETHRUSTPIDSCALING_TRUE : StabilizationSettings::ENABLETHRUSTPIDSCALING_FALSE);
}
void ConfigStabilizationWidget::resetThrottleCurveToDefault()
{
StabilizationSettings defaultSettings;
QList<double> curve;
for (quint32 i = 0; i < StabilizationSettings::THRUSTPIDSCALECURVE_NUMELEM; i++) {
curve.append(defaultSettings.getThrustPIDScaleCurve(i));