RobinSummerhill
Member since May 2020 • Last active Jun 2020Most recent activity
-
- 5 comments
- 1,091 views
-
I have a couple of original pucks. What is the latest version of the firmware I can use with them? I upgraded to v2.0.5 and was seeing some weird behaviour with the magnetometer.
With this code to log the x,y,z values:
Puck.on('mag', function(xyz) { console.log(xyz); }); Puck.magOn();
I get crazy values that jump all over the place with 2v05:
{ "x": -515, "y": -515, "z": -515 } { "x": -9, "y": -2057, "z": -2057 } { "x": -129, "y": 32639, "z": 32639 } { "x": 0, "y": 3071, "z": -1 } { "x": -258, "y": -258, "z": -258 } { "x": -129, "y": 32639, "z": 32639 } { "x": 0, "y": 3071, "z": -1 }
The same code on 1v95 give sensible readings:
{ "x": -3165, "y": 757, "z": -3567 } { "x": -3172, "y": 759, "z": -3571 } { "x": -3177, "y": 761, "z": -3566 } { "x": -3176, "y": 762, "z": -3567 }
Thanks for the fast reply, Gordon.
For a moment I thought the 1v and 2v in the firmware version number might relate to v1 and v2 puck support.
Robin