finished new encoder

This commit is contained in:
2023-03-23 19:31:02 +01:00
parent 2f0027b68b
commit e4cdc5f98d
8 changed files with 104 additions and 13 deletions
+4
View File
@@ -60,6 +60,10 @@ void MoveControl::loop() {
|| left_speed_time > 50
|| right_speed_time > 50) {
// Dont count overTimeCounter if one speedometer is in TestMode.
if (left_speed_time == UINT16_MAX || right_speed_time == UINT16_MAX)
this->overTimeCounter--;
this->overTimeCounter++;
if (this->overTimeCounter >= this->overTimeMax) {
char buf[128];