• Connect your Pixhawk/Flight controller to the Mission Planner
• Go to the CONFIG/TUNING | Standard Params screen and set the Log bitmask to Default+IMU. This will enable the capture of the accelerometer data to the dataflash logs.
• Press the Write Params button