   getUBX();
   if (gotUBX == true)
   {
-    mySerial.println("Got it!");
+    mySerial.print("");
     decodeUBX();
+    if (POSLLH == 1 && VELNED == 1)
+    {
+      sendGPS();
+      POSLLH = 0;
+      VELNED = 0;
+      SOL = 0;
+    }
     clearVars();
     gotUBX = false;
   }

boolean gotUBX = false;
boolean POSLLH = 0;
boolean SVINFO = 0;
boolean VELNED = 0;
char GPSdata[40];

void ubx_checksum(byte ubx_data) //рассчет контрольной суммы
{

#include <AltSoftSerial.h>

AltSoftSerial mySerial;
