1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-10 18:24:11 +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() void ConfigStabilizationWidget::updateThrottleCurveFromObject()
{ {
StabilizationSettings *stabSettings = dynamic_cast<StabilizationSettings *>(getObjectManager()->getObject(QString("StabilizationSettings"))); StabilizationSettings *stabSettings = dynamic_cast<StabilizationSettings *>(getObjectManager()->getObject(QString("StabilizationSettings")));
Q_ASSERT(stabSettings); Q_ASSERT(stabSettings);
QList<double> curve; QList<double> curve;
@ -183,6 +184,7 @@ void ConfigStabilizationWidget::updateThrottleCurveFromObject()
void ConfigStabilizationWidget::updateObjectFromThrottleCurve() void ConfigStabilizationWidget::updateObjectFromThrottleCurve()
{ {
StabilizationSettings *stabSettings = dynamic_cast<StabilizationSettings *>(getObjectManager()->getObject(QString("StabilizationSettings"))); StabilizationSettings *stabSettings = dynamic_cast<StabilizationSettings *>(getObjectManager()->getObject(QString("StabilizationSettings")));
Q_ASSERT(stabSettings); Q_ASSERT(stabSettings);
QList<double> curve = ui->thrustPIDScalingCurve->getCurve(); QList<double> curve = ui->thrustPIDScalingCurve->getCurve();
@ -197,6 +199,7 @@ void ConfigStabilizationWidget::updateObjectFromThrottleCurve()
void ConfigStabilizationWidget::resetThrottleCurveToDefault() void ConfigStabilizationWidget::resetThrottleCurveToDefault()
{ {
StabilizationSettings defaultSettings; StabilizationSettings defaultSettings;
QList<double> curve; QList<double> curve;
for (quint32 i = 0; i < StabilizationSettings::THRUSTPIDSCALECURVE_NUMELEM; i++) { for (quint32 i = 0; i < StabilizationSettings::THRUSTPIDSCALECURVE_NUMELEM; i++) {
curve.append(defaultSettings.getThrustPIDScaleCurve(i)); curve.append(defaultSettings.getThrustPIDScaleCurve(i));