Increase the data rate for IMU for pixhawk cube orange

Hello
I have a Pixhawk cube orange plus, I want to conduct a test where I would need only the gyro and the accelerometer data so only the IMU data, I am recording the data on a SD card

I am only able to record the data at a rate of 50 hertz

I want to be able to record the data at 500hertz or 1kilo hertz

I am using mission planner and using 4.5.7 Firmware version

Please help

If you log RAW_IMU data you can get it faster than that. Have you looked at INS_RAW_LOG_OPT ?

IMU_RAW_OPTIONS sorry i am not able to find that in the parameter list

did you mean INS_RAW_LOG_OPT: |0|Log primary gyro only|
| — | — |
|1|Log all gyros|
|2|Post filter|
|3|Pre and post filter|

yeah i have tried that

i should put to record all gyro right?

Yes, I corrected the post above. That should get you very fast GYRO data.

I tried that it is only giving my gyro data and not the accelrometer data
i want both?

Then change the source code or usebatch logging. But batch logging is not continuous