androidthings / contrib-drivers

Open source peripheral drivers
Apache License 2.0
558 stars 174 forks source link

Add "GN" NMEA TalkerID support for GPS driver #125

Open sam1016yu opened 5 years ago

sam1016yu commented 5 years ago

In gps/NmeaParser.java, line 48-51, for the message type identifier, some devices use "GN" instead of "GP" as TalkerID, it's better to support that as well. In that case, identifiers will look like

    // NMEA Message Types
    private static final String GGA = "GNGGA";
    private static final String GSV = "GNGSV";
    private static final String GLL = "GNPGLL";
    private static final String RMC = "GNRMC";
PaulTR commented 5 years ago

Google isn't actively supporting this right now, so your best bet would be to make the changes yourself and submit the pr