hereforawhile@lemmy.ml to Programming@programming.dev · 6 days agowhat's the coolest thing you have ever programmed?message-squaremessage-square49fedilinkarrow-up1111arrow-down11file-text
arrow-up1110arrow-down1message-squarewhat's the coolest thing you have ever programmed?hereforawhile@lemmy.ml to Programming@programming.dev · 6 days agomessage-square49fedilinkfile-text
minus-squarehereforawhile@lemmy.mlOPlinkfedilinkarrow-up7·6 days agoWoah! So you give it a distance and it estimates where to place the reticle? What sort of math formula do you use to estimate?
minus-squareCameronDev@programming.devlinkfedilinkarrow-up13·6 days agoIt fits up to a 4th order polynomial (going beyond 4th gets a bit silly), depending on the number of known pins. https://github.com/cameroncros/BeagleSight/blob/master/app/beaglesightlibs/src/main/java/com/cross/beaglesightlibs/bowconfigs/BowConfig.kt Uses an apache math library to solve the best fit line.
Woah! So you give it a distance and it estimates where to place the reticle? What sort of math formula do you use to estimate?
It fits up to a 4th order polynomial (going beyond 4th gets a bit silly), depending on the number of known pins.
https://github.com/cameroncros/BeagleSight/blob/master/app/beaglesightlibs/src/main/java/com/cross/beaglesightlibs/bowconfigs/BowConfig.kt
Uses an apache math library to solve the best fit line.