# How to increase sample rare of the IMU (/mavros/imu/data)

**URL:** <https://discuss.px4.io/t/how-to-increase-sample-rare-of-the-imu-mavros-imu-data/30607>\
**Category:** ROS 1 / ROS 2\
**Created:** [January 30, 2023, 4:08am UTC](https://discuss.px4.io/t/how-to-increase-sample-rare-of-the-imu-mavros-imu-data/30607 "2023-01-30T04:08:19Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![AlexWUrobot](https://discuss.px4.io/user_avatar/discuss.px4.io/alexwurobot/32/11387_2.png) [@AlexWUrobot](https://discuss.px4.io/u/AlexWUrobot)\
**Post date:** [June 1, 2023, 11:16pm UTC](https://discuss.px4.io/t/how-to-increase-sample-rare-of-the-imu-mavros-imu-data/30607/3 "2023-06-01T23:16:02Z")

</div>

Please check the baud rate, according to this post

> [@How to adjust the sample rate of distance sensor (rangefinder)](https://discuss.px4.io/t/how-to-adjust-the-sample-rate-of-distance-sensor-rangefinder/30575/15):
>
> There is the solution !!! To increase the sampling The SER\_TEL2\_BAUD need to be increased. (which was 115200) The MAV\_1\_RATE need to be increased.(which was 0) PX4-autopilot automatically [half-size the data](https://docs.px4.io/v1.11/en/peripherals/mavlink_peripherals.html), if the communication is too low. P.S. In a serial communication system, the data rate is measured in bits per second (baud rate). However, it’s important to note that a byte consists of 8 bits. At a baud rate of 921,600, the maximum …

Because the baud rate in QGroundcontrol will limit the sampling rate of sensors.  
The default sampling of IMU should be 50 Hz

---

_[View the full topic](https://discuss.px4.io/t/how-to-increase-sample-rare-of-the-imu-mavros-imu-data/30607)._
