Hello guys, i’m trying to connect 2 F9P gps with their uart2, and connected only one of them via their uart1 to the flight controller to save uarts on the fc
Why you want to save uarts on the FC?
Which moving baseline wiki you followed?
You defined a GPS2 to your FC but this could not be seen from FC if their is no direct link between FC and GPS.
The connection between GPS1 and GPS2 on their UART2 is just to exchange RTCM data between the GPS itself but is not transfered to the FC.
So I would first recommend to use the standard setup as shown here under " Dual Serial F9P GPS"
Obviously this means you’d have to buy a new bit of kit but it achieves exactly what you’re looking to do, with a single port connection to the flight controller. I have used this unit in the past and it was easy to setup and gave good accuracy for my application.
I understand that this doesn’t solve your problem with your existing hardware - I just thought I’d provide this as an option as it worked well for me in the past, with the added benefit of a reduction in weight and size over two individual F9P units.
Yes, it’s possible to use two F9Ps the way you suggest. Have a look at this configuration by ArduSimple. I am not inclined to support this beyond simply showing you that it’s possible - it’s a potentially very frustrating endeavor. But it is possible.
You don’t need any extra hardware. But one of the Unicore based modules might make things easier if you struggle to succeed using your current hardware.
You will only see one gps present, like you’re seeing. You should see RTK reported. The only thing that you can’t do from the autopilot is make sure that you’ve configured the MB Base to emit RTCM over whatever UART you’re connecting with. The MB Rover (recipient of the RTCM corrections) will expect RTCM on it’s UART2 and connected to the FC over UART1.
These are my params. You will need to change the xyz for your setup. Note, GPS2 type is set to auto (since there’s nothing connected but you need to be able to specify the position of the second antenna).
i tried your solution, and so far ive received rtcm on the gps1 (rover), and the status could reach rtk fixed.
however the ardupilot will still search for the missing gps2 on loiter mode.. and if i change the gps2_type = 0, it will says needs postion estimate instead
You will never see GPS 2 because the flight controller has no idea that there is a second GPS. In the configuration you’re going for, there’s one GPS that happens to provide an rtk solution.
There are health checks that are performed on the rtk solution that may prevent GPS yaw from being published, one of those is that you generally don’t get a good heading when you are stuck in rtk float. There are ways to relax those constraints and there may be other issues. If you’re at the point where you can’t get into rtk fixed, then you have an antenna or antenna cable problem. Or a bad view of the sky.
Those are separate issues from the flight controller deciding to reject the rtk solution for use in yaw.
Edit: with the flight controller configured the way it worked in the picture, post a log disarmed bin and will make sure that your antenna arrangement is happy