ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Arduino 101 (Intel Curie) - IMU rate is low

asked 2019-08-09 14:16:51 -0500

tuandl gravatar image

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!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-04-02 14:19:21 -0500

duck-development gravatar image

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/ArduinoCor...

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

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2019-08-09 14:16:51 -0500

Seen: 169 times

Last updated: Apr 02 '20