feat: add support for air530 gps module

This commit is contained in:
s3lph 2023-05-14 06:13:09 +02:00
parent 67e974c4e4
commit cafc58e49f
Signed by: s3lph
GPG key ID: 0AA29A52FB33CFB5

View file

@ -567,6 +567,11 @@ void readNmeaRmc() {
// L80-R: Send GPS module into standby mode // L80-R: Send GPS module into standby mode
Serial.println("$PMTK161,0*28"); Serial.println("$PMTK161,0*28");
Serial.flush(); Serial.flush();
#endif
#if defined(GPSM_AIR530)
// AIR530: Send GPS module into low-power mode
Serial.println("$PGKC051,1*36");
Serial.flush();
#endif #endif
char buf[16]; char buf[16];
char *bptr = buf; char *bptr = buf;
@ -719,6 +724,11 @@ void setup() {
// L80-R: Disable all NMEA sentences except for GPRMC // L80-R: Disable all NMEA sentences except for GPRMC
Serial.println("$PMTK314,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*29"); Serial.println("$PMTK314,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*29");
Serial.flush(); Serial.flush();
#elif defined(GPSM_AIR530)
Serial.begin(9600);
// AIR530: Disable all NMEA sentences except for GPRMC
Serial.println("$PGKC242,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*36");
Serial.flush();
#else #else
// Assume NMEA-0183 default baud rate of 4800 // Assume NMEA-0183 default baud rate of 4800
Serial.begin(4800); Serial.begin(4800);
@ -804,4 +814,9 @@ void loop() {
lcd.backlight(); lcd.backlight();
lcd.display(); lcd.display();
} }
#if defined(GPSM_AIR530)
// Wake AIR530
Serial.println();
Serial.flush();
#endif
} }