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
77 stars 62 forks source link

timestamp and failing to start #34

Closed yo90bosses closed 4 years ago

yo90bosses commented 4 years ago

the .getTimeStamp() funktion is giving me numbers between 8 and 20. i was expecting to get the time of the data since start in milliseconds. Is this an issue or do i not understand the number its giving me? another issue is im running the sensor over the SPI bus on an esp32 and if i try to start it to fast it failes to start. My code immediatly tries to start the BNO080 after it fails but it wont work unless i add a delay of 1.5s between tries. The reason i need this is because the sensor will only start after a second try.

chengdaqian commented 4 years ago

I'm running into the same problem. Do you have any idea on how to interpret this? I also just get "random" number between 10 and 30.

nseidle commented 4 years ago

Timestamp is described here and in the datasheet. It's the number of microseconds since the Cortex-M0 took the calculation and when you read it. This helps us align data, not to when it was read but when it was taken.

Not sure about the SPI + ESP32 issue. Library is working very well over SPI on Uno, Artemis, and Teensy for me.