mirror of https://github.com/ArduPilot/ardupilot
waf: added --enable-gps-logging
This commit is contained in:
parent
ead4974b01
commit
854061fdbe
|
@ -114,6 +114,14 @@ class Board:
|
|||
else:
|
||||
cfg.msg("Enabled firmware ID checking", 'no', color='YELLOW')
|
||||
|
||||
if cfg.options.enable_gps_logging:
|
||||
env.DEFINES.update(
|
||||
AP_GPS_DEBUG_LOGGING_ENABLED=1,
|
||||
)
|
||||
cfg.msg("GPS Debug Logging", 'yes')
|
||||
else:
|
||||
cfg.msg("GPS Debug Logging", 'no', color='YELLOW')
|
||||
|
||||
# allow enable of custom controller for any board
|
||||
# enabled on sitl by default
|
||||
if (cfg.options.enable_custom_controller or self.get_name() == "sitl") and not cfg.options.no_gcs:
|
||||
|
|
4
wscript
4
wscript
|
@ -247,6 +247,10 @@ submodules at specific revisions.
|
|||
default=False,
|
||||
help="Enables custom controller")
|
||||
|
||||
g.add_option('--enable-gps-logging', action='store_true',
|
||||
default=False,
|
||||
help="Enables GPS logging")
|
||||
|
||||
g = opt.ap_groups['linux']
|
||||
|
||||
linux_options = ('--prefix', '--destdir', '--bindir', '--libdir')
|
||||
|
|
Loading…
Reference in New Issue