bug fix static in motor und speed

This commit is contained in:
2022-01-29 12:25:06 +01:00
parent 1265cfda5c
commit 9c4c82f8b3
18 changed files with 197 additions and 99 deletions
+5 -1
View File
@@ -58,8 +58,9 @@ class Speedometer {
* functions returns immediately.
* @see runSpeedometer()
* @see DELAY_SPEEDOMETER
* @return time since the last call in Milliseconds
*/
void loop();
uint16_t loop();
/**
* @brief Noramly called repeatedly by loop() to calcluate new values.
@@ -115,6 +116,9 @@ class Speedometer {
uint8_t delay = DELAY_SPEEDOMETER;
int16_t *buf;
uint32_t last_millis_loop = 0;
uint32_t last_millis_calc = 0;
};
#endif // SPEEDOMETER_H