1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00

OP-1525 Uncrustify.

This commit is contained in:
m_thread 2014-10-08 00:57:57 +02:00
parent b794c87d3b
commit 63de0cd6ac
5 changed files with 13 additions and 7 deletions

View File

@ -279,10 +279,11 @@ void ConfigStabilizationWidget::throttleCurveUpdated()
void ConfigStabilizationWidget::replotExpo(int value)
{
double x[EXPO_CURVE_POINTS] = {0};
double y[EXPO_CURVE_POINTS] = {0};
double x[EXPO_CURVE_POINTS] = { 0 };
double y[EXPO_CURVE_POINTS] = { 0 };
double factor = pow(1.03293, value);
double step = 1.0 / (EXPO_CURVE_POINTS - 1);
double step = 1.0 / (EXPO_CURVE_POINTS - 1);
for (int i = 0; i < EXPO_CURVE_POINTS; i++) {
x[i] = i * step;
y[i] = pow(x[i], factor);

View File

@ -55,7 +55,7 @@ private:
// Milliseconds between automatic 'Instant Updates'
static const int AUTOMATIC_UPDATE_RATE = 500;
static const int EXPO_CURVE_POINTS = 100;
static const int EXPO_CURVE_POINTS = 100;
int boardModel;
int m_pidBankCount;

View File

@ -471,7 +471,6 @@ private:
{
return QVariant(str.toString().at(0).toLatin1());
}
};
#endif // FIELDTREEITEM_H

View File

@ -250,7 +250,7 @@ QVariant ArrayFieldTreeItem::data(int column) const
.arg(m_field->getValue(i).toUInt(&ok), TreeItem::maxHexStringLength(m_field->getType()),
16, QChar('0')).toUpper());
}
QString data = QString("{%1}").arg(dataString);
QString data = QString("{%1}").arg(dataString);
return data;
} else {
return QVariant();

View File

@ -184,16 +184,22 @@ public:
switch (type) {
case UAVObjectField::INT8:
return 2;
case UAVObjectField::INT16:
return 4;
case UAVObjectField::INT32:
return 8;
case UAVObjectField::UINT8:
return 2;
case UAVObjectField::UINT16:
return 4;
case UAVObjectField::UINT32:
return 8;
default:
Q_ASSERT(false);
}
@ -352,7 +358,7 @@ public:
QVariant data(int column) const;
private:
UAVObjectField*m_field;
UAVObjectField *m_field;
};
#endif // TREEITEM_H