-
Notifications
You must be signed in to change notification settings - Fork 4
Switch to LSM9D1 on new carrier #6
Conversation
@@ -248,27 +255,35 @@ int analogReadAverage(int pin, int numberOfSamples) { | |||
} | |||
|
|||
void updateSubscribedIMUCharacteristics() { | |||
|
|||
imu.read(); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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!
There was a problem hiding this comment.
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.
No description provided.