lower sampling for self heat.. again.. and idk what else
This commit is contained in:
parent
a4fbd9e8a3
commit
6abf3028c8
|
|
@ -40,9 +40,9 @@ void setup() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ESP_LOGI(TAG, "BARO SETUP COMPLETE.");
|
ESP_LOGI(TAG, "BARO SETUP COMPLETE.");
|
||||||
bme.setSampling(Adafruit_BME280::MODE_NORMAL, Adafruit_BME280::SAMPLING_X8,
|
bme.setSampling(Adafruit_BME280::MODE_NORMAL, Adafruit_BME280::SAMPLING_X1,
|
||||||
Adafruit_BME280::SAMPLING_X8, Adafruit_BME280::SAMPLING_NONE,
|
Adafruit_BME280::SAMPLING_X1, Adafruit_BME280::SAMPLING_NONE,
|
||||||
Adafruit_BME280::FILTER_OFF, Adafruit_BME280::STANDBY_MS_20);
|
Adafruit_BME280::FILTER_OFF, Adafruit_BME280::STANDBY_MS_500);
|
||||||
|
|
||||||
bme_temp->printSensorDetails();
|
bme_temp->printSensorDetails();
|
||||||
bme_pressure->printSensorDetails();
|
bme_pressure->printSensorDetails();
|
||||||
|
|
@ -142,7 +142,7 @@ void baro_poll_task(void *_) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// BME280 config has a 20ms standby, so 20ms-50ms poll is ideal
|
// BME280 config has a 20ms standby, so 20ms-50ms poll is ideal
|
||||||
vTaskDelay(pdMS_TO_TICKS(50));
|
vTaskDelay(pdMS_TO_TICKS(500));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -123,7 +123,7 @@ struct GPS {
|
||||||
}
|
}
|
||||||
if (this->gps->newNMEAreceived()) {
|
if (this->gps->newNMEAreceived()) {
|
||||||
char *line = this->gps->lastNMEA();
|
char *line = this->gps->lastNMEA();
|
||||||
ESP_LOGI("GPS", "NMEA LINE: %s", line);
|
// ESP_LOGI("GPS", "NMEA LINE: %s", line);
|
||||||
this->gps->parse(line);
|
this->gps->parse(line);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -42,8 +42,8 @@ extern "C" void app_main(void) {
|
||||||
// 0 // Core ID
|
// 0 // Core ID
|
||||||
// );
|
// );
|
||||||
//
|
//
|
||||||
// xTaskCreatePinnedToCore(env_sens::baro_poll_task, "baro_poll", 8192, NULL,
|
xTaskCreatePinnedToCore(env_sens::baro_poll_task, "baro_poll", 8192, NULL, 5,
|
||||||
// 5, NULL, 0);
|
NULL, 0);
|
||||||
|
|
||||||
xTaskCreatePinnedToCore(gps_poll_task, "gps_poll", 8192, NULL, 5, NULL, 0);
|
xTaskCreatePinnedToCore(gps_poll_task, "gps_poll", 8192, NULL, 5, NULL, 0);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue