refactore
all components now have a base class compnent for loop functions
This commit is contained in:
2023-08-18 10:47:35 +02:00
parent 25d37e3970
commit 11d21e2e89
35 changed files with 303 additions and 511 deletions
+4 -1
View File
@@ -15,9 +15,10 @@ CalibrateCompass::CalibrateCompass(QMC5883LCompass* compass) {
this->compass = compass;
this->state = State::Ready;
this->clearData();
this->activateOnlyChilds();
}
void CalibrateCompass::loop() {
void CalibrateCompass::runAsChild() {
if (this->state != State::Calibrating)
return;
@@ -67,6 +68,8 @@ void CalibrateCompass::loop() {
}
}
void CalibrateCompass::run() {}
void CalibrateCompass::start() {
if (this->state != State::Ready)
return;