Difference between revisions of "Module/GPS UBlox UCenter"
Jump to navigation
Jump to search
m (syntaxhighlight and modules category tree) |
m |
||
Line 11: | Line 11: | ||
</source> | </source> | ||
In some cases, you will need to specify which UART of the GPS you are using. The tiny/ppzgps use ublox_internal_port1 but if for instance you use a LS-SAM or I2C device you need to configure: | In some cases, you will need to specify which UART of the GPS you are using. The tiny/ppzgps use ublox_internal_port1 (the default) but if for instance you use a LS-SAM or I2C device you need to configure: | ||
<source lang="xml"> | <source lang="xml"> |
Revision as of 13:32, 7 March 2012
If you use a µ-blox GPS whithout flash memory, this module will take over the task of initializing the GPS for you when you power your autopilot. The module also figures out the current speed of the GPS and setup the communication from the AP accordingly:
Add the gps_ubx_ucenter module to the "modules" section in your aircraft configuration file:
<modules>
...
<load name="gps_ubx_ucenter.xml"/>
</modules>
In some cases, you will need to specify which UART of the GPS you are using. The tiny/ppzgps use ublox_internal_port1 (the default) but if for instance you use a LS-SAM or I2C device you need to configure:
<modules>
...
<load name="gps_ubx_ucenter.xml">
<define name="GPS_PORT_ID" value="GPS_PORT_UART2" />
</load>
</modules>