From 350fc8db3ba4076a680af2dd3ab80b6c1ff0f6da Mon Sep 17 00:00:00 2001 From: Laura Sebesta Date: Tue, 16 Oct 2012 11:56:53 +0200 Subject: [PATCH] Fixed HiTL bug by which gps velocity was not being updated. --- ground/openpilotgcs/src/plugins/hitl/simulator.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ground/openpilotgcs/src/plugins/hitl/simulator.cpp b/ground/openpilotgcs/src/plugins/hitl/simulator.cpp index d414049a1..9eb5b6eec 100644 --- a/ground/openpilotgcs/src/plugins/hitl/simulator.cpp +++ b/ground/openpilotgcs/src/plugins/hitl/simulator.cpp @@ -245,8 +245,10 @@ void Simulator::setupObjects() setupOutputObject(posHome, 10000); //Hardcoded? Bleh. - if (settings.gpsPositionEnabled) + if (settings.gpsPositionEnabled){ setupOutputObject(gpsPos, settings.gpsPosRate); + setupOutputObject(gpsVel, settings.gpsPosRate); + } if (settings.groundTruthEnabled){ setupOutputObject(posActual, settings.groundTruthRate);