Module/GPS UBlox UCenter

From PaparazziUAV
Revision as of 16:12, 3 March 2014 by AndrewChambers (talk | contribs) (Added frames with file names for source code examples)

Jump to: navigation, search

If you use a µ-blox GPS without flash memory, this module will take over the task of initializing the GPS for you when you power your autopilot.

It has auto-baudrate to detect the current GPS baudrate, and configures all message rates and communication ports. The module will send a DEBUG message (ID 26) that indicates the firmware version in your GPS, the previous baudrate, and the reply for each configuration step. To enable and view the message, you will need to define DEBUG_GPS_UBX_UCENTER as TRUE in your airframe configuration file and select to receive that message in your telemetry file. See the example below for more details.

It will configure the following settings:

  • set baudrate to GPS_BAUD (typically either 38400 or 57600)
  • disable UTM on old Lea4P by not sending NAV_POSUTM
  • enable SBAS
  • configure it to 3D only fix
  • set the internal dyanmic model to Airborne 2G

Add the gps_ubx_ucenter module to the "modules" section in your aircraft configuration file:

File: conf/airframes/myplane.xml
    <load name="gps_ubx_ucenter.xml"/>

You can specify to a different dynamic model for the u-blox to use and to receive a DEBUG message over telemetry.

File: conf/airframes/myplane.xml
    <load name="gps_ubx_ucenter.xml">
	<define name="GPS_UBX_NAV5_DYNAMICS" value="NAV5_DYN_PORTABLE" />
	<define name="DEBUG_GPS_UBX_UCENTER" value="TRUE" />

File: conf/telemetry/myplane.xml
    <mode name="default">
     <message name="DEBUG" period="0.5"/>