Arduino 101 (Intel Curie) - IMU rate is low
I am trying to get the IMU measurement from an arduino 101. Even though I am already set the acceleration and gyro rate to 200:
CurieIMU.setGyroRate(200);
CurieIMU.setAccelerometerRate(200);
and set the baud rate to 500000, I can only get the IMU output rate around 40 Hz on the host PC running rosserial_python. I directly publish imu messages from the arduino.
I wonder if anyone has encountered this problem before and how to fix it? Thanks in advance!
Asked by tuandl on 2019-08-09 14:16:51 UTC
Answers
if you look at the
// supported values: 25, 50, 100, 200, 400, 800, 1600, 3200 (Hz)
int getGyroRate();
void setGyroRate(int rate);
// supported values: 12.5, 25, 50, 100, 200, 400, 800, 1600 (Hz)
float getAccelerometerRate();
void setAccelerometerRate(float rate);
https://github.com/arduino/ArduinoCore-arc32/blob/master/libraries/CurieIMU/src/CurieIMU.h
you main loop is may to slow. if you set the rate to 25 is it then 25? or still 40?
is it possible to get you fool loop may isee something
the questen how fast the nh.spinOnce();
is executed
greet Anton
Asked by duck-development on 2020-04-02 14:19:21 UTC
Comments