Magnetometer compass heading how?

I am trying to build a compass app using sprite and canvas, but I cannot find the get heading to function in the magnetometer. Please help.

Good question. I don’t see a way to get the Function blocks shown in the documentation. Hopefully someone else will have an idea.

i tried it with these blocks and i even added the compass needle (compass image set as a sprite spinning at center) but it’s erratic - it SEEMS to point to magnetic north but it’s off by about 5 degrees. there must be something else i’m missing.

here’s the project:
https://x.thunkable.com/copy/16b755f12292e95a1b883492aea8f20d

and here are the only blocks
image

1 Like

Where did you find the call Magnetometer's Heading block? That’s what I couldn’t seem to find.

Oh… I’m guessing those are part of the Canvas?

actually i found it in Components! it currently shows Call Screen (or something else) but the dropdown reveals all the other options!)

2 Likes

Ah, I see now… a bit hidden:

1 Like

thank you, found it :slightly_smiling_face:

1 Like