Ask Your Question
0

Increase output frequency of pixhawk using mavros [closed]

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

Tirgo gravatar image

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

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
1

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

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 imageTirgo ( 2015-07-15 07:55:31 -0600 )edit

Good. Please mark question as answered.

vooon gravatar imagevooon ( 2015-07-15 09:00:25 -0600 )edit

Question Tools

2 followers

Stats

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

Seen: 1,492 times

Last updated: Jul 12 '15