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.
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