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

Increase output frequency of pixhawk using mavros [closed]

asked 2015-07-10 06:07:31 -0500

Tirgo gravatar image

updated 2015-07-10 06:08:06 -0500

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.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Tirgo
close date 2015-07-15 12:31:33.261147

1 Answer

Sort by ยป oldest newest most voted
2

answered 2015-07-12 03:22:56 -0500

vooon gravatar image

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)

edit flag offensive delete link more

Comments

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

Tirgo gravatar image Tirgo  ( 2015-07-15 07:55:31 -0500 )edit

Good. Please mark question as answered.

vooon gravatar image vooon  ( 2015-07-15 09:00:25 -0500 )edit

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

hesham gravatar image hesham  ( 2021-08-04 06:18:34 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2015-07-10 06:07:31 -0500

Seen: 2,953 times

Last updated: Jul 12 '15