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 // BME280
#define BME280_I2C_ADDR 0x76 // Addr. 0x76 (0x77) #define BME280_I2C_ADDR 0x76 // Addr. 0x76 (0x77)
// BMP280 // BMP280
#define BMP280_I2C_ADDR 0x77 // Addr. 0x76 (0x77) #define BMP280_I2C_ADDR 0x77 // Addr. 0x77 (0x76) Attention: Pull up resistor
// BMP085 / BMP180 // BMP085 / BMP180
#define BMP180_I2C_ADDR 0x77 // Addr. 0x77 (fix) #define BMP180_I2C_ADDR 0x77 // Addr. 0x77 (fix)
// SHT21 / HUT21 // SHT21 / HUT21
@ -63,7 +63,7 @@
#define TP3 12 #define TP3 12
#define TP4 11 #define TP4 11
#define TP5 10 #define TP5 10
#define TP6 9 // Right ouside #define TP6 9 // Right outside
// Flash LED (1x WS2812B) // Flash LED (1x WS2812B)
#define NUM_FLASH_LED 1 // Number of flash LED #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 voffset = (api->getConfig()->getConfigItem(api->getConfig()->vOffset,true)->asString()).toFloat();
double vslope = (api->getConfig()->getConfigItem(api->getConfig()->vSlope,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 starttime5 = millis(); // Voltage update all 1s
long starttime6 = millis(); // Environment sensor update all 1s long starttime6 = millis(); // Environment sensor update all 1s
long starttime7 = millis(); // Rotation sensor update all 500ms long starttime7 = millis(); // Rotation sensor update all 500ms
@ -341,10 +341,10 @@ void sensorTask(void *param){
delay(100); // Loop time 100ms delay(100); // Loop time 100ms
Timer1.update(); // Update for Timer1 Timer1.update(); // Update for Timer1
Timer2.update(); // Update for Timer2 Timer2.update(); // Update for Timer2
if (millis() > starttime0 + 1000) if (millis() > starttime0 + 100)
{ {
starttime0 = millis(); 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) if (gps_ready == true)
{ {
SNMEA0183Msg NMEA0183Msg; SNMEA0183Msg NMEA0183Msg;

View File

@ -497,7 +497,7 @@ void OBP60Task(GwApi *api){
delayedDisplayUpdate = false; delayedDisplayUpdate = false;
} }
// Subtask E-Ink full refresh all 1 min for the first 5min after power on or restart // Subtask E-Ink full refresh all 1 min for the first 5 min after power on or restart
// This needs for a better display contrast after power on in cold or warm environments // This needs for a better display contrast after power on in cold or warm environments
if(millis() < firststart + (5 * 60 * 1000) && millis() > starttime1 + (60 * 1000)){ if(millis() < firststart + (5 * 60 * 1000) && millis() > starttime1 + (60 * 1000)){
starttime1 = millis(); starttime1 = millis();