rdancer / Color_LCD

0 stars 0 forks source link

Sensor readouts oscillate incessantly -- give them some hysteresis #9

Open rdancer opened 3 years ago

rdancer commented 3 years ago

Sensor readouts -- battery voltage & motor temperature (will be an issue with battery temperature too, once available) display the raw value, and as a result, oscillate between adjacent values due to measurement error.

rdancer commented 3 years ago
rdancer commented 3 years ago

Initial implementation is done (motor temp sensor & battery voltage — fields, graph view still uses unsmoothed values).

https://www.icloud.com/iclouddrive/0s4tzU9Bij8pTQM67LkXy4Ghg#IMG_4697

rdancer commented 3 years ago

this is actually done, in a weird way that cannot possibly work, by firmware/common/src/state.c:rt_low_pass_filter_battery_voltage_current_power()