You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Correct me if i'm wrong but i think that the values you get from any sensor offet registers (LSB +MSB) are representing a signed value and not unsigned. So it should be int16_t and not uint16_t in the adafruit_bno055_offsets_t
Looking at the BNO055 datasheet it is mentionned that values can be negatives !
The text was updated successfully, but these errors were encountered:
pmancele
changed the title
The andafruit_bno055_offsets_t should be signed and not unsigned !
The adafruit_bno055_offsets_t should be signed and not unsigned values !
Jun 5, 2017
pmancele
changed the title
The adafruit_bno055_offsets_t should be signed and not unsigned values !
The adafruit_bno055_offsets_t should be signed and not unsigned values
Jun 5, 2017
I agree with pmancele, they should all be signed 16-bit integers. The documentation states that these are +/- offset values. If we interpret this as an unsigned int then we can't have negative values. Changing them to int16_t corrected my offsets to numbers that made sense instead of huge values that were out of the given range.
In the data sheet see tables 3-16, 3-21, and 3-24 for accel, gyro, and radius offset ranges. Also, the paragraph in the middle of page 32 lists the magnetometer offset ranges, its not provided in a tabular format since it doesn't vary.
Correct me if i'm wrong but i think that the values you get from any sensor offet registers (LSB +MSB) are representing a signed value and not unsigned. So it should be
int16_t
and notuint16_t
in theadafruit_bno055_offsets_t
Looking at the BNO055 datasheet it is mentionned that values can be negatives !
The text was updated successfully, but these errors were encountered: