Increase IMU sampling rate [logging rate]

I’m using Pixhawk with PX4. I’m looking for a way to increase the IMU sampling rate so that I can get better data in the log files.

I couldn’t find any way to do this, especially using only the Pixhawk.

Do you mean sensor sampling rate or sdlog2 logging rate?

I’m not exactly sure, but ultimately I want to increase the logging rate, yes!

I’m guessing the sensor sampling rate may be higher than the logging rate right now.

You could use replay logging mode, it should log your IMU at 500 Hz.
http://dev.px4.io/ekf2_log_replay.html

@CarlOlsson I want to know what is the sampling rate of sensor like IMU.

You could check it in QGC Mavlink Console while the vehicle is connected to it, just type:

listener vehicle_imu_status

and check accel_rate_hz and gyro_rate_hz