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:
parent
45ea8015ed
commit
474466ac92
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user