Fix GPS problem with defect telegrams

This commit is contained in:
norbert-walter 2024-04-19 13:56:14 +02:00
parent cae53f7dc0
commit 476c097d36
3 changed files with 6 additions and 6 deletions

View File

@ -12,7 +12,7 @@
// BME280
#define BME280_I2C_ADDR 0x76 // Addr. 0x76 (0x77)
// BMP280
#define BMP280_I2C_ADDR 0x77 // Addr. 0x76 (0x77)
#define BMP280_I2C_ADDR 0x77 // Addr. 0x77 (0x76) Attention: Pull up resistor
// BMP085 / BMP180
#define BMP180_I2C_ADDR 0x77 // Addr. 0x77 (fix)
// SHT21 / HUT21
@ -63,7 +63,7 @@
#define TP3 12
#define TP4 11
#define TP5 10
#define TP6 9 // Right ouside
#define TP6 9 // Right outside
// Flash LED (1x WS2812B)
#define NUM_FLASH_LED 1 // Number of flash LED

View File

@ -322,7 +322,7 @@ void sensorTask(void *param){
double voffset = (api->getConfig()->getConfigItem(api->getConfig()->vOffset,true)->asString()).toFloat();
double vslope = (api->getConfig()->getConfigItem(api->getConfig()->vSlope,true)->asString()).toFloat();
long starttime0 = millis(); // GPS update all 1s
long starttime0 = millis(); // GPS update all 100ms
long starttime5 = millis(); // Voltage update all 1s
long starttime6 = millis(); // Environment sensor update all 1s
long starttime7 = millis(); // Rotation sensor update all 500ms
@ -341,10 +341,10 @@ void sensorTask(void *param){
delay(100); // Loop time 100ms
Timer1.update(); // Update for Timer1
Timer2.update(); // Update for Timer2
if (millis() > starttime0 + 1000)
if (millis() > starttime0 + 100)
{
starttime0 = millis();
// Send NMEA0183 GPS data on several bus systems all 1000ms
// Send NMEA0183 GPS data on several bus systems all 100ms
if (gps_ready == true)
{
SNMEA0183Msg NMEA0183Msg;