baronbrew / TILTpi

Baron Brew Equipment Official Tilt app for Raspberry Pi
62 stars 18 forks source link

Question: Original Tilt Precision #27

Closed SillyHats closed 3 years ago

SillyHats commented 3 years ago

Looking at the tiltpi interface and the tilt android app I see 1.xxx displayed. When I look at a google sheet produced by the tiltpi it creates data points with more decimal places as shown below. How is the tilt pi calculating with more precision specifically when logging to the google sheet? This is with a tilt regular (with two screw caps) from 2018.

SG 1.0065 1.00616666666666 1.00616666666666 1.00633333333333 1.00633333333333 1.0060 1.0060 1.00616666666666 1.00616666666666 1.0060 1.00616666666666 1.0060 1.0060 1.00616666666666 1.00666666666666

wiltdavi commented 3 years ago

I have not reviewed the code to confirm this but I believe that the value you see on the tilitpi interface and tilt android app is set round the value to a specific number of digits. The Google sheet is using the same data from the tilt as the other items you referenced so this is the only way it makes sense and is common practice when making an interface.

noahbaron commented 3 years ago

The extra decimal places are a result of interpolation calculations occurring when at least two calibration points are in use. The Android app rounds to 4 decimal places while the Tilt Pi does not round at all. This wasn’t intentional for Tilt Pi, it just hasn’t been updated like the Android app.

On Wed, Mar 17, 2021 at 9:42 PM SillyHats @.***> wrote:

Looking at the tiltpi interface and the tilt android app I see 1.xxx displayed. When I look at a google sheet produced by the tiltpi it creates data points with more decimal places as shown below. How is the tilt pi calculating with more precision specifically when logging to the google sheet? This is with a tilt regular (with two screw caps) from 2018.

SG 1.00616666666666 1.00616666666666 1.00633333333333 1.00633333333333 1.0060 1.0060 1.00616666666666 1.00616666666666 1.0060 1.00616666666666 1.0060 1.0060 1.00616666666666 1.00666666666666

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/baronbrew/TILTpi/issues/27, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQ3FBKIZEUQ722KMMXUCJDTEGAB3ANCNFSM4ZL34ZKA .