A GPS disciplined clock

Dependencies:   net lpc1768 crypto clock web log

Revision:
60:7cab896b0fd4
Parent:
59:d2d25c2265f8
--- a/web-this/nmea/web-nmea-ajax.c	Wed May 01 10:14:26 2019 +0000
+++ b/web-this/nmea/web-nmea-ajax.c	Wed May 01 14:08:56 2019 +0000
@@ -13,28 +13,26 @@
     char nibble;
     
     nibble = 0;
-    if (GpsTrace    ) nibble |= 1;                    // 0
-    if (GpsVerbose  ) nibble |= 2;                    // 0
-    if (NmeaMsgTrace) nibble |= 4;                    // 0
-    if (NmeaCmdTrace) nibble |= 8;                    // 0
-    HttpAddNibbleAsHex(nibble);
+    if (GpsTrace    ) nibble |= 1;
+    if (GpsVerbose  ) nibble |= 2;
+    if (NmeaMsgTrace) nibble |= 4;
+    if (NmeaCmdTrace) nibble |= 8;
+    HttpAddNibbleAsHex(nibble                 ); HttpAddChar('\n');
+    HttpAddInt32AsHex (NmeaLatAv              ); HttpAddChar('\n');
+    HttpAddInt32AsHex (NmeaLngAv              ); HttpAddChar('\n');
+    HttpAddInt32AsHex (NmeaHgtAv              ); HttpAddChar('\n');
+    HttpAddInt32AsHex (NmeaHeightDevAboveMslAv); HttpAddChar('\n');
+    HttpAddInt32AsHex (NmeaHeightMslAboveWgs  ); HttpAddChar('\n');
+    HttpAddInt32AsHex (NmeaDop                ); HttpAddChar('\n');
+    HttpAddInt32AsHex (NmeaSatelliteCount     ); HttpAddChar('\n');
+    HttpAddInt32AsHex (NmeaFixQuality         ); HttpAddChar('\n');
+    HttpAddInt32AsHex (GetSensorHeight()      ); HttpAddChar('\n');
+    HttpAddChar('\f');
     
-    HttpAddInt32AsHex(NmeaLatAv);                     // 1
-    HttpAddInt32AsHex(NmeaLngAv);                     // 9
-    HttpAddInt32AsHex(NmeaHgtAv);                     //17
-
-    HttpAddInt32AsHex(NmeaHeightDevAboveMslAv);       //25
-
-    HttpAddInt32AsHex(NmeaHeightMslAboveWgs);         //33
-    HttpAddInt32AsHex(NmeaDop);                       //41
-    HttpAddInt32AsHex(NmeaSatelliteCount);            //49
-    HttpAddInt32AsHex(NmeaFixQuality);                //57
-    HttpAddInt32AsHex(GetSensorHeight());             //65
-    
-    HttpAddInt32AsHex(NmeaTimeBucketGetSize());       //73
-    for (int i = 0; i < NmeaTimeBucketGetSize(); i++) //81
+    HttpAddInt32AsHex (NmeaTimeBucketGetSize()); HttpAddChar('\n');
+    for (int i = 0; i < NmeaTimeBucketGetSize(); i++)
     {
-        HttpAddInt32AsHex(NmeaTimeBucketGetItem(i));
+        HttpAddInt32AsHex(NmeaTimeBucketGetItem(i)); HttpAddChar('\n');
     }
 }