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:
parent
b794c87d3b
commit
63de0cd6ac
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -471,7 +471,6 @@ private:
|
||||
{
|
||||
return QVariant(str.toString().at(0).toLatin1());
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
#endif // FIELDTREEITEM_H
|
||||
|
@ -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();
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user