Skip to content

gomakekit/Airbit-compass

Repository files navigation

Note from MakeKit

This is an attempt to create an auto-correction of the Yaw-movement on the Air:bit drone. The compass heading is compared to a desired compass heading, then the difference is being multiplied with a proportional (PID) number and set to Yaw.

  • Challenge: The compass heading block uses the accelerometer in it´s equation. The accellerometer will give erradical numbers when motors are spinning. Therefore, these numbers needs to be smoothed with a low pass filter.

The low pass filter and the compassCorrectionFactor needs to be adjusted.

As time of writing (August 2020), the algorithm is not working

Open this page at https://gomakekit.github.io/airbit-compass/

Use as Extension

This repository can be added as an extension in MakeCode.

Edit this project Build status badge

To edit this repository in MakeCode.

Blocks preview

This image shows the blocks code from the last commit in master. This image may take a few minutes to refresh.

A rendered view of the blocks

Metadata (used for search, rendering)

  • for PXT/microbit
<script src="https://makecode.com/gh-pages-embed.js"></script><script>makeCodeRender("{{ site.makecode.home_url }}", "{{ site.github.owner_name }}/{{ site.github.repository_name }}");</script>

About

A MakeCode project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages