Documentation

/NGOS

/Signals

/Shells

/Cmds

/Ctrl

/HALs

/Configs

/Params

/Behaviors

/Receiver

/GPS

Next Chapter

The NG GPS Support

Introduction

The NG supports all sorts of different GPS receivers. Any 3.3V powered GPS receiver supporting the NMEA protocoll, a serial port and 4-5Hz or more update rate should do.

Proven GPS Modules

Venus GPS with SMA Connector

The Sparkfun Venus GPS is used by several NG developers.

width=188 height=188

The module can be configured to an amazingly powerful 10Hz update rate, with 14 channel tracking! 28mA operating current, and high sensitivity, this receiver seriously opens new doors for tracking. Module outputs the standard NMEA-0183 or SkyTraq Binary sentences at a default rate of 9600bps (adjustable to 115200bps).

Venus GPS Logger with SMA Connector

The Sparkfun Venus GPS Logger is similar to the above Venus GPS but contains als a 2MB storage for GPS Logging capabilities. It's also used by several NG developers.

width=188 height=188

The module can be configured to an amazingly powerful 10Hz update rate, with 14 channel tracking! 28mA operating current, and high sensitivity, this receiver seriously opens new doors for tracking. Module outputs the standard NMEA-0183 or SkyTraq Binary sentences at a default rate of 9600bps (adjustable to 115200bps).

Cabeling

How to connect your GPS

The GPS gets connected to the serial port of the SB-Controller using the Molex connector on the NG sensor board.

Configuring your GPS for the NG

Configuring a Sparkfun Venus GPS Logger Module

Start the GPS Viewer Software under Windows and connect to the COM port where you Venus GPS is attached.

Go to the Binary-Menu of the GPS Viewer Software. There configure the following:

{i} Make sure that you kicl on the AGPS Download menu point in the AGPS menu which will download the current ephemeris data using FTP and then flash it to your Venus GPS.

Configuring GPS support on the NG

How to configure the baud rate

You can configure the baud rate on the SB-Controller using it's shell.

{i} Note: The SB-Controller is a 3.3V device!

Checking and setting the SB-Controller terminal baud rate:

How to configure the global settings

Make sure you activate the hardware data aquisition drivers in the global parameters. To do GPS navigation you will need to activate NGPP, GPS and the Compass as it has been done it the following settings:

The above will make sure, your NG will fetch the necessary data from the attached peripherial CPUs and provide them to the NG controllers.

How to configure the controller settings

To get a controller to use the compass and GPS data in it's closed-loop, you also have to activate their usage in the controller dependent parameters:

How to check the GPS gets recognized

When the GPS gets recognized by your NG it will create a device table entry for it. You can check if the GPS got recognized like this:

How to configure behaviors rules GPS

There are several behavior actions related to GPS navigation:

Elementary behavior configuration for position hold (PH) consists of two simple behavior rules to activate and deactivate position hold when (for example) pot2 gets triggered:

Checking GPS data

How to check your NG's current position

You can check your NG's current position with the print position command:

How to check your NG's current date and time

You can check your NG's date and time, received by GPS with the print time and print date commands:

Checking navigation

How to check the current navigation calculation

You can check the current GPS navigation calculation with the command show nav in a GPS-enabled controller. For this to work, your NG has to be flying (so you need to fly or start a simulation) and you need to activate position hold (PH) using a behavior rule.

Using GPS in-flight

How to use GPS Position Hold (PH)

To use position hold (PH) in-flight you need to configure behavior rules the activate it, as described above.

When you switch on PH using the behavior action nav.position.hold(on) your NG will store it's current position as target position, will start doing navigational calculations and it will begin to influence your sticks. The command show nav will display this calculation and it's results.

How to use GPS Coming Home (CH)

Your NG stores it's home position when it starts. You can use coming home (CH) to make your NG fly back to it's start position.

When you switch on CM using the behavior action nav.coming.home(on) your NG will set the home position as target position, will start doing navigational calculations and it will begin to influence your sticks. The command show nav will display this calculation and it's results.

How to use GPS Waypoint Navigation (WN)

/!\ TODO

Documentation/GPS (last edited 2012-04-20 19:05:15 by FlorianRoks)