You are reading a single comment by @user89458 and its replies. Click here to read the full conversation.
  • 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 x=0;
    var y=0;
    var z=0;
    var f;

    var zero = Puck.mag();

    f = Puck.mag();
    x = f.x - zero.x;
    y = f.y - zero.y;
    z = f.z - zero.z;


Avatar for user89458 @user89458 started