dgatf / msrc

Multi Sensor for RC with RP2040 - FrSky D, SmartPort, XBUS, SRXL, IBUS, SBUS, Multiplex Sensor Bus, Jeti Ex Bus, Hitec
GNU General Public License v3.0
169 stars 42 forks source link

Average alpha setting is not correct - above 1.0 for temperature - temp sensors are bouncing #100

Closed NilsRo closed 1 year ago

NilsRo commented 1 year ago

The alpha value for average calculation is not set or read fine by the GUI. If set to 1 via GUI it is set to 2.0 which leads into bouncing readings around the real measurement.

A work around can be applied by setting another value than 1 in the GUI.

msrc_gui_2023-01-24 002602

Added some additional debugging outputs to make the bad alpha value visible...had to be 0..1 javaw_2023-01-24 002514

dgatf commented 1 year ago

Fixed with 49b032fbebc7736ac1da871d14ea70f3be87f552