Skip to content

Documentation of Compass Heading is not clear #6656

@martinwork

Description

@martinwork

Describe the bug
Arising from support ticket https://support.microbit.org/helpdesk/tickets/93700 (private)

Looking at https://makecode.microbit.org/reference/input/compass-heading

Different numbers mean north, east, south, and west

"... doesn't say which numbers mean what, or what the orientation of the board needs to be for this to work."

Or which dimension of the micro:bit is the way it's "facing".

"It would probably be helpful for students if that information was on the page, otherwise it isn't obvious unless you test it yourself."

When you run a program that in the simulator, click and drag the compass needle on the screen to change the compass heading.

The simulator micro:bit logo serves to set the heading, but I don't think it acts as a compass needle, pointing north. When set to 90, to simulate the micro:bit facing east, the logo pointer direction is south.

This program finds the compass heading and then shows a letter that means whether the micro:bit is facing north (N), south (S), east (E), or west (W).

The program used to show letters, but now shows arrows. The arrows can be mistaken for an attempt to simulate a compass needle pointing north. The first arrows version worked that way.. When micro:bit is facing east, the arrow points south. Maybe letters are easier to understand?

Every time you start to use the compass (for example, if you have just turned the micro:bit on), the micro:bit will start a calibrate compass (adjust itself)

Currently, calibration is automatic only after a full flash.

Looking at https://makecode.microbit.org/device

Does the compass make it possible to detect the direction it is moving in? It could be facing north and moving southeast. I guess the magnetometer could be used to monitor movement near to a local magnetic field?

Looking at https://makecode.microbit.org/projects/compass

During calibration, the micro:bit should be held flat then smoothly tilted around it's centre, not shaken as in the video on this page.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions