Connecting and configuring external GPS

I didn’t get GNSS antenna with Navio2 so I plan to use my other Ublox New M8N GPS receiver+Compass module.

I believe, I got to connect the GPS and Compass cables to Serial and I2C ports respectively on Navio2.

How do I configure it in “/etc/default/arducopter”?
Please see if the following is correct!

TELEM1="-A udp:127.0.0.1:14550"
#TELEM2="-C /dev/ttyAMA0"
GPS="-B /dev/ttyAMA0"

# Options to pass to ArduPilot
ARDUPILOT_OPTS="$TELEM1 $TELEM2 $GPS"

Hello,

Good guess for wiring,

Pay a little attention to the etc/default/arducopter settings:

TELEM1 is the address of your computer when Pi wifi is connected to your network.

So you will have something as TELEM1= “-A udp:192.168.1.1:14550”

TELEM2 will be your external GPS. It will be -E

TELEM2=“-E /dev/ttyAMA0”

You can have a TELEM3=“-C /dev/tty/USB0” if you have USB telemetry

Option to pass to Ardupilot is:

ARDUPILOT_OPTS=“$TELEM1 $TELEM2”

When you have your new Navio2 GPS Antenna, you can use the two GPS without change of TELEM settings.

-E is the flag for External GPS, no need to define -B for Internal GPS.

When connected to mission planner (or QGroundControl) you have to set GPS2 parameters.

Marc

Hi Marc,

Thanks for the detailed explanation, it’s crystal clear now :slight_smile:

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.