Aspire to be an independent learner. Click here to learn how.
Bearings are a mathematical way of working our where we are in relation to where we want to go. Explorers, navigators, airline pilots, ship captains, drones, even GPS make use of bearings to help plot courses and track theirs and our own whereabouts.
Click the link to visit a page which explains how bearings work.
We've all been lost before. The code below will help you turn a MicroBit into a really simple digital compass to help you navigate your way back home again.
When you have finished your script, test it. You should demonstrate your working four-point compass to your teacher to show your progress.
Screenshot your working code and create a detailed write-up, explaining how it works, the function of the block-code and how you overcame any problems.
You will notice that this script has been adapted to ensure that there are no 'overlaps' between the bearing variables. This is good practice as overlaps cause confusion within the script and can result in buggy behaviour.
It's a bit laggy this compass isn't it?
Add a screenshot of your adjusted code to your initial write-up and explain how and why it has improved the script.
Am I pointing north or am I pointing west? Why is my compass so confused?
Explain the limitations of the initial four-point compass script. Add a screenshot of the adapted code to your write-up and explain your changes.
All that code is getting really bulky and confusing! Isn't there a simpler way to show which way we are pointing?
Your friend is waving at you from another hilltop but you don't know which hilltop and in which direction. It's possible to use a MicroBit to share each other's bearing and work out which way you need to point to be facing each other.
Add a screenshot of the adapted code to your write-up and explain your changes.