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.