sparkfun / SparkFun_BNO080_Arduino_Library

An Arduino Library for the BNO080 IMU combination triple axis accelerometer/gyro/magnetometer packaged with an ARM Cortex M0+ running powerful algorithms.
Other
81 stars 62 forks source link

float accuracy values for other quantities than quaternions #66

Closed jerabaul29 closed 3 years ago

jerabaul29 commented 3 years ago

I like very much that the quaternion data can produce a detailed accuracy value in addition to the quality flag:

byte quat_accuracy = bno080_imu.getQuatAccuracy();
float quat_radian_accuracry = bno080_imu.getQuatRadianAccuracy();

I only find documented the quality flag, not detailed float value, for the other components (acceleration, gyro, magnetometer). Any way to access detailed float value uncertainties on these too / if not, is this something that can be added, or is it just not produced by the IMU?

PaulZC commented 3 years ago

Hi JR, Please see my reply in #67. If the data sheet suggests such accuracy figures are available, and which the library does not currently make available, please raise a “Feature Request “ issue and we will look at it as soon as we can. Best wishes, Paul

jerabaul29 commented 3 years ago

I agree with you, I cannot find much. I wonder if it is possible that the datasheet is not very complete.

The thing that makes me think such data may be available is that:

No idea if / how this could be accessed though, but probably the manufacturer of the firmware could say something more (?). I just got good hopes due to the Quaternion uncertainty data being available.

PaulZC commented 3 years ago

Hi JR, Looking at the "SH-2 Reference Manual", I only see true "Accuracy Estimates" for:

and we do already extract rawQuatRadianAccuracy from all three.

The "accuracy" or "status" byte for the accel, gyro and mag is:

image

There does not appear to be an equivalent 16-bit value for those.

Sorry - that's the best we can do! Paul

jerabaul29 commented 3 years ago

Ok, thanks :) .

Maybe I could take contact with Hillcrest Labs directly and ask them if there is more than what is in the datasheet. Do you have a contact address that you would recommend that I use? I could put you in copy if you want :) .