Hiverize / FiPy

4 stars 11 forks source link

sensor reading rounding is not done propperly #30

Open ClemensGruber opened 4 years ago

ClemensGruber commented 4 years ago

Rounding is done by value / 10 * 1 0 so it's not correct implemented, better use a round function

amotl commented 4 years ago

Examples

>>> round(5.12345, 2)
5.12
>>> round(5.98765, 2)
5.99
DieDiren commented 4 years ago

sollte hiermit gefixt sein: https://github.com/Hiverize/FiPy/commit/6829536898d919aff2da1f2d72ec5a639467b42a

ClemensGruber commented 4 years ago

bei den Gewichtswerten passt noch etwas nicht, s. https://community.hiveeyes.org/t/verbesserung-der-stabilitat-der-bob-firmware/2957/128