mirror of https://github.com/ArduPilot/ardupilot
waf: added --enable-gps-logging
This commit is contained in:
parent
4b8b2d8236
commit
3abdc6ad25
|
@ -114,6 +114,14 @@ class Board:
|
||||||
else:
|
else:
|
||||||
cfg.msg("Enabled firmware ID checking", 'no', color='YELLOW')
|
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
|
# allow enable of custom controller for any board
|
||||||
# enabled on sitl by default
|
# enabled on sitl by default
|
||||||
if (cfg.options.enable_custom_controller or self.get_name() == "sitl") and not cfg.options.no_gcs:
|
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,
|
default=False,
|
||||||
help="Enables custom controller")
|
help="Enables custom controller")
|
||||||
|
|
||||||
|
g.add_option('--enable-gps-logging', action='store_true',
|
||||||
|
default=False,
|
||||||
|
help="Enables GPS logging")
|
||||||
|
|
||||||
g = opt.ap_groups['linux']
|
g = opt.ap_groups['linux']
|
||||||
|
|
||||||
linux_options = ('--prefix', '--destdir', '--bindir', '--libdir')
|
linux_options = ('--prefix', '--destdir', '--bindir', '--libdir')
|
||||||
|
|
Loading…
Reference in New Issue