linguini1 commented on code in PR #16406:
URL: https://github.com/apache/nuttx/pull/16406#discussion_r2094129494


##########
Documentation/applications/examples/gps/index.rst:
##########
@@ -2,4 +2,26 @@
 ``gps`` GPS example
 ===================
 
-GPS example.
+This example can be used to interact with GPS devices in NuttX. It uses the 
`MINMEA <https://github.com/kosma/minmea>`_
+library to parse standard NMEA messages and print out GPS data to the console.
+
+To use the program, provide the character device path for the GPS serial 
connection as the only argument. If no path is
+provided, the program will default to ``/dev/ttyS1``.
+
+.. code:: console
+
+   nsh> gps /dev/ttyS3
+   Fixed-point Latitude...........: 0
+   Fixed-point Longitude..........: 0
+   Fixed-point Speed..............: 0
+   Floating point degree latitude.: nan
+   Floating point degree longitude: nan
+   Floating point speed...........: nan

Review Comment:
   As far as I can tell, this is what MINMEA parses a no-fix reading into. Once 
a fix is obtained the floating point numbers become real values.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to