mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-27 17:06:31 +08:00
[gps] add fields_valid and remove GPS_USE_LATLONG
add fields_valid bitfiled to gps struct and use that to decide whether a valid UTM pos is availabe instead of always computing UTM if GPS_USE_LATLONG is defined should close #641
This commit is contained in:
@@ -21,8 +21,6 @@
|
||||
<file name="gps.c" dir="subsystems"/>
|
||||
<file name="gps_ubx.c" dir="subsystems/gps"/>
|
||||
<define name="USE_GPS"/>
|
||||
<!-- only for fixedwings -->
|
||||
<!--define name="GPS_USE_LATLONG"/-->
|
||||
<raw>
|
||||
ap.CFLAGS += -DGPS_TYPE_H=\"subsystems/gps/gps_ubx.h\"
|
||||
ap.CFLAGS += -DUSE_$(GPS_PORT) -D$(GPS_PORT)_BAUD=$(GPS_BAUD)
|
||||
@@ -44,7 +42,6 @@
|
||||
<makefile target="sim">
|
||||
<file name="gps_sim.c" dir="subsystems/gps"/>
|
||||
<define name="USE_GPS"/>
|
||||
<define name="GPS_USE_LATLONG"/>
|
||||
<raw>
|
||||
sim.CFLAGS += -DGPS_TYPE_H=\"subsystems/gps/gps_sim.h\"
|
||||
jsbsim.CFLAGS += -DGPS_TYPE_H=\"subsystems/gps/gps_sim.h\"
|
||||
|
||||
Reference in New Issue
Block a user