Log the data of IMU and PWM values

Hi

  I am using Pixhawk 4 mini px4 the log which is generated in the SD card is with 50HZ but for my experiment I need the raw data which the Pixhawk generates when its flying to rotate the motor and the IMU values how can I do this please help me

Thanks in advance