Fix GPS problem with defect telegrams
This commit is contained in:
parent
cae53f7dc0
commit
476c097d36
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue