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
+3 -2
View File
@@ -15,7 +15,8 @@
#include <Arduino.h>
#include <cstdint>
#include <iostream>
#include <esp32_pcnt.h>
#include "counter.h"
/**
* @brief The default size of numbers to be taken in account for the average.
@@ -153,7 +154,7 @@ class Speedometer {
void updateAvgBufSize();
int16_t calcAverage();
PulseCounter* pulseCounter;
Counter* pulseCounter;
Direction currentDirection = Direction::None;
bool calibrationRunning = false;