-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sensor update time is slow #1
Comments
Sending the values over the Serial will take some time, so this will be slowing you down. You may get the speed you need without these (presumably) debug comms. |
In that case, how is the proper way to log the sensor data to my PC? |
Ah I didnt realise that was your requirement. The BNO055 says you can sample at 100Hz using the internal oscillator for the IMU, but only 20Hz for the Magnetometer using 9DOF mode: https://cdn-shop.adafruit.com/datasheets/BST_BNO055_DS000_12.pdf see 3.6.3 I'll get back to looking at this soon |
I need to get all sensor values (Gyro, Accelerometer, Magnetometer, Euler, and Quaternion) at the highest update rate possible (100Hz). But, everytime I called the updateGyro(), updateAccel() and so on, it takes more than 10ms, thus I couldn't reach the 100 Hz, especially because I need to send those data through Serial port.
I update all sensor values inside the loop() in the Arduino sketch, and I simply print all the values to Serial comm using Serial.print(). Is there any good way to do this and to get 100 Hz rate?
The text was updated successfully, but these errors were encountered: