Adding a comm 2

Post any technical issues here. This forum gets priority from our staff.
new reply
User avatar
dsward1
Airman First Class
Posts: 66
Joined: 18 Jul 2010, 17:49
Location: Pensacola, FL

Adding a comm 2

Post by dsward1 »

Recently, I've been taken with flying the cub w/ floats all over ORBX PNW, and been having a ball. I'd like to add a second hand-held radio, and thought it would be easy. I was wrong. I took the stock hand-held out of the trike, duped it to a new name and re-wrote the code. The gauge shows up just fine but is stuck on the default 118.02. Can anyone tell me what I did wrong?
Thanks, Dave
-----------
Panel.cfg is now
[Window00]
Background_color=0,0,0
size_mm=1024,768
position=4
visible=1
ident=10

gauge00=tester!tester, 420, 300, 400, 1000
gauge01=Handheld_Radio2!radio2,0,0

------------------------
aircraft.cfg is now:
[Radios]
// Radio Type = availiable, standby frequency, has glide slope
Audio.1 = 1
Com.1 = 1, 0
Com.2 = 1, 0 // was 0, 0
Nav.1 = 1, 0, 1
Nav.2 = 1, 0, 0
Adf.1 = 1
Transponder.1 = 1
Marker.1 = 1
------------------------
and the xml for radio2 is:

<Gauge Name="radio2" Version="2.0">
<Image Name="radio_background.bmp" />

<!-- ============================== Radio On/Off Switch ===================== -->
<Element>
<Position X="171" Y="63" />
<Select>
<Value>(A:Avionics master switch,bool)</Value>
<Case Value="1">
<Image Name="radio_switch_on.bmp" />
</Case>
</Select>
</Element>

<!-- ============================== Frequency Readout ======================= -->
<Element>
<Position X="52" Y="70" />
<Failures>
<GAUGE_COMMUNICATIONS Action="NoDraw" />
</Failures>
<Visible>(A:Avionics master switch,bool)</Visible>
<Text X="85" Y="30" Length="6" Fixed="Yes" Font="Quartz" Adjust="Center" VerticalAdjust="Center" Color="#00FF00" Bright="Yes">
<String>%((A:Com2 active frequency:2,Megahertz))%!6.3f!</String>
</Text>
</Element>


<Mouse>
<Help ID="HELPID_RADIO_COMM2" />
<Tooltip ID="TOOLTIPTEXT_COMM2_FREQ" />

<Area Left="50" Top="67" Width="90" Height="34">
<Area Left="0" Right="25">
<Cursor Type="DownArrow" Repeat="Yes" />
<Click Repeat="Yes" MouseWheelFlip="Yes">
(A:Avionics master switch,bool) 1 ==
if{ 0 (>K:COM2_RADIO_WHOLE_DEC) }
</Click>
</Area>
<Area Left="26" Right="49">
<Cursor Type="UpArrow" Repeat="Yes" />
<Click Repeat="Yes" MouseWheelFlip="Yes">
(A:Avionics master switch,bool) 1 ==
if{ 0 (>K:COM2_RADIO_WHOLE_INC) }
</Click>
</Area>
<Area Left="50" Right="73">
<Cursor Type="DownArrow" Repeat="Yes" />
<Click Repeat="Yes" MouseWheelFlip="Yes">
(A:Avionics master switch,bool) 1 ==
if{ 0 (>K:COM2_RADIO_FRACT_DEC) }
</Click>
</Area>
<Area Left="74" Right="88">
<Cursor Type="UpArrow" Repeat="Yes" />
<Click Repeat="Yes" MouseWheelFlip="Yes">
(A:Avionics master switch,bool) 1 ==
if{ 0 (>K:COM2_RADIO_FRACT_INC) }
</Click>
</Area>
</Area>

<!-- Radio Master -->
<Area Left="161" Top="28" Width="32" Height="89">
<Cursor Type="Hand" />
<Click Event="TOGGLE_AVIONICS_MASTER" />
</Area>
</Mouse>
</Gauge>
ImageImageImageImageImageImage

new reply

Return to “Piper J-3 Cub Tech Support”

Who is online

Users browsing this forum: No registered users and 5 guests