How to customize the control instructions of sitl

After an actual flight test, I got the flight log from the SD card. I want to use control commands (such as rc signals) in the sitl to test how close the gazebo simulation is to the real system. How can I modify the px4?