1
0
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:
Corvus Corax 2013-11-16 18:22:01 +01:00
commit f25926d4bc
39 changed files with 48 additions and 55 deletions

View File

@ -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();

View File

@ -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();

View File

@ -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

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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()
{

View File

@ -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;

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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);

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -184,7 +184,7 @@ void TelemetryMonitor::firmwareIAPUpdated(UAVObject *obj)
QMutexLocker locker(mutex);
if (firmwareIAPObj->getBoardType() != 0) {
emit connected();
emit connected();
}
}

View File

@ -69,7 +69,7 @@ private:
QQueue<UAVObject *> queue;
GCSTelemetryStats *gcsStatsObj;
FlightTelemetryStats *flightStatsObj;
FirmwareIAPObj* firmwareIAPObj;
FirmwareIAPObj *firmwareIAPObj;
QTimer *statsTimer;
UAVObject *objPending;
QMutex *mutex;

View File

@ -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();

View File

@ -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();

View File

@ -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