-
Thats Ace! Thanks @Gordon! Yes you nailed it , just polling with a set interval as you showed and yes I've got a
2.1a
as well. I didnt give a proper test yet by callingPuck.magOn()
but i did just try using the cutting edge build and it now seems to be working as expected!Ill give shoot with using
Puck.magOn()
as well as I think that might be better in the long run for me. Would this "slower startup" cause eventually cause issues if you calledPuck.mag()
too quickly? Im fairly fresh to messing with this so far but didnt know if it would be more power efficient to leave the magnometer on for an extended period or just get single calls over a quick interval.Thanks again!
-
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:{x: -32768, y: -32768, z: -32768} {x: -121, y: 749, z: -219} {x: -32768, y: -32768, z: -32768} {x: -32768, y: -32768, z: -32768} {x: -112, y: 752, z: -201} {x: -32768, y: -32768, z: -32768}
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!
Awesome, thanks again!