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

NineDOF API #468

Merged
merged 14 commits into from
May 17, 2023
Merged

NineDOF API #468

merged 14 commits into from
May 17, 2023

Conversation

SheepSeb
Copy link
Contributor

@SheepSeb SheepSeb commented May 8, 2023

Pull Request Overview

This pull request adds:

  • a 9-DOF API similar to the libtock-c version. The API provides a function that simulates a synchronous read of the accelerometer, magnetometer and gyroscope, also functions to initiate a reading, register/unregister a listener, check for driver existence, calculate the magnitude of the accelerometer
  • an example app which samples the 9-DOF sensor every 700ms and prints the measured x,y,z for the accelerometer, magnetometer and gyroscope as well as the magnitude of the accelerometer
  • a fake NineDoF driver, for testing
  • unit tests for the fake driver and for the user space library

Testing Strategy

This PR was tested with the unit tests and by running the example app on a microbit v2 board

Documentation Updated

no updates are required

@SheepSeb SheepSeb changed the title Sebnae/ninedof NineDOF API May 8, 2023
Copy link
Collaborator

@jrvanwhy jrvanwhy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bors r+

@bors
Copy link
Contributor

bors bot commented May 17, 2023

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot merged commit 51660c6 into tock:master May 17, 2023
@SheepSeb SheepSeb deleted the sebnae/ninedof branch June 21, 2023 18:54
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