Mag readings are showing various responses under no change #4058
Replies: 1 comment
-
Posted at 2022-07-29 by @gfwilliams Hi! Sorry about this - that's an odd one. Just to confirm, what does your Puck's PCB say on the rear? So I imagine right now you're doing something like:
But what happens if you do this instead?
Or you can literally just add What I think might be happening is the magnetometer is taking a little bit more time to power up than we're giving it - so By calling I've just tested here and while an 'old' batch of Puck.js 2.1a works fine, it seems the most recent batch must be using a slightly different batch of magnetometer (it's the exact same type) which takes a bit longer to start up. I'll make a firmware tweak here and see if I can fix it Posted at 2022-07-29 by @gfwilliams Ok, just fixed - so if you try the latest cutting edge build it'll work as expected now Posted at 2022-07-29 by khicksiv Thats Ace! Thanks @gfwilliams! Yes you nailed it , just polling with a set interval as you showed and yes I've got a Ill give shoot with using Thanks again! Posted at 2022-08-01 by @gfwilliams
Not really - it just means slightly higher power usage.
It's definitely more power efficient to just leave the magnetometer on and respond to You can supply an argument to But either way Posted at 2022-08-02 by khicksiv Awesome, thanks again! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2022-07-28 by khicksiv
Just received my puck and was tinkering around with it and noticed that calls to
Puck.mag()
show varying responses over time with no movement of the puck. Currently I've updated to 2v14 and the responses I've seen polling at ~1 second apart look similar to:I've tried checking the forum for anything similar but not seen anything returning such wild jumps. I thought at first maybe I was making calls to fast as I wasnt calling
Puck.magOn()
but Im not positive.Is there something I might be missing ( or maybe im just in a big magnetic field??)
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions