1
0
Fork 0

Make loudspeaker control ATC / chatter volume

This commit is contained in:
Jonathan Redpath 2022-02-17 18:18:13 +00:00
parent 156092a1a4
commit 1b11ce35f1
2 changed files with 21 additions and 2 deletions

View file

@ -2558,7 +2558,7 @@
<binding>
<command>set-tooltip</command>
<tooltip-id>speaker_volume_cpt-lbl</tooltip-id>
<label>Loudspeaker control</label>
<label>Radio volume control</label>
</binding>
</hovered>
</animation>
@ -2587,7 +2587,7 @@
<binding>
<command>set-tooltip</command>
<tooltip-id>speaker_volume_fo-lbl</tooltip-id>
<label>Loudspeaker control</label>
<label>Radio volume control</label>
</binding>
</hovered>
</animation>

View file

@ -152,4 +152,23 @@
</channel>
<channel name="Loudspeakers">
<!-- TODO audio switching -->
<switch name="Loudspeaker">
<default value="0"/>
<test logic="AND" value ="/controls/switches/loudspeaker-l">
/controls/switches/loudspeaker-l ge /controls/switches/loudspeaker-r
/systems/electrical/bus/dc-ess ge 25
</test>
<test logic="AND" value ="/controls/switches/loudspeaker-r">
/controls/switches/loudspeaker-r gt /controls/switches/loudspeaker-l
/systems/electrical/bus/dc-ess ge 25
</test>
<output>/sim/sound/atc/volume</output>
<output>/sim/sound/chatter/volume</output>
</switch>
</channel>
</system>