After an actual flight, I obtained the control command signal of rc from the SD card. How to apply this control signal to the sitl simulation of px4? I want to compare the difference between simulation and actual flight
If you have the ulog available you can replay the mission in simulation https://docs.px4.io/master/en/debug/system_wide_replay.html
You can also upload the log to PX4 Flight Review
https://logs.px4.io/
If you want to control the vehicle trough code your best option is to use the MAVSDK
My idea is to compare simulation and actual flight output (such as output attitude angle) under the same input (such as the reference Euler angle in attitude mode). So, after an actual flight test, I got the flight log from the SD card. I want to use the control command (such as rc signal) in the sitl to test how close the gazebo simulation is to the real system. Can MAVSDK help me achieve this? That is to say, use the attitude command of the log file to control the aircraft.
I really don’t understand why you want to replicate the in simulation and compare to the real test flight, and also don’t understand why you want to use RC inputs.
The MAVSDK allows you to control the drone in Offboard mode, you can use velocity controls which are way better than RC inputs
Did you find any way to do this?