The Puck.onMag function returns an orientation about once per second. Is it possible to speed that up somehow? I can get faster readings by repeatedly calling Puck.mag(), so it's possible. (Although if I ask for too many, too fast the program crashes.) That said, I would prefer the event-based polling. Is there a time constant somewhere that could be changed?
Here is the code that generates the overflow, btw.
var zero = Puck.mag();
f = Puck.mag();
x = f.x - zero.x;
y = f.y - zero.y;
z = f.z - zero.z;
© Espruino, powered by microcosm.
Report a problem