IMU stream rate fixed at 10Hz (PX4)
-
Hello,
I'm using an IMU with PX4 firmware. I attempted to change the stream rate of the IMU data to at least 50Hz, instead of the default 10Hz. However, when I use rosservice /mavros/set_stream_rate or rosservice /mavros/set_message_interval, there is no change.
Could this be related to MPA, PX4, or another factor?
Thanks in advance. -
@Judoor-0 What flight controller are you running this on?
-
@Eric-Katzfey I'm using integrated IMU with VOXL2
-
@Judoor-0 I'm not sure what those mavros commands are trying to do. But you can change the rate at which mavlink messages are streamed out of PX4. Take a look at the PX4 startup file
/usr/bin/voxl-px4-start
and look for the lines like:mavlink stream -u 14556 -s HIGHRES_IMU -r 10
. Adding lines like that or modifying the existing ones can change the rates.