PX4 Sitl GPS Source

i want to disable GPS of px4 sitl and send gps commands with mavsdk.
Can anyone help me for doing this task.

Can you give a bit more context of why and what you’re trying to do?

i have a real gps module which is ( Holybro M10 standard GPS)and i want to send its information to px4 sitl.

I see. You could disable the gpssim module and instead start the normal gps module and try to point it to the computer’s serial port.

can you explain more about how i can do this thanks.

Disable gpssim:

Looks like this was renamed and also has a param now to disable it:

Enable gps module:

In pxh>, try gps start and maybe add some arguments as required.