# Setting up GPS inject, guided mode stopped working

**URL:** <https://discuss.bluerobotics.com/t/setting-up-gps-inject-guided-mode-stopped-working/23113>\
**Category:** General Discussion\
**Tags:** ardusub, pymavlink\
**Created:** [June 5, 2026, 2:42pm UTC](https://discuss.bluerobotics.com/t/setting-up-gps-inject-guided-mode-stopped-working/23113 "2026-06-05T14:42:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheRealPope](https://avatars.discourse-cdn.com/v4/letter/t/3e96dc/32.png) [@TheRealPope](https://discuss.bluerobotics.com/u/TheRealPope)\
**Post date:** [June 5, 2026, 2:42pm UTC](https://discuss.bluerobotics.com/t/setting-up-gps-inject-guided-mode-stopped-working/23113/1 "2026-06-05T14:42:44Z")

</div>

I am running ArduSub on a pixhawk 6c pro and want to inject the GPS signal via usb (pymavlink). The problem is that when i try to gps inject the pixhawk does not want to switch into guided mode saying guided mode requires position (same goes for auto). When connected with mission planner i see that the gps position i send to the pixhawk is being received (it correctly places the device on the map). The EKF is white, so presumably healthy. I have made the setup work with an external gps (connected to GPS1) so the only change i have done is to have the gps be injected instead (changing GPS1\_type to 14).

My python script is using the gps\_input\_send command and is running that at around 5Hz. How should i set it up to work? What commands do i need to send over mavlink to get the gps set up correctly. Do I need to set EKF origin? Are there any guides/ videos for how to set this up? Anyone know what seems to be the problem?

Any help would be greatly appreciated. Thx in advance.

---

<div class="post-metadata">

**Author:** ![tony-white](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/tony-white/32/13297_2.png) [@tony-white](https://discuss.bluerobotics.com/u/tony-white)\
**Post date:** [June 5, 2026, 11:15pm UTC](https://discuss.bluerobotics.com/t/setting-up-gps-inject-guided-mode-stopped-working/23113/2 "2026-06-05T23:15:19Z")

</div>

Hi @TheRealPope -

Welcome to the forums!

Try sending the GPS injections at 10hz, that may get things working!
