GPS/GNSS UBX library for UART

Dependencies:   Vector3

Dependents:   GPS_0002

Revision:
8:1eb5f701a0d0
Parent:
7:580cdef44531
Child:
9:874d7633e358
--- a/GPSUBX_UART.hpp	Fri Sep 17 16:40:42 2021 +0000
+++ b/GPSUBX_UART.hpp	Fri Sep 17 16:42:29 2021 +0000
@@ -107,38 +107,38 @@
 
 /**GPS/GNSS library for UART (UBX protocol)
 * RX pin is required.
-*@code
-*#include "mbed.h"
-*#include "GPSUBX_UART.cpp"
-*
-*Serial pc(USBTX, USBRX, 115200);
-*
-*GPSUBX_UART gps(PD_1, PD_0); // mbed Nucleo 767
-*
-*void Display()
-*{
-*    pc.printf("POSLLH: %d, %f, %f, %f\r\n", gps.iTOW_POSLLH, gps.Longitude, gps.Latitude, gps.Height);
-*    pc.printf("VELNED: %d, %f, %f, %f\r\n", gps.iTOW_VELNED, gps.VelocityNED.x, gps.VelocityNED.y, gps.VelocityNED.z);
-*    pc.printf("TIMEUTC: %4d/%2d/%2d %2d:%2d %2d\r\n", gps.Year, gps.Month, gps.Day, gps.Hours, gps.Minutes, gps.Seconds);
-*}
-*
-*int main()
-*{
-*    gps.Attach();
-*    int timer = 0;
-*    while (1)
-*    {
-*        gps.Update();
-*        wait(0.1);
-*        timer++;
-*        if (timer >= 5)
-*        {
-*            Display();
-*            timer = 0;
-*        }
-*    }
-*}
-*@endcode
+@code
+#include "mbed.h"
+#include "GPSUBX_UART.cpp"
+
+Serial pc(USBTX, USBRX, 115200);
+
+GPSUBX_UART gps(PD_1, PD_0); // mbed Nucleo 767
+
+void Display()
+{
+    pc.printf("POSLLH: %d, %f, %f, %f\r\n", gps.iTOW_POSLLH, gps.Longitude, gps.Latitude, gps.Height);
+    pc.printf("VELNED: %d, %f, %f, %f\r\n", gps.iTOW_VELNED, gps.VelocityNED.x, gps.VelocityNED.y, gps.VelocityNED.z);
+    pc.printf("TIMEUTC: %4d/%2d/%2d %2d:%2d %2d\r\n", gps.Year, gps.Month, gps.Day, gps.Hours, gps.Minutes, gps.Seconds);
+}
+
+int main()
+{
+    gps.Attach();
+    int timer = 0;
+    while (1)
+    {
+        gps.Update();
+        wait(0.1);
+        timer++;
+        if (timer >= 5)
+        {
+            Display();
+            timer = 0;
+        }
+    }
+}
+@endcode
 */
 class GPSUBX_UART
 {