lower sampling for self heat.. again.. and idk what else

This commit is contained in:
franchioping 2026-04-18 13:24:36 +01:00
parent a4fbd9e8a3
commit 6abf3028c8
3 changed files with 7 additions and 7 deletions

View File

@ -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));
} }
} }

View File

@ -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);
} }
} }

View File

@ -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);