Raspberry pi with rtklib plus pixhawk

Q&A forumCategory: QuestionsRaspberry pi with rtklib plus pixhawk
Suraj Bijjahalli asked 4 weeks ago

Hello,
I have a pixhawk based quadcopter with a Rpi mounted on board.  
I am interested in using the zed f9p for logging data to rpi in ubx format ( using str2str) during flight so that i can use it with rtklib for post-processing.
Simultaneously i would also like to use the same receiver as 2nd external gps for the pixhawk ( through the GPS2 port on pixhawk).
Is this possible? Does the receiver need to be configured to output ubx and nmea ( if pixhawk requires nmea ?) 
Is there a risk of frying the board by making simultaneous connections like this?

Ardusimple Staff replied 4 weeks ago

The only difficulty is that both Pixhawk adapter and Raspberry Pi are connected to the same port UART1 of zed-f9p.
The best alternative is if you connect UART2 to your Pixhawk, and keep UART1 for your Pixhawk. But you will need to do some wiring.

suraj.bijjahalli replied 4 weeks ago

Thank you very much for your reply.
I understand and I definitely want to do what you have suggested since I will be able to simply mount the board as an Rpi shield. However, I am trying to quickly set up an experiment, so as a short term sub-optimal solution, could I keep the pixhawk connected to the jst-gh adapter which connects to uart1 and simply connect the USB-GPS port to Raspberry pi via a cable?
This wont be the most clever solution, but would it work? and is it safe to connect this way?

suraj.bijjahalli replied 4 weeks ago

Just to clarify, I mean could the RTK2B be used just as a separate board (Not mounted as a shield) with only usb connection to Rpi and UART1 connection to pixhawk?

Ardusimple Staff replied 4 weeks ago

Sure that’s also a possibility

1 Answers
suraj.bijjahalli answered 4 weeks ago

Thank you very much for your reply.
I understand and I definitely want to do what you have suggested since I will be able to simply mount the board as an Rpi shield. However, I am trying to quickly set up an experiment, so as a short term sub-optimal solution, could I keep the pixhawk connected to the jst-gh adapter which connects to uart1 and simply connect the USB-GPS port to Raspberry pi via a cable?
This wont be the most clever solution, but would it work? and is it safe to connect this way?

Ardusimple Staff replied 2 weeks ago

It’s also possible.