universam1 / iSpindel

electronic Hydrometer
http://www.ispindel.de
Other
817 stars 326 forks source link

make tilt angle independent of the board orientation #531

Closed m0n5t3r closed 2 years ago

m0n5t3r commented 2 years ago

this solves #445 (yes, the calibration will account for the weird numbers, but it's nice to have a number one can relate to - for instance, instructions say the 1.000 angle should be 25 degrees - with the board inverted that would be 155 degrees, having to remember to subtract from 180 degrees is less than ideal :) )

ErikdBr commented 2 years ago

Wasn't this already resolved in 6.5.1 ?

m0n5t3r commented 2 years ago

apparently not; I updated my ispindels a few months ago and only got to use one recently; initially I thought I calibrated it wrong or something, but then I did the trig on paper and it checked out (negative z will result in the supplementary angle, i.e. 180 - our tilt angle)

universam1 commented 2 years ago

Thanks for that