-
Sat 2019.06.29
Hi @user101436, just happen to have a Puck lying around, desperately waiting to do something useful. ;-)
Results of two separate tests, about 300 degrees each axis:
new min or max: 68 new min or max: 69 new min or max: 70 Button up Button down calibarion completed max: Vec3: { "x": -2493, "y": 2277, "z": 493 } min: Vec3: { "x": -3198, "y": 1564, "z": -1226 } Button up >
new min or max: 108 new min or max: 109 new min or max: 110 Button up Button down calibarion completed max: Vec3: { "x": -2654, "y": 2234, "z": 100 } min: Vec3: { "x": -3308, "y": 1540, "z": -1256 } Button up >
After giving this a whirl, and re-reading the objective in #1, I have to agree you are on to a pretty cool idea here. I really like the idea of inverting the Puck to get yet another feature.
Just a minute, . . . I have to get up, walk over to the telly, change the channel and turn down the volume!!
If it hasn't been thought of yet, put the Puck to sleep to save battery.
I have made some progress.
The following code calculates the min and max value for the mag x,y,z axis using Vec3 module. Can you test and show what you get on your puck. The to do at the end of the code shows my next steps.
To use hold down the button for 5 seconds then rotate the puck in all directions until you only see green flashes (no blue). Then press the button to end calibration. The min and max values are then logged on your debug screen.
| |_ ___ ___ _ ||___ ___
| |_ -| . | _| | | | | . |
||_| || |_|||_|_|
2v03 (c) 2018 G.Williams