mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
Merge branch 'next' into corvuscorax/onboardlogging
This commit is contained in:
commit
f25926d4bc
@ -7,7 +7,7 @@ class AntennaTrackGadgetFactory;
|
||||
|
||||
class AntennaTrackPlugin : public ExtensionSystem::IPlugin {
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.AntennaTrack")
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.AntennaTrack")
|
||||
|
||||
public:
|
||||
AntennaTrackPlugin();
|
||||
|
@ -40,7 +40,7 @@ class ConfigGadgetFactory;
|
||||
|
||||
class ConfigPlugin : public ExtensionSystem::IPlugin {
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.Config")
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.Config")
|
||||
|
||||
public:
|
||||
ConfigPlugin();
|
||||
|
@ -33,12 +33,11 @@
|
||||
|
||||
namespace Core {
|
||||
namespace Internal {
|
||||
|
||||
class MainWindow;
|
||||
|
||||
class CorePlugin : public ExtensionSystem::IPlugin {
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.Core")
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.Core")
|
||||
|
||||
public:
|
||||
CorePlugin();
|
||||
@ -54,7 +53,6 @@ public slots:
|
||||
private:
|
||||
MainWindow *m_mainWindow;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace Core
|
||||
|
||||
|
@ -34,7 +34,7 @@ class DebugGadgetFactory;
|
||||
|
||||
class DebugPlugin : public ExtensionSystem::IPlugin {
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.Debug")
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.Debug")
|
||||
|
||||
public:
|
||||
DebugPlugin();
|
||||
|
@ -35,7 +35,7 @@ class DialGadgetFactory;
|
||||
|
||||
class DialPlugin : public ExtensionSystem::IPlugin {
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.Dial")
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.Dial")
|
||||
|
||||
public:
|
||||
DialPlugin();
|
||||
|
@ -34,7 +34,7 @@ class EmptyGadgetFactory;
|
||||
|
||||
class EmptyPlugin : public ExtensionSystem::IPlugin {
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.Empty")
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.Empty")
|
||||
|
||||
public:
|
||||
EmptyPlugin();
|
||||
|
@ -35,7 +35,7 @@ class GCSControlGadgetFactory;
|
||||
|
||||
class GCSControlPlugin : public ExtensionSystem::IPlugin {
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.GCSControl")
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.GCSControl")
|
||||
|
||||
public:
|
||||
GCSControlPlugin();
|
||||
|
@ -34,7 +34,7 @@ class GpsDisplayGadgetFactory;
|
||||
|
||||
class GpsDisplayPlugin : public ExtensionSystem::IPlugin {
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.GpsDisplay")
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.GpsDisplay")
|
||||
|
||||
public:
|
||||
GpsDisplayPlugin();
|
||||
|
@ -37,7 +37,7 @@ class HITLFactory;
|
||||
|
||||
class HITLPlugin : public ExtensionSystem::IPlugin {
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.HITL")
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.HITL")
|
||||
|
||||
public:
|
||||
HITLPlugin();
|
||||
|
@ -32,7 +32,7 @@
|
||||
|
||||
class IMPORTEXPORT_EXPORT ImportExportPlugin : public ExtensionSystem::IPlugin {
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.ImportExport")
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.ImportExport")
|
||||
|
||||
public:
|
||||
ImportExportPlugin();
|
||||
|
@ -85,7 +85,7 @@ private:
|
||||
|
||||
class IPconnection_EXPORT IPconnectionPlugin : public ExtensionSystem::IPlugin {
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.IPconnection")
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.IPconnection")
|
||||
|
||||
public:
|
||||
IPconnectionPlugin();
|
||||
|
@ -34,7 +34,7 @@ class LineardialGadgetFactory;
|
||||
|
||||
class LineardialPlugin : public ExtensionSystem::IPlugin {
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.Lineardial")
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.Lineardial")
|
||||
|
||||
public:
|
||||
LineardialPlugin();
|
||||
|
@ -152,8 +152,8 @@ bool LogFile::startReplay()
|
||||
{
|
||||
dataBuffer.clear();
|
||||
myTime.restart();
|
||||
timeOffset = 0;
|
||||
lastPlayed = 0;
|
||||
timeOffset = 0;
|
||||
lastPlayed = 0;
|
||||
file.read((char *)&lastTimeStamp, sizeof(lastTimeStamp));
|
||||
timer.setInterval(10);
|
||||
timer.start();
|
||||
|
@ -44,9 +44,9 @@
|
||||
#include "uavobjectmanager.h"
|
||||
|
||||
|
||||
LoggingConnection::LoggingConnection(LoggingPlugin *loggingPlugin):
|
||||
loggingPlugin(loggingPlugin),
|
||||
m_deviceOpened(false)
|
||||
LoggingConnection::LoggingConnection(LoggingPlugin *loggingPlugin) :
|
||||
loggingPlugin(loggingPlugin),
|
||||
m_deviceOpened(false)
|
||||
{}
|
||||
|
||||
LoggingConnection::~LoggingConnection()
|
||||
@ -288,14 +288,12 @@ void LoggingThread::transactionCompleted(UAVObject *obj, bool success)
|
||||
|
||||
|
||||
LoggingPlugin::LoggingPlugin() :
|
||||
state(IDLE),
|
||||
loggingThread(NULL),
|
||||
logConnection(new LoggingConnection(this)),
|
||||
mf(NULL),
|
||||
cmd(NULL)
|
||||
{
|
||||
|
||||
}
|
||||
state(IDLE),
|
||||
loggingThread(NULL),
|
||||
logConnection(new LoggingConnection(this)),
|
||||
mf(NULL),
|
||||
cmd(NULL)
|
||||
{}
|
||||
|
||||
LoggingPlugin::~LoggingPlugin()
|
||||
{
|
||||
|
@ -116,7 +116,7 @@ private:
|
||||
|
||||
class LoggingPlugin : public ExtensionSystem::IPlugin {
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.Logging")
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.Logging")
|
||||
|
||||
friend class LoggingConnection;
|
||||
|
||||
|
@ -34,7 +34,7 @@ class MagicWaypointGadgetFactory;
|
||||
|
||||
class MagicWaypointPlugin : public ExtensionSystem::IPlugin {
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.MagicWaypoint")
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.MagicWaypoint")
|
||||
|
||||
public:
|
||||
MagicWaypointPlugin();
|
||||
|
@ -34,7 +34,7 @@ class ModelViewGadgetFactory;
|
||||
|
||||
class ModelViewPlugin : public ExtensionSystem::IPlugin {
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "Openpilot.ModelView")
|
||||
Q_PLUGIN_METADATA(IID "Openpilot.ModelView")
|
||||
|
||||
public:
|
||||
ModelViewPlugin();
|
||||
|
@ -49,7 +49,7 @@ typedef struct {
|
||||
|
||||
class SoundNotifyPlugin : public Core::IConfigurablePlugin {
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "Openpilot.SoundNotify")
|
||||
Q_PLUGIN_METADATA(IID "Openpilot.SoundNotify")
|
||||
|
||||
public:
|
||||
SoundNotifyPlugin();
|
||||
|
@ -83,7 +83,7 @@ protected:
|
||||
|
||||
class OPHID_EXPORT RawHIDPlugin : public ExtensionSystem::IPlugin {
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.RawHID")
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.RawHID")
|
||||
|
||||
public:
|
||||
RawHIDPlugin();
|
||||
|
@ -34,7 +34,7 @@ class OPMapGadgetFactory;
|
||||
|
||||
class OPMapPlugin : public ExtensionSystem::IPlugin {
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.OPMap")
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.OPMap")
|
||||
|
||||
public:
|
||||
OPMapPlugin();
|
||||
|
@ -34,7 +34,7 @@ class OsgEarthviewGadgetFactory;
|
||||
|
||||
class OsgEarthviewPlugin : public ExtensionSystem::IPlugin {
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.OsgEarthview")
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.OsgEarthview")
|
||||
|
||||
public:
|
||||
OsgEarthviewPlugin();
|
||||
|
@ -33,7 +33,7 @@ class PathActionEditorGadgetFactory;
|
||||
|
||||
class PathActionEditorPlugin : public ExtensionSystem::IPlugin {
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.PathActionEditor")
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.PathActionEditor")
|
||||
|
||||
public:
|
||||
PathActionEditorPlugin();
|
||||
|
@ -23,7 +23,7 @@ class PfdQmlGadgetFactory;
|
||||
|
||||
class PfdQmlPlugin : public ExtensionSystem::IPlugin {
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.PfdQml")
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.PfdQml")
|
||||
|
||||
public:
|
||||
PfdQmlPlugin();
|
||||
|
@ -34,7 +34,7 @@ class QmlViewGadgetFactory;
|
||||
|
||||
class QmlViewPlugin : public ExtensionSystem::IPlugin {
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.QmlView")
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.QmlView")
|
||||
|
||||
public:
|
||||
QmlViewPlugin();
|
||||
|
@ -34,7 +34,7 @@ class ScopeGadgetFactory;
|
||||
|
||||
class ScopePlugin : public ExtensionSystem::IPlugin {
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.Scope")
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.Scope")
|
||||
|
||||
public:
|
||||
ScopePlugin();
|
||||
|
@ -74,7 +74,7 @@ SerialConnection::SerialConnection() :
|
||||
m_enumerateThread(this),
|
||||
m_deviceOpened(false)
|
||||
{
|
||||
m_config = new SerialPluginConfiguration("Serial Telemetry", NULL, this);
|
||||
m_config = new SerialPluginConfiguration("Serial Telemetry", NULL, this);
|
||||
m_config->restoresettings();
|
||||
|
||||
m_optionspage = new SerialPluginOptionsPage(m_config, this);
|
||||
|
@ -118,7 +118,7 @@ protected:
|
||||
// class SERIAL_EXPORT SerialPlugin
|
||||
class SerialPlugin : public ExtensionSystem::IPlugin {
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.Serial")
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.Serial")
|
||||
|
||||
public:
|
||||
SerialPlugin();
|
||||
|
@ -33,7 +33,7 @@
|
||||
|
||||
class SetupWizardPlugin : public ExtensionSystem::IPlugin {
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.SetupWizard")
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.SetupWizard")
|
||||
|
||||
public:
|
||||
SetupWizardPlugin();
|
||||
|
@ -34,7 +34,7 @@ class SystemHealthGadgetFactory;
|
||||
|
||||
class SystemHealthPlugin : public ExtensionSystem::IPlugin {
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.SystemHealth")
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.SystemHealth")
|
||||
|
||||
public:
|
||||
SystemHealthPlugin();
|
||||
|
@ -34,7 +34,7 @@ class UAVObjectBrowserFactory;
|
||||
|
||||
class BrowserPlugin : public ExtensionSystem::IPlugin {
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.Browser")
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.Browser")
|
||||
|
||||
public:
|
||||
BrowserPlugin();
|
||||
|
@ -36,7 +36,7 @@
|
||||
class UAVOBJECTS_EXPORT UAVObjectsPlugin :
|
||||
public ExtensionSystem::IPlugin {
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.UAVObjects")
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.UAVObjects")
|
||||
|
||||
public:
|
||||
UAVObjectsPlugin();
|
||||
|
@ -35,7 +35,7 @@
|
||||
|
||||
class UAVOBJECTUTIL_EXPORT UAVObjectUtilPlugin : public ExtensionSystem::IPlugin {
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.UAVObjectUtil")
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.UAVObjectUtil")
|
||||
|
||||
public:
|
||||
UAVObjectUtilPlugin();
|
||||
|
@ -33,7 +33,7 @@
|
||||
|
||||
class UAVOBJECTWIDGETUTILS_EXPORT UAVObjectWidgetUtilsPlugin : public ExtensionSystem::IPlugin {
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.UAVObjectWidgetUtils")
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.UAVObjectWidgetUtils")
|
||||
|
||||
public:
|
||||
UAVObjectWidgetUtilsPlugin();
|
||||
|
@ -34,7 +34,7 @@
|
||||
|
||||
class UAVSETTINGSIMPORTEXPORT_EXPORT UAVSettingsImportExportPlugin : public ExtensionSystem::IPlugin {
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.UAVSettingsImportExport")
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.UAVSettingsImportExport")
|
||||
|
||||
public:
|
||||
UAVSettingsImportExportPlugin();
|
||||
|
@ -184,7 +184,7 @@ void TelemetryMonitor::firmwareIAPUpdated(UAVObject *obj)
|
||||
QMutexLocker locker(mutex);
|
||||
|
||||
if (firmwareIAPObj->getBoardType() != 0) {
|
||||
emit connected();
|
||||
emit connected();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -69,7 +69,7 @@ private:
|
||||
QQueue<UAVObject *> queue;
|
||||
GCSTelemetryStats *gcsStatsObj;
|
||||
FlightTelemetryStats *flightStatsObj;
|
||||
FirmwareIAPObj* firmwareIAPObj;
|
||||
FirmwareIAPObj *firmwareIAPObj;
|
||||
QTimer *statsTimer;
|
||||
UAVObject *objPending;
|
||||
QMutex *mutex;
|
||||
|
@ -38,7 +38,7 @@
|
||||
|
||||
class UAVTALK_EXPORT UAVTalkPlugin : public ExtensionSystem::IPlugin {
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.UAVTalk")
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.UAVTalk")
|
||||
|
||||
public:
|
||||
UAVTalkPlugin();
|
||||
|
@ -35,7 +35,7 @@ class UploaderGadgetFactory;
|
||||
|
||||
class UPLOADER_EXPORT UploaderPlugin : public ExtensionSystem::IPlugin {
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.Uploader")
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.Uploader")
|
||||
|
||||
public:
|
||||
UploaderPlugin();
|
||||
|
@ -32,15 +32,13 @@
|
||||
#include <extensionsystem/iplugin.h>
|
||||
|
||||
namespace Welcome {
|
||||
|
||||
class WelcomeMode;
|
||||
|
||||
namespace Internal {
|
||||
|
||||
class WelcomePlugin
|
||||
: public ExtensionSystem::IPlugin {
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.Welcome")
|
||||
Q_PLUGIN_METADATA(IID "OpenPilot.Welcome")
|
||||
|
||||
public:
|
||||
WelcomePlugin();
|
||||
@ -53,7 +51,6 @@ public:
|
||||
private:
|
||||
WelcomeMode *m_welcomeMode;
|
||||
};
|
||||
|
||||
} // namespace Welcome
|
||||
} // namespace Internal
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user