From 8556a2a23d723c7bfe7fe3ca79667718658f97cc Mon Sep 17 00:00:00 2001 From: pixhawk Date: Sat, 8 May 2010 17:28:52 +0200 Subject: [PATCH] Fixed issue in Simulation link introduced by change to usec --- src/comm/MAVLinkSimulationLink.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/comm/MAVLinkSimulationLink.cc b/src/comm/MAVLinkSimulationLink.cc index 9239b431b..204b33d08 100644 --- a/src/comm/MAVLinkSimulationLink.cc +++ b/src/comm/MAVLinkSimulationLink.cc @@ -76,7 +76,7 @@ MAVLinkSimulationLink::MAVLinkSimulationLink(QString readFile, QString writeFile simulationHeader = simulationFile->readLine(); } receiveFile = new QFile(writeFile, this); - lastSent = MG::TIME::getGroundTimeNow(); + lastSent = MG::TIME::getGroundTimeNow() * 1000; if (simulationFile->exists()) { @@ -218,6 +218,8 @@ void MAVLinkSimulationLink::mainloop() static quint64 lastTime = 0; static quint64 baseTime = 0; quint64 time = QString(parts.first()).toLongLong(&ok, 10); + // FIXME Remove multiplicaton by 1000 + time *= 1000; if (ok) { -- 2.22.0