[gps] convert gps subsystems to modules

and remove obsolete/non-functional gps_ublox_hitl and gps_ardrone2

GPS functions still need to be called from main...
This commit is contained in:
Felix Ruess
2016-04-20 22:21:37 +02:00
parent 5b44eb8d2f
commit 8fb57b97b4
20 changed files with 442 additions and 348 deletions
+6 -5
View File
@@ -6,8 +6,8 @@
U-blox GPS (UART)
Driver for u-blox GPS modules parsing the binary UBX protocol.
</description>
<configure name="GPS_PORT" value="UARTx" description="UART where the GPS is connected to (UART1, UART2, etc"/>
<configure name="GPS_BAUD" value="B38400" description="UART baud rate"/>
<configure name="UBX_GPS_PORT" value="UARTx" description="UART where the GPS is connected to (UART1, UART2, etc"/>
<configure name="UBX_GPS_BAUD" value="B38400" description="UART baud rate"/>
<configure name="GPS_LED" value="2" description="LED number to indicate fix or none"/>
</doc>
<header>
@@ -16,18 +16,19 @@
<!-- uncomment these when not called explicitly from main anymore -->
<!--init fun="gps_init()"/-->
<!--periodic fun="gps_periodic_check()" freq="1." autorun="TRUE"/-->
<!--event fun="GpsEvent(on_gps_solution)"/-->
<!--event fun="GpsEvent()"/-->
<makefile target="ap">
<configure name="UBX_GPS_PORT" default="$(GPS_PORT)" case="upper|lower"/>
<configure name="UBX_GPS_BAUD" default="$(GPS_BAUD)"/>
<configure name="GPS_LED" default="none"/>
<file name="gps.c" dir="subsystems"/>
<file name="gps_ubx.c" dir="subsystems/gps"/>
<define name="USE_GPS"/>
<configure name="GPS_PORT" case="upper|lower"/>
<define name="USE_$(UBX_GPS_PORT_UPPER)"/>
<define name="UBX_GPS_LINK" value="$(UBX_GPS_PORT_LOWER)"/>
<define name="$(UBX_GPS_PORT_UPPER)_BAUD" value="$(UBX_GPS_BAUD)"/>
<configure name="GPS_LED" default="none"/>
<define name="GPS_LED" value="$(GPS_LED)" cond="ifneq ($(GPS_LED),none)"/>
<raw>
ifdef SECONDARY_GPS