Hey, I’m working with SITL simulator and I’m trying to inject GPS data to the simulator with another simulator that I developed. The simulator sends periodically HIL_GPS + HEARTBEAT messages through MAVLINK protocol through TCP port that the SITL is binding.
I can see that the messages are being sent properly, however only if I set the GPS_TYPE to 14 it changes the location in the GLOBAL_POSITION_INT.
I tried already to switch to GPS_AUTO_SWITCH 1, and GPS_TYPE2 to 14.
I need AP params to remain:
GPS_AUTO_SWITCH 1
GPS_TYPE 2
GPS_TYPE2 14
It works only if I set the GPS_TYPE to 14.
But it still didn’t work, any ideas how can I inject those coordinates?
Thank you for your help.
