From 08a738316f0baab755daac8629bc8fe90dd3a04e Mon Sep 17 00:00:00 2001 From: Andrei Bechet Date: Wed, 1 Jul 2015 11:32:07 +0200 Subject: [PATCH] added some hints to the c++ --- 2015/ppc/gps/src/gps/GpsConverter.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/2015/ppc/gps/src/gps/GpsConverter.cpp b/2015/ppc/gps/src/gps/GpsConverter.cpp index a7c05e5..acf60ab 100644 --- a/2015/ppc/gps/src/gps/GpsConverter.cpp +++ b/2015/ppc/gps/src/gps/GpsConverter.cpp @@ -28,6 +28,18 @@ void GpsConverter::frameReceived(const CANFrame& canFrame) { const uint8* payload = canFrame.getPayload(); // TOOD implement conversion to arc-msec and call IGpsACPusher + + sint32 latInMs = 0; // here add your converted lat + sint32 longInMs = 0; // here add your converted long + + + if (latInMs != fLastLatInMs || longInMs != fLastLongInMs) + { + // value changed + fAcPusher.pushGPSCoordinates(latInMs, longInMs); + fLastLatInMs = latInMs; + fLastLongInMs = longInMs; + } }