Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Code.org Integration] Compass Calibration Placeholder #13

Merged

Conversation

epeach
Copy link
Contributor

@epeach epeach commented Feb 21, 2022

Part of the Code.org/micro:bit integration.

We would like to allow students to calibrate the compass from the board setup page (studio.code.org/maker/setup). We are asking for a compass calibration function to be surfaced to MBFirmataClient.js. I've mocked up what those function calls might looks like in this PR, but feel free to adjust the API as needed.

@JohnVidler JohnVidler self-assigned this Apr 21, 2022
@JohnVidler
Copy link
Collaborator

Thanks for doing the mock-up; I'm working on getting this added, along with a couple of other missing features of the V2, and will update this PR when its complete.

Added in call to calibrate the compass, and done some minor formatting.

Also added correct python version and javascript serial package information
@JohnVidler
Copy link
Collaborator

Ended up just merging the required changes for compass calibration, and this is now done at the start of the sensors test in mbTests.js

I'm currently on a Mac, and don't have any clients installed (or know of a relevant web client) to test this on, so feedback is required before merging this in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants