Microsoft MakeCode

Micro:bit heading direction

Hello,
I am using the DFRobot Maqueen kit where the micro:bit is mounted vertically. I wanted to use the accelerometer and/or magnetometer to traverse a map or draw a path, for example. Start pointing towards North and then move 15 cms, turn 45 degrees to the left/west and so…
I noticed that the compass heading cannot be used effectively to find the orientation when mounted vertically. Is there an alternative method using “magnetic force uT” block
Warm regards
MINT Genie