Tools: sim_vehicle.py: add option --rgbled for simulated RGBLed

This commit is contained in:
Peter Barker 2019-05-16 14:02:58 +10:00 committed by Andrew Tridgell
parent 85fe4ae6dd
commit 316db6e4b6
1 changed files with 10 additions and 0 deletions

View File

@ -294,6 +294,11 @@ def do_build_waf(opts, frame_options):
if opts.OSD:
cmd_configure.append("--enable-sfml")
cmd_configure.append("--sitl-osd")
if opts.rgbled:
cmd_configure.append("--enable-sfml")
cmd_configure.append("--sitl-rgbled")
if opts.tonealarm:
cmd_configure.append("--enable-sfml-audio")
@ -906,6 +911,11 @@ group_sim.add_option("", "--tonealarm",
dest='tonealarm',
default=False,
help="Enable SITL ToneAlarm")
group_sim.add_option("", "--rgbled",
action='store_true',
dest='rgbled',
default=False,
help="Enable SITL RGBLed")
group_sim.add_option("", "--add-param-file",
type='string',
default=None,