Dataflash logs sampling rate

Hello,

I am still new with arducopter so please bare with me. I would like to increase the sampling rate of the dataflash logs, more specifically for attitudes, position, velocity, and rpm. Is their a way to do that, through modifying the script? Since I am new to the firmware and drone world, this will be very challenging, so i would appreciate some guidance on how to achieve that or reference for a documentation will be also helpful.

My current setup:

  • Pixhawk 6X-bdshot
  • F55A Pro iii ESC (BLHeli32 firmware)
  • ArduCopter V4.5.6 (7ce11b41) - QUAD/X

You may want to take a look at this section of the documentation, especially regarding the IMU logging rate.
raw-imu-logging

common-imu-batchsampling

Please consider this parameter also:

Samples are typically taken at the same rate as gyro updates provided to the autopilot. For example if you are using INS_FAST_SAMPLE on an MPU9250 sensor (fairly typical on modern Pixhawk class autopilots) then samples will be take at 8KHz, but averaged and downsampled to 1KHz. If you are not using an autopilot with fast sampling capability, then the sample rate is 1KHz