1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-19 04:52:12 +01:00

OP-1777 Fixed a compiler error.

This commit is contained in:
m_thread 2015-03-13 07:21:27 +01:00
parent daad175c52
commit 0a87b30572

View File

@ -172,10 +172,10 @@ void UsageTrackerPlugin::collectUsageParameters(QMap<QString, QString> &paramete
ManualControlSettings *controlSettings = ManualControlSettings::GetInstance(objManager);
parameters["settings_receiver"] = controlSettings->getField("ChannelGroups")->getValue(ManualControlSettings::CHANNELGROUPS_THROTTLE).toString();
RevoSettings revoSettings = RevoSettings::GetInstance(objManager);
RevoSettings *revoSettings = RevoSettings::GetInstance(objManager);
// Only get this info if uavo is known by controller
if (revoSettings.isKnown()) {
parameters["settings_fusion"] = revoSettings.getField("FusionAlgorithm")->getValue().toString();
if (revoSettings->isKnown()) {
parameters["settings_fusion"] = revoSettings->getField("FusionAlgorithm")->getValue().toString();
}
}
}