mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-04 05:42:49 +08:00
[modules] fix gps_ublox
This commit is contained in:
@@ -22,9 +22,10 @@
|
|||||||
<file name="gps_ubx.c" dir="subsystems/gps"/>
|
<file name="gps_ubx.c" dir="subsystems/gps"/>
|
||||||
<define name="USE_GPS"/>
|
<define name="USE_GPS"/>
|
||||||
<raw>
|
<raw>
|
||||||
|
UBX_GPS_PORT_LOWER=$(shell echo $(GPS_PORT) | tr A-Z a-z)
|
||||||
ap.CFLAGS += -DGPS_TYPE_H=\"subsystems/gps/gps_ubx.h\"
|
ap.CFLAGS += -DGPS_TYPE_H=\"subsystems/gps/gps_ubx.h\"
|
||||||
ap.CFLAGS += -DUSE_$(GPS_PORT) -D$(GPS_PORT)_BAUD=$(GPS_BAUD)
|
ap.CFLAGS += -DUSE_$(GPS_PORT) -D$(GPS_PORT)_BAUD=$(GPS_BAUD)
|
||||||
ap.CFLAGS += -DUSE_GPS -DGPS_LINK=$(GPS_PORT)
|
ap.CFLAGS += -DUSE_GPS -DGPS_LINK=$(UBX_GPS_PORT_LOWER)
|
||||||
GPS_LED ?= none
|
GPS_LED ?= none
|
||||||
ifneq ($(GPS_LED),none)
|
ifneq ($(GPS_LED),none)
|
||||||
ap.CFLAGS += -DGPS_LED=$(GPS_LED)
|
ap.CFLAGS += -DGPS_LED=$(GPS_LED)
|
||||||
@@ -44,7 +45,6 @@
|
|||||||
<define name="USE_GPS"/>
|
<define name="USE_GPS"/>
|
||||||
<raw>
|
<raw>
|
||||||
sim.CFLAGS += -DGPS_TYPE_H=\"subsystems/gps/gps_sim.h\"
|
sim.CFLAGS += -DGPS_TYPE_H=\"subsystems/gps/gps_sim.h\"
|
||||||
jsbsim.CFLAGS += -DGPS_TYPE_H=\"subsystems/gps/gps_sim.h\"
|
|
||||||
</raw>
|
</raw>
|
||||||
</makefile>
|
</makefile>
|
||||||
</module>
|
</module>
|
||||||
|
|||||||
Reference in New Issue
Block a user