Commit be3d933b authored by Don Gagne's avatar Don Gagne

Merge pull request #987 from DonLakeFlyer/BugFixes

Bug fixes
parents 76e4cf9d 4768c933
...@@ -309,6 +309,11 @@ QPushButton#flightModeMenuButton, QPushButton#safetyConfigButton { ...@@ -309,6 +309,11 @@ QPushButton#flightModeMenuButton, QPushButton#safetyConfigButton {
background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #BBB, stop: 1 #777); background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #BBB, stop: 1 #777);
} }
VehicleSetupButton, VehicleComponentButton {
background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #BBB, stop: 1 #777);
border-color: #465158;
}
QPushButton#planePushButton, QPushButton#flyingWingPushButton, QPushButton#quadXPushButton, QPushButton#planePushButton, QPushButton#flyingWingPushButton, QPushButton#quadXPushButton,
QPushButton#quadPlusPushButton, QPushButton#hexaXPushButton, QPushButton#hexaPlusPushButton, QPushButton#quadPlusPushButton, QPushButton#hexaXPushButton, QPushButton#hexaPlusPushButton,
QPushButton#octoXPushButton, QPushButton#octoPlusPushButton, QPushButton#hPushButton { QPushButton#octoXPushButton, QPushButton#octoPlusPushButton, QPushButton#hPushButton {
......
...@@ -93,7 +93,6 @@ public slots: ...@@ -93,7 +93,6 @@ public slots:
virtual bool returnActiveUAS() { Q_ASSERT(false); return false; } virtual bool returnActiveUAS() { Q_ASSERT(false); return false; }
virtual bool stopActiveUAS() { Q_ASSERT(false); return false; } virtual bool stopActiveUAS() { Q_ASSERT(false); return false; }
virtual bool killActiveUAS() { Q_ASSERT(false); return false; } virtual bool killActiveUAS() { Q_ASSERT(false); return false; }
virtual void configureActiveUAS() { Q_ASSERT(false); }
virtual bool shutdownActiveUAS() { Q_ASSERT(false); return false; } virtual bool shutdownActiveUAS() { Q_ASSERT(false); return false; }
virtual bool setHomePosition(double lat, double lon, double alt) virtual bool setHomePosition(double lat, double lon, double alt)
{ Q_ASSERT(false); Q_UNUSED(lat); Q_UNUSED(lon); Q_UNUSED(alt); return false; } { Q_ASSERT(false); Q_UNUSED(lat); Q_UNUSED(lon); Q_UNUSED(alt); return false; }
......
...@@ -436,14 +436,6 @@ bool UASManager::shutdownActiveUAS() ...@@ -436,14 +436,6 @@ bool UASManager::shutdownActiveUAS()
return (activeUAS); return (activeUAS);
} }
void UASManager::configureActiveUAS()
{
UASInterface* actUAS = getActiveUAS();
if(actUAS) {
// Do something
}
}
UASInterface* UASManager::getUASForId(int id) UASInterface* UASManager::getUASForId(int id)
{ {
UASInterface* system = NULL; UASInterface* system = NULL;
......
...@@ -227,13 +227,6 @@ public slots: ...@@ -227,13 +227,6 @@ public slots:
*/ */
bool killActiveUAS(); bool killActiveUAS();
/**
* @brief Configure the currently active UAS
*
* This command will bring up the configuration dialog for the particular UAS.
*/
void configureActiveUAS();
/** @brief Shut down the onboard operating system down */ /** @brief Shut down the onboard operating system down */
bool shutdownActiveUAS(); bool shutdownActiveUAS();
......
...@@ -82,7 +82,6 @@ public slots: ...@@ -82,7 +82,6 @@ public slots:
virtual bool returnActiveUAS() = 0; virtual bool returnActiveUAS() = 0;
virtual bool stopActiveUAS() = 0; virtual bool stopActiveUAS() = 0;
virtual bool killActiveUAS() = 0; virtual bool killActiveUAS() = 0;
virtual void configureActiveUAS() = 0;
virtual bool shutdownActiveUAS() = 0; virtual bool shutdownActiveUAS() = 0;
virtual bool setHomePosition(double lat, double lon, double alt) = 0; virtual bool setHomePosition(double lat, double lon, double alt) = 0;
virtual bool setHomePositionAndNotify(double lat, double lon, double alt) = 0; virtual bool setHomePositionAndNotify(double lat, double lon, double alt) = 0;
......
...@@ -1237,7 +1237,6 @@ void MainWindow::connectCommonActions() ...@@ -1237,7 +1237,6 @@ void MainWindow::connectCommonActions()
connect(ui.actionEmergency_Land, SIGNAL(triggered()), UASManager::instance(), SLOT(stopActiveUAS())); connect(ui.actionEmergency_Land, SIGNAL(triggered()), UASManager::instance(), SLOT(stopActiveUAS()));
connect(ui.actionEmergency_Kill, SIGNAL(triggered()), UASManager::instance(), SLOT(killActiveUAS())); connect(ui.actionEmergency_Kill, SIGNAL(triggered()), UASManager::instance(), SLOT(killActiveUAS()));
connect(ui.actionShutdownMAV, SIGNAL(triggered()), UASManager::instance(), SLOT(shutdownActiveUAS())); connect(ui.actionShutdownMAV, SIGNAL(triggered()), UASManager::instance(), SLOT(shutdownActiveUAS()));
connect(ui.actionConfiguration, SIGNAL(triggered()), UASManager::instance(), SLOT(configureActiveUAS()));
// Views actions // Views actions
connect(ui.actionFlightView, SIGNAL(triggered()), this, SLOT(loadPilotView())); connect(ui.actionFlightView, SIGNAL(triggered()), this, SLOT(loadPilotView()));
......
...@@ -181,18 +181,6 @@ ...@@ -181,18 +181,6 @@
<string>Add Link</string> <string>Add Link</string>
</property> </property>
</action> </action>
<action name="actionConfiguration">
<property name="icon">
<iconset resource="../../qgroundcontrol.qrc">
<normaloff>:/files/images/categories/applications-system.svg</normaloff>:/files/images/categories/applications-system.svg</iconset>
</property>
<property name="text">
<string>Preferences</string>
</property>
<property name="toolTip">
<string>Open UAS Preferences</string>
</property>
</action>
<action name="actionJoystickSettings"> <action name="actionJoystickSettings">
<property name="icon"> <property name="icon">
<iconset resource="../../qgroundcontrol.qrc"> <iconset resource="../../qgroundcontrol.qrc">
...@@ -375,6 +363,9 @@ ...@@ -375,6 +363,9 @@
<property name="toolTip"> <property name="toolTip">
<string>Application settings</string> <string>Application settings</string>
</property> </property>
<property name="menuRole">
<enum>QAction::PreferencesRole</enum>
</property>
</action> </action>
<action name="actionFullscreen"> <action name="actionFullscreen">
<property name="checkable"> <property name="checkable">
...@@ -442,6 +433,9 @@ ...@@ -442,6 +433,9 @@
<property name="toolTip"> <property name="toolTip">
<string>Setup of the vehicle</string> <string>Setup of the vehicle</string>
</property> </property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
</property>
</action> </action>
<action name="actionAdvanced_Mode"> <action name="actionAdvanced_Mode">
<property name="checkable"> <property name="checkable">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment