Skip to content

Commit

Permalink
NMEA ATGM336 - support 10Hz refresh rate (#12008)
Browse files Browse the repository at this point in the history
* NMEA ATGM336 - support 10Hz refresh rate, the gps should be set to 57600pbs, autobound/autoconfig not required

* Update src/main/io/gps.c

Co-authored-by: Jan Post <Rm2k-Freak@web.de>

* Update src/main/io/gps.c

Co-authored-by: Jan Post <Rm2k-Freak@web.de>

Co-authored-by: Jan Post <Rm2k-Freak@web.de>
  • Loading branch information
krzysztofkuczek and KarateBrot committed Dec 10, 2022
1 parent cb41b55 commit 103f238
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/io/gps.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ void gpsInit(void)
#ifdef USE_GPS_NMEA
void gpsInitNmea(void)
{
static bool atgmRestartDone = false;
#if !defined(GPS_NMEA_TX_ONLY)
uint32_t now;
#endif
Expand Down Expand Up @@ -395,6 +396,12 @@ void gpsInitNmea(void)
gpsData.state_position++;
} else if (gpsData.state_position < 2) {
serialPrint(gpsPort, "$PSRF103,00,6,00,0*23\r\n");
// special initialization for NMEA ATGM336 and similar GPS recivers - should be done only once
if (!atgmRestartDone) {
atgmRestartDone = true;
serialPrint(gpsPort, "$PCAS02,100*1E\r\n"); // 10Hz refresh rate
serialPrint(gpsPort, "$PCAS10,0*1C\r\n"); // hot restart
}
gpsData.state_position++;
} else
#else
Expand Down

0 comments on commit 103f238

Please sign in to comment.