Commit ba0e2459 authored by Don Gagne's avatar Don Gagne

Warn if using generic flight stack

parent 29365f96
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#include "PX4/PX4AutoPilotPlugin.h" #include "PX4/PX4AutoPilotPlugin.h"
#include "Generic/GenericAutoPilotPlugin.h" #include "Generic/GenericAutoPilotPlugin.h"
#include "QGCApplication.h" #include "QGCApplication.h"
#include "QGCMessageBox.h"
#include "UASManager.h" #include "UASManager.h"
IMPLEMENT_QGC_SINGLETON(AutoPilotPluginManager, AutoPilotPluginManager) IMPLEMENT_QGC_SINGLETON(AutoPilotPluginManager, AutoPilotPluginManager)
...@@ -81,6 +82,9 @@ void AutoPilotPluginManager::_uasCreated(UASInterface* uas) ...@@ -81,6 +82,9 @@ void AutoPilotPluginManager::_uasCreated(UASInterface* uas)
plugin = new GenericAutoPilotPlugin(uas, this); plugin = new GenericAutoPilotPlugin(uas, this);
Q_CHECK_PTR(plugin); Q_CHECK_PTR(plugin);
_pluginMap[MAV_AUTOPILOT_GENERIC][uasId] = QSharedPointer<AutoPilotPlugin>(plugin); _pluginMap[MAV_AUTOPILOT_GENERIC][uasId] = QSharedPointer<AutoPilotPlugin>(plugin);
QGCMessageBox::warning("Partial Support AutoPilot",
"Warning: You have connected QGroundControl to a firmware flight stack which is only partially supported. "
"If you are using the APM Flight Stack it is currently recommended to use Mission Planner, APM Planner or Tower as your ground control station.");
} }
} }
......
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