update compass lib

This commit is contained in:
2023-08-07 13:04:19 +02:00
parent b297a31b6b
commit 3549af2470
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -73,7 +73,7 @@ void CalibrateCompass::start() {
this->clearData();
this->state = State::Calibrating;
this->compass->removeCalibration();
this->compass->clearCalibration();
this->lastChange = millis();
}
@@ -95,7 +95,7 @@ void CalibrateCompass::useData() {
}
void CalibrateCompass::removeCalibration() {
this->compass->removeCalibration();
this->compass->clearCalibration();
}
void CalibrateCompass::reset() {
+1 -1
View File
@@ -52,6 +52,6 @@ class CalibrateCompass {
void clearData();
bool dataValid = false;
const uint16_t maxTimeWithoutChange = 5000;
const uint16_t maxTimeWithoutChange = 10000;
uint32_t lastChange = 0;
};
+1 -1
View File
@@ -22,7 +22,7 @@ lib_deps =
br3ttb/PID@^1.2.1
marcoschwartz/LiquidCrystal_I2C@^1.1.4
bblanchon/ArduinoJson@^6.20.0
mprograms/QMC5883LCompass@^1.1.1
mprograms/QMC5883LCompass@^1.2.0
https://git.kleiax.de/PlatformIO-Libs/Menu.git
nrf24/RF24@^1.4.5
upload_port = COM3