Browse Source

Revert "Control COMPONENT_INFORMATION query from app setting"

This reverts commit ec13a2d0ab.

Now ready to be used by default.
QGC4.4
Beat Küng 4 years ago committed by Don Gagne
parent
commit
67cc2001d6
  1. 6
      src/Settings/App.SettingsGroup.json
  2. 1
      src/Settings/AppSettings.cc
  3. 2
      src/Settings/AppSettings.h
  4. 5
      src/Vehicle/ComponentInformationManager.cc
  5. 8
      src/ui/preferences/GeneralSettings.qml

6
src/Settings/App.SettingsGroup.json

@ -317,12 +317,6 @@ @@ -317,12 +317,6 @@
"longDesc": "Host name to forward mavlink to. i.e: localhost:14445",
"type": "string",
"default": "localhost:14445"
},
{
"name": "useComponentInformationQuery",
"shortDesc": "Use COMPONENT_INFORMATION query (beta)",
"type": "bool",
"default": false
}
]
}

1
src/Settings/AppSettings.cc

@ -137,7 +137,6 @@ DECLARE_SETTINGSFACT(AppSettings, saveCsvTelemetry) @@ -137,7 +137,6 @@ DECLARE_SETTINGSFACT(AppSettings, saveCsvTelemetry)
DECLARE_SETTINGSFACT(AppSettings, firstRunPromptIdsShown)
DECLARE_SETTINGSFACT(AppSettings, forwardMavlink)
DECLARE_SETTINGSFACT(AppSettings, forwardMavlinkHostName)
DECLARE_SETTINGSFACT(AppSettings, useComponentInformationQuery)
DECLARE_SETTINGSFACT_NO_FUNC(AppSettings, indoorPalette)
{

2
src/Settings/AppSettings.h

@ -64,7 +64,7 @@ public: @@ -64,7 +64,7 @@ public:
DEFINE_SETTINGFACT(firstRunPromptIdsShown)
DEFINE_SETTINGFACT(forwardMavlink)
DEFINE_SETTINGFACT(forwardMavlinkHostName)
DEFINE_SETTINGFACT(useComponentInformationQuery)
// Although this is a global setting it only affects ArduPilot vehicle since PX4 automatically starts the stream from the vehicle side
DEFINE_SETTINGFACT(apmStartMavlinkStreams)

5
src/Vehicle/ComponentInformationManager.cc

@ -16,8 +16,6 @@ @@ -16,8 +16,6 @@
#include "CompInfoParam.h"
#include "QGCFileDownload.h"
#include "QGCApplication.h"
#include "SettingsManager.h"
#include "AppSettings.h"
#include <QStandardPaths>
#include <QJsonDocument>
@ -233,9 +231,6 @@ void RequestMetaDataTypeStateMachine::_stateRequestCompInfo(StateMachine* stateM @@ -233,9 +231,6 @@ void RequestMetaDataTypeStateMachine::_stateRequestCompInfo(StateMachine* stateM
if (weakLink.expired()) {
qCDebug(ComponentInformationManagerLog) << QStringLiteral("_stateRequestCompInfo Skipping component information %1 request due to no primary link").arg(requestMachine->typeToString());
stateMachine->advance();
} else if (!qgcApp()->toolbox()->settingsManager()->appSettings()->useComponentInformationQuery()->rawValue().toBool()) {
qCDebug(ComponentInformationManagerLog) << QStringLiteral("_stateRequestCompInfo Skipping component information %1 request due to application setting").arg(requestMachine->typeToString());
stateMachine->advance();
} else {
SharedLinkInterfacePtr sharedLink = weakLink.lock();
if (sharedLink->linkConfiguration()->isHighLatency() || sharedLink->isPX4Flow() || sharedLink->isLogReplay()) {

8
src/ui/preferences/GeneralSettings.qml

@ -645,14 +645,6 @@ Rectangle { @@ -645,14 +645,6 @@ Rectangle {
}
}
}
FactCheckBox {
text: _fact.shortDescription
fact: _fact
visible: _fact.visible
property Fact _fact: QGroundControl.settingsManager.appSettings.useComponentInformationQuery
}
}
}

Loading…
Cancel
Save