Garmin GPS18-5Hz Read

 

Library

 

Olin Robotics Blockset

 

 

Description

 

Read output from Garmin GPS on COM1 at 5Hz.

 

Uses the GGA, VTG and RME sentences from the GMEA standard protocol.

 

Outputs with example output and format description:

1. Time:  123519      

Fix taken at 12:35:19 UTC

 

2. Lat:  4807.038

3. Lat direction: N   (ASCII code)

Latitude 48 deg 07.038' N

 

4. Long: 01131.324

5. Long direction: E  (ASCII code)

Longitude 11 deg 31.324' E

 

6. Track status: 1

Fix quality: 0 = invalid

                    1 = GPS fix

                    2 = DGPS fix

 

7. Num satellites tracked: 8

Number of satellites being tracked

 

8. Horz dilution: 0.9

Horizontal dilution

 

9. Altitude: 545.4

Altitude above mean sea level (Meters)

 

10. Sea vs WGS84: 46.9

Height of geoid (mean sea level) above WGS84 ellipsoid

 

11. True Track: 54.7

True track made good

 

12. Mag track: 34.4

Magnetic track made good

 

13. Gnd speed Knots: 5.5

Ground speed (Knots)

 

14. Gnd speed Km/h: 10.2

Ground speed (Km/h)

Note: This output is derived from the Knots output on the xPC Target machine.

 

15. Horz pos error: 15.0

Estimated horizontal position error (Meters)

 

16. Vert pos error: 45.0

Estimated vertical position error (Meters)

 

17. Spherical pos error: 25.0

Overall spherical equivalent position error

 

 

Block Parameters

 

Sample time to fetch data:

This is how much time is between fetches from the serial buffer that the Garmin GPS is connected to.  Units are seconds.

 

COM port:

Choose which COM port to use. 

 

 

Notes

 

To configure the Garmin GPS 18-5Hz, use the program from Garmin, SNSRCFG_310.exe available under “Downloads” off the GPS 18 5Hz homepage, to set the GMEA outputs to GGA, VTG and RME.  It will automatically send 5Hz data when it tracks a satellite.

 

Garmin GPS 18 5Hz homepage:

http://www.garmin.com/products/gps185hz/

 

 

 

Reference

http://vancouver-webpages.com/peter/nmeafaq.txt