Difference between revisions of "Module/GPS UBlox UCenter"
(Added frames with file names for source code examples) |
(Better separation of basic and advanced configuration options) |
||
Line 10: | Line 10: | ||
* enable SBAS | * enable SBAS | ||
* configure it to 3D only fix | * configure it to 3D only fix | ||
* set the internal | * set the internal dynamic model to Airborne 2G | ||
== Basic == | |||
Add the gps_ubx_ucenter [[Modules|module]] to the "modules" section in your aircraft configuration file: | Add the gps_ubx_ucenter [[Modules|module]] to the "modules" section in your aircraft configuration file: | ||
Line 23: | Line 25: | ||
}} | }} | ||
You can specify to a different dynamic model for the u-blox | |||
== Advanced == | |||
You can specify to a different dynamic model for the u-blox. | |||
{{Box Code|conf/airframes/myplane.xml| | |||
<source lang="xml"> | |||
<modules> | |||
... | |||
<load name="gps_ubx_ucenter.xml"> | |||
<define name="GPS_UBX_NAV5_DYNAMICS" value="NAV5_DYN_PORTABLE" /> | |||
</load> | |||
</modules> | |||
</source> | |||
}} | |||
You can specify to receive a DEBUG message over telemetry. Make changes to both the airframe and telemetry config files. | |||
{{Box Code|conf/airframes/myplane.xml| | {{Box Code|conf/airframes/myplane.xml| | ||
<source lang="xml"> | <source lang="xml"> |
Revision as of 16:15, 3 March 2014
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)
- enable the NAV_POSLLH, NAV_VELNED, NAV_STATUS, NAV_SVINFO, NAV_SOL
- disable UTM on old Lea4P by not sending NAV_POSUTM
- enable SBAS
- configure it to 3D only fix
- set the internal dynamic model to Airborne 2G
Basic
Add the gps_ubx_ucenter module to the "modules" section in your aircraft configuration file:
File: conf/airframes/myplane.xml |
<modules>
...
<load name="gps_ubx_ucenter.xml"/>
</modules>
|
Advanced
You can specify to a different dynamic model for the u-blox.
File: conf/airframes/myplane.xml |
<modules>
...
<load name="gps_ubx_ucenter.xml">
<define name="GPS_UBX_NAV5_DYNAMICS" value="NAV5_DYN_PORTABLE" />
</load>
</modules>
|
You can specify to receive a DEBUG message over telemetry. Make changes to both the airframe and telemetry config files.
File: conf/airframes/myplane.xml |
<modules>
...
<load name="gps_ubx_ucenter.xml">
<define name="GPS_UBX_NAV5_DYNAMICS" value="NAV5_DYN_PORTABLE" />
<define name="DEBUG_GPS_UBX_UCENTER" value="TRUE" />
</load>
</modules>
|
File: conf/telemetry/myplane.xml |
<mode name="default">
...
<message name="DEBUG" period="0.5"/>
</mode>
|