more sensorData menu
This commit is contained in:
@@ -30,6 +30,28 @@ void CalcAzimuth::updateCurrentPosition(Point point) {
|
||||
this->positionChanged = true;
|
||||
}
|
||||
|
||||
String CalcAzimuth::stateToString(State state) {
|
||||
switch (state) {
|
||||
case State::Invalid:
|
||||
return "Invalid";
|
||||
|
||||
case State::Bad:
|
||||
return "Bad";
|
||||
|
||||
case State::Ok:
|
||||
return "Ok";
|
||||
|
||||
case State::Good:
|
||||
return "Good";
|
||||
|
||||
case State::Super:
|
||||
return "Super";
|
||||
|
||||
default:
|
||||
return "UNKOWN";
|
||||
}
|
||||
}
|
||||
|
||||
void CalcAzimuth::run() {
|
||||
if (!this->positionChanged)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user