Open this page at https://mintgenie.github.io/drive-by-compass/
Here is the OrientBit - used to change the orientation of MicroBit on certain Robots so that the built-in Compass can be used.
Use as Extension
This repository can be added as an extension in MakeCode.
- open https://makecode.microbit.org/
- click on New Project
- click on Extensions under the gearwheel menu
- search for https://github.com/mintgenie/drive-by-compass-try and import
Edit this project
To edit this repository in MakeCode.
- open https://makecode.microbit.org/
- click on Import then click on Import URL
- paste https://github.com/mintgenie/drive-by-compass and click import
The Course_correct block is used for driving in the direction of a particular heading angle. This heading angle has to be passed as parameter to “preferred_heading”. The Course_correct block returns an array of speeds for the left motor and right motor. Assign the value of array[0] to left motor and value of array[1] to right motor.
THe available functions are shown below:
and
Blocks preview
This image shows the blocks code from the last commit in master. This image may take a few minutes to refresh.
Metadata (used for search, rendering)
- for PXT/microbit