Skip to content
This repository was archived by the owner on Oct 4, 2021. It is now read-only.

Switch to LSM9D1 on new carrier #6

Merged
merged 7 commits into from
Mar 13, 2019
Merged

Switch to LSM9D1 on new carrier #6

merged 7 commits into from
Mar 13, 2019

Conversation

facchinm
Copy link
Contributor

No description provided.

@@ -248,27 +255,35 @@ int analogReadAverage(int pin, int numberOfSamples) {
}

void updateSubscribedIMUCharacteristics() {

imu.read();
Copy link
Contributor

Choose a reason for hiding this comment

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

@facchinm is this throttled to wait for a new sample?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nope, should we throttle it?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes!

The MKRIMU lib call's to available() return the data at 10 Hz (from what I remember). This has two purposes, limited BLE bandwidth and reduces the load on the mobile phone app.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It makes sense; @agdl can you take a look at this maybe?

Copy link
Member

Choose a reason for hiding this comment

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

Look at last commit and let me know if this is ok!

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can do better and look at the datasheet of the part ... and see if the Adafruit lib is using it properly.

@facchinm facchinm merged commit 91dd1dd into master Mar 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants