improved moveControl

This commit is contained in:
2021-04-01 20:59:51 +02:00
parent d9e64fbc4a
commit a33b4a2e4c
7 changed files with 136 additions and 69 deletions
+7 -1
View File
@@ -17,10 +17,16 @@ class Speedometer {
private:
void addValToBuf(int16_t val);
int16_t getAverage();
ESP32Encoder encoder;
double speed = 0;
uint32_t last_millis = 0;
uint8_t bufPos = 0;
int16_t buf[BUF_SIZE];
};
#endif // SPEEDOMETER_H