Robotics StackExchange | Archived questions

Increase output frequency of pixhawk using mavros

Hello,

i wonder if someone is familiar with the pixhawk. I am currently using it together with the mavros package. The imu data i get are published with ~100Hz. Can someone tell me how i can increase the published sensor data of the pixhawk?

Thx for your help.

Asked by Tirgo on 2015-07-10 06:07:31 UTC

Comments

Answers

That depends on which firmware you use.

APM

rosrun mavros mavsys rate --raw-sensors 10 --ext-status 10

(try different rates, also may be useful --all)

PX4

Edit extras.txt on SD, add this:

mavlink stream -d /dev/ttyACM0 -s ATTITUDE -r 200
mavlink stream -d /dev/ttyACM0 -s HIGHRES_IMU -r 200

(-d parameter depends on used port)

Asked by vooon on 2015-07-12 03:22:56 UTC

Comments

Thx. I had to increase the baudrate, but then it works.

Asked by Tirgo on 2015-07-15 07:55:31 UTC

Good. Please mark question as answered.

Asked by vooon on 2015-07-15 09:00:25 UTC

I need to increase the IMU data on Ardupilot Stack hence I tried the comand ''' rosrun mavros mavsys rate --raw-sensors 500 --ext-status 500 ''' and even with ''' -a ''' but I get maximized change to 180. How can I remove the limitation on the maximum rate

by the way, I included the following in /etc/extras.txt on the sd card:

mavlink stream -d /dev/ttyACM0 -s ATTITUDE -r 100 mavlink stream -d /dev/ttyACM0 -s ATTITUDE_QUATERNION -r 100 mavlink stream -d /dev/ttyACM0 -s HIGHERS_IMU -r 100

but also nothing changed

Asked by hesham on 2021-08-04 06:18:34 UTC