From 95f66ddd761005c59dbe6e2d752acedc89593d9f Mon Sep 17 00:00:00 2001 From: Oleg Semyonov Date: Thu, 7 Jun 2012 12:52:08 +0300 Subject: [PATCH] AeroSimRC: add default simulatorId to prevent GCS crashes w/o config GCS will crash when HITLv2 plugin is started if there is no HITLv2 configuration in the OpenPilotGCS.xml. This is a workaround to prevent this behavior. Better way might be to rework the GCS config handling, but as a workaround this should work. --- ground/openpilotgcs/src/plugins/hitlv2/hitlv2configuration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ground/openpilotgcs/src/plugins/hitlv2/hitlv2configuration.cpp b/ground/openpilotgcs/src/plugins/hitlv2/hitlv2configuration.cpp index 0c4b42d39..890742e41 100644 --- a/ground/openpilotgcs/src/plugins/hitlv2/hitlv2configuration.cpp +++ b/ground/openpilotgcs/src/plugins/hitlv2/hitlv2configuration.cpp @@ -34,7 +34,7 @@ HITLConfiguration::HITLConfiguration(QString classId, { // qDebug() << "HITLV2Configuration"; // default values - QString simulatorId = ""; + QString simulatorId = "ASimRC"; QString hostAddress = "127.0.0.1"; int inPort = 40100; QString remoteAddress = "127.0.0.1";