adafruit / Adafruit_GPS

An interrupt-based GPS Arduino library for no-parsing-required use
Other
469 stars 318 forks source link

131 add parse for antenna stats #132

Closed wijnanb closed 2 years ago

wijnanb commented 3 years ago

Implementation for feature request #131

Add parsing for the antenna status as is described here:

https://learn.adafruit.com/adafruit-ultimate-gps-featherwing/antenna-options There is an output sentence that will tell you the status of the antenna. $PGTOP,11,x where x is the status number. If x is 3 that means it is using the external antenna. If x is 2 it's using the internal antenna and if x is 1 there was an antenna short or problem.

Tested with Huzzah32 and Ultimate GPS featherwing

caternuson commented 2 years ago

Thanks. Looks good. Also tested using a Feather ESP32 V2 and Ultimate GPS FeatherWing running new updated GPS_HardwareSerial_Parsing example sketch.

Time: 21:30:54.000
Date: 18/7/2022
Fix: 1 quality: 1
Location: top secret hollowed out volcano
Speed (knots): 0.13
Angle: 20.94
Altitude: 159.10
Satellites: 4
Antenna status: 2