mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
NMEA ATGM336 - support 10Hz refresh rate (#12008)
* 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>
This commit is contained in:
parent
cb41b55c40
commit
103f238eea
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue