mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
Uncrustify
This commit is contained in:
parent
6485ffbd9a
commit
99d73426b8
@ -213,8 +213,7 @@ static int PIOS_DSM_UnrollChannels(struct pios_dsm_dev *dsm_dev)
|
|||||||
/* extract and save the channel value */
|
/* extract and save the channel value */
|
||||||
uint8_t channel_num = (word >> resolution) & 0x0f;
|
uint8_t channel_num = (word >> resolution) & 0x0f;
|
||||||
if (channel_num < PIOS_DSM_NUM_INPUTS) {
|
if (channel_num < PIOS_DSM_NUM_INPUTS) {
|
||||||
if (channel_log & (1 << channel_num))
|
if (channel_log & (1 << channel_num)) {
|
||||||
{
|
|
||||||
/* Found duplicate! */
|
/* Found duplicate! */
|
||||||
/* Update resolution and restart processing the current frame. */
|
/* Update resolution and restart processing the current frame. */
|
||||||
resolution = 10;
|
resolution = 10;
|
||||||
|
@ -213,8 +213,7 @@ static int PIOS_DSM_UnrollChannels(struct pios_dsm_dev *dsm_dev)
|
|||||||
/* extract and save the channel value */
|
/* extract and save the channel value */
|
||||||
uint8_t channel_num = (word >> resolution) & 0x0f;
|
uint8_t channel_num = (word >> resolution) & 0x0f;
|
||||||
if (channel_num < PIOS_DSM_NUM_INPUTS) {
|
if (channel_num < PIOS_DSM_NUM_INPUTS) {
|
||||||
if (channel_log & (1 << channel_num))
|
if (channel_log & (1 << channel_num)) {
|
||||||
{
|
|
||||||
/* Found duplicate! */
|
/* Found duplicate! */
|
||||||
/* Update resolution and restart processing the current frame. */
|
/* Update resolution and restart processing the current frame. */
|
||||||
resolution = 10;
|
resolution = 10;
|
||||||
|
@ -210,6 +210,7 @@ void AirframeInitialTuningPage::loadValidFiles()
|
|||||||
void AirframeInitialTuningPage::setupTemplateList()
|
void AirframeInitialTuningPage::setupTemplateList()
|
||||||
{
|
{
|
||||||
QListWidgetItem *item;
|
QListWidgetItem *item;
|
||||||
|
|
||||||
foreach(QString templ, m_templates.keys()) {
|
foreach(QString templ, m_templates.keys()) {
|
||||||
QJsonObject *json = m_templates[templ];
|
QJsonObject *json = m_templates[templ];
|
||||||
|
|
||||||
@ -222,7 +223,7 @@ void AirframeInitialTuningPage::setupTemplateList()
|
|||||||
item->setData(Qt::UserRole + 1, QVariant::fromValue((QJsonObject *)NULL));
|
item->setData(Qt::UserRole + 1, QVariant::fromValue((QJsonObject *)NULL));
|
||||||
ui->templateList->insertItem(0, item);
|
ui->templateList->insertItem(0, item);
|
||||||
ui->templateList->setCurrentRow(0);
|
ui->templateList->setCurrentRow(0);
|
||||||
//TODO Add generics to top under item Current tuning
|
// TODO Add generics to top under item Current tuning
|
||||||
}
|
}
|
||||||
|
|
||||||
QString AirframeInitialTuningPage::getTemplateKey(QJsonObject *templ)
|
QString AirframeInitialTuningPage::getTemplateKey(QJsonObject *templ)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user