cleaning
refactore all components now have a base class compnent for loop functions
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user