I’m trying to simulate GPS spoofing for the SITL and it doesn’t work as intended. It looks possible if you are looking at the data from this site https://ieee-dataport.org/open-access/uav-attack-dataset.
What I’m have done is disable GPS(SIM_GPS_BLOCK=1) and sent the GPS msg to the hil_gps.
But the drone gets some errors in the compas or other sensors.
I use the newest stable release for the PX4
So my question is:
(1) Can I do it in a different way?
(2) Is the way I’m doing it the only way?