diff --git a/src/QGCCore.cc b/src/QGCCore.cc index 4740f37059eafef82b7e1bb2c1a91fca571cecb3..04fe7e7b8cb61fb4d80c9ceeaf31d0efeb23b075 100644 --- a/src/QGCCore.cc +++ b/src/QGCCore.cc @@ -77,8 +77,8 @@ QGCCore::QGCCore(bool firstStart, int &argc, char* argv[]) : QApplication(argc, // Set application name this->setApplicationName(QGC_APPLICATION_NAME); this->setApplicationVersion(QGC_APPLICATION_VERSION); - this->setOrganizationName(QLatin1String("diydrones")); - this->setOrganizationDomain("com.diydrones"); + this->setOrganizationName(QGC::ORG_NAME); + this->setOrganizationDomain(QGC::ORG_DOMAIN); // Set settings format QSettings::setDefaultFormat(QSettings::IniFormat); diff --git a/src/comm/SerialLink.cc b/src/comm/SerialLink.cc index e30f9e3c28920477c3763c0b23032afcc1f828bb..6ae7105f59b6d00e123f77f037c61c914b083a84 100644 --- a/src/comm/SerialLink.cc +++ b/src/comm/SerialLink.cc @@ -106,7 +106,7 @@ QList SerialLink::getCurrentPorts() void SerialLink::loadSettings() { // Load defaults from settings - QSettings settings(QGC::COMPANYNAME, QGC::APPNAME); + QSettings settings(QGC::ORG_NAME, QGC::APPNAME); settings.sync(); if (settings.contains("SERIALLINK_COMM_PORT")) { @@ -122,7 +122,7 @@ void SerialLink::loadSettings() void SerialLink::writeSettings() { // Store settings - QSettings settings(QGC::COMPANYNAME, QGC::APPNAME); + QSettings settings(QGC::ORG_NAME, QGC::APPNAME); settings.setValue("SERIALLINK_COMM_PORT", getPortName()); settings.setValue("SERIALLINK_COMM_BAUD", getBaudRateType()); settings.setValue("SERIALLINK_COMM_PARITY", getParityType()); @@ -174,7 +174,7 @@ void SerialLink::run() } } - if (isConnected() && (linkErrorCount > 100)) { + if (isConnected() && (linkErrorCount > 1000)) { qDebug() << "linkErrorCount too high: disconnecting!"; linkErrorCount = 0; emit communicationUpdate(getName(), tr("Disconnecting on too many link errors")); diff --git a/src/configuration.h b/src/configuration.h index d2397ccc757d2b59f91f76d8ca265b27a5e0e40d..2f0434812374cb13e4f1a93fa99e3ca496a015a9 100644 --- a/src/configuration.h +++ b/src/configuration.h @@ -11,14 +11,15 @@ #define WITH_TEXT_TO_SPEECH 1 #define QGC_APPLICATION_NAME "QGroundControl" -#define QGC_APPLICATION_VERSION "v. 1.1.2 (beta)" +#define QGC_APPLICATION_VERSION "v. 2.0.0 (beta)" namespace QGC { const QString APPNAME = "QGROUNDCONTROL"; -const QString COMPANYNAME = "QGROUNDCONTROL"; -const int APPLICATIONVERSION = 110; // 1.1.0 +const QString ORG_NAME = "QGROUNDCONTROL.ORG"; //can be customized by forks to e.g. mycompany.com to maintain separate Settings for customized apps +const QString ORG_DOMAIN = "org.qgroundcontrol";//can be customized by forks +const int APPLICATIONVERSION = 200; // 2.0.0 } #endif // QGC_CONFIGURATION_H diff --git a/src/ui/configuration/terminalconsole.cpp b/src/ui/configuration/terminalconsole.cpp index 919c646671f269d21114b6b47161a2ce26236829..66ef5469112865cc60c6ecce7af3aaec22f9222b 100644 --- a/src/ui/configuration/terminalconsole.cpp +++ b/src/ui/configuration/terminalconsole.cpp @@ -265,7 +265,7 @@ void TerminalConsole::setLink(int index) void TerminalConsole::loadSettings() { // Load defaults from settings - QSettings settings(QGC::COMPANYNAME, QGC::APPNAME); + QSettings settings(QGC::ORG_NAME, QGC::APPNAME); settings.sync(); if (settings.contains("TERMINALCONSOLE_COMM_PORT")) { @@ -287,7 +287,7 @@ void TerminalConsole::loadSettings() void TerminalConsole::writeSettings() { // Store settings - QSettings settings(QGC::COMPANYNAME, QGC::APPNAME); + QSettings settings(QGC::ORG_NAME, QGC::APPNAME); settings.setValue("TERMINALCONSOLE_COMM_PORT", m_settings.name); settings.setValue("TERMINALCONSOLE_COMM_BAUD", m_settings.baudRate); settings.setValue("TERMINALCONSOLE_COMM_PARITY", m_settings.parity); diff --git a/src/ui/px4_configuration/QGCPX4SensorCalibration.ui b/src/ui/px4_configuration/QGCPX4SensorCalibration.ui index 411796a590f68772513aae144caf43f4649c1b2d..e95437212652b17f2fc949960744a7384aa57aeb 100644 --- a/src/ui/px4_configuration/QGCPX4SensorCalibration.ui +++ b/src/ui/px4_configuration/QGCPX4SensorCalibration.ui @@ -6,8 +6,8 @@ 0 0 - 657 - 598 + 659 + 603 @@ -36,74 +36,37 @@ QPushButton#gyroButton, QPushButton#accelButton { border: 2px solid #465158; } - + - - - Autopilot and GPS / Compass Orientation - - - - - - - - - - - - - - 24 - - + - - + + - Qt::Vertical + Qt::Horizontal - 498 - 5 + 40 + 20 - - + + - Qt::Horizontal + Qt::Vertical - 40 - 20 + 498 + 5 - - - - - - - - - - - - - - - - true - - - - + @@ -170,26 +133,77 @@ QPushButton#gyroButton, QPushButton#accelButton { - - + + + + 24 + + + + + + + Autopilot Orientation + + + + + + + 0 + 250 + + + + + + + + + + + + + + + - - - - - 150 - 150 - - + + + + + + Magnetometer Orientation + + + + + + + 150 + 120 + + + + + + + + + + + + +