# GPS spoofing with jMAVsim / QGroundControl

**URL:** <https://discuss.px4.io/t/gps-spoofing-with-jmavsim-qgroundcontrol/23486>\
**Category:** PX4 Autopilot\
**Created:** [July 27, 2021, 8:12pm UTC](https://discuss.px4.io/t/gps-spoofing-with-jmavsim-qgroundcontrol/23486 "2021-07-27T20:12:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Glad](https://discuss.px4.io/user_avatar/discuss.px4.io/glad/32/9130_2.png) [@Glad](https://discuss.px4.io/u/Glad)\
**Post date:** [July 27, 2021, 8:12pm UTC](https://discuss.px4.io/t/gps-spoofing-with-jmavsim-qgroundcontrol/23486/1 "2021-07-27T20:12:27Z")

</div>

I’m trying to introduce spoofed GPS signals to a drone (SITL) for research purposes. I’ve found a few forum posts on it, but nothing goes into detail. Would it be possible to change the GPS-lat and GPS-lon values in PX4-Autopilot/src/examples/fake\_gps and have it be spoofed that way?

If not, is there a better way to do it using a program / software? I’m new to this so not sure where to start.
