Jump to content

Transponder VFR preset


obie311

Recommended Posts

you have to change the XML code. In the BXpdr.xml file that is inside the OV10a_GPS.cab file starting at about line 200 they set the two transponders to 7000. Change the 7000 to 1200. Keep in mind that you need to unpack the cab first to be able to get to the xml file. When you unpack the cab, it will create a directory with the same name as the cab. Just rename the original cab to OV10a_GPS.cab.orig so FSX will use the directory instead of the cab. If you mess anything up, rename the cab back to its original name and delete the directory you created and you are back to where you started. FSX does not care if it gets the code from the cab or from a directory. The cab just saves space on the HD and on a fast computer with slow HD access it is faster because it can decompress in memory faster than it can read it from the HD.

Have fun

Dave

Link to comment
Share on other sites

Thanks Sieggie. I'm not too conversant w/ xml. Can I just do a find and replace in wordpad and replace all the "7000" 's with "1200" or will it require more scrutiny?

OK I've had a little more time to work on this and understand the file syntax slightly better. I've extracted the GPS.CAB file and made the following edit to 1200

<!-- ******* -->

<!-- VFR set -->

<!-- ******* -->

(L:Xponder_mode, number) 0 &gt;

if{

0 (&gt; L:BXponder_VFR_set, bool)

}

(L:Secondary_bus_volt, number) 20 &gt;=

(L:BXponder_VFR_set, bool) 1 == &amp;&amp;

(L:BXpdr_Mode, number) 0 &gt; &amp;&amp;

if{

1200 (&gt; L:Mode_xponder_1000th, number)

0 (&gt; L:Mode_xponder_100th, number)

0 (&gt; L:Mode_xponder_10th, number)

0 (&gt; L:Mode_xponder_1th, number)

1 (&gt; L:BXponder_VFR_set, bool)

}

<!-- *********** -->

<!-- Xponder set -->

<!-- *********** -->

(L:Secondary_bus_volt, number) 20 &gt;=

(L:BXpdr_Mode, number) 0 &gt; &amp;&amp;

(L:BXpdr_pos, bool) 0 ==

(L:BXponder_VFR_set, bool) 1 == || &amp;&amp;

(L:Xponder_mode, number) 0 == &amp;&amp;

if{

(L:Mode_xponder_1000th, number) (L:Mode_xponder_100th, number) + (L:Mode_xponder_10th, number) + (L:Mode_xponder_1th, number) + (&gt; L:Mod_xponder_number, number)

(L:Mod_xponder_number, number) int

d 10 % r 10 / int

d 10 % r 10 / int

d 10 % r 10 / int

16 * +

16 * +

16 * +

(>K:XPNDR_SET)

0 (&gt; L:BXponder_VFR_set, bool)

}

<!-- ********************** -->

<!-- Display Initialisation -->

<!-- ********************** -->

(L:Secondary_bus_volt, number) 20 &gt;=

(L:BXpdr_Mode, number) 0 &gt; &amp;&amp;

(L:BXpdrInit_cnt, number) 180 &lt; &amp;&amp;

if{

(L:BXpdrInit_cnt, number) 1 + (&gt; L:BXpdrInit_cnt, number)

(L:BXpdrInit_cnt, number) 180 ==

if{

1 (&gt; L:BXpdr_Page, number)

}

}

(L:Secondary_bus_volt, number) 20 &lt;

(L:BXpdr_Mode, number) 0 == ||

if{

0 (&gt; L:BXpdrInit_cnt, number)

0 (&gt; L:BXpdr_Page, number)

0 (&gt; L:BXpdr_pos, bool)

}

This worked to make the VFR button preset to 1200.... However when I manually set the Xponder digits it doesn't set correctly. I use "1234" as a test and although it allows entry when I push the button to set the last digit it shows 1434 on the Xponder. AFAIK, I didn't edit the Xponder set lines.

Thanks for any help offered.

Obie

BXpdr.xmlBXPDR.txt

Link to comment
Share on other sites

Thanks Sieggie. I'm not too conversant w/ xml. Can I just do a find and replace in wordpad and replace all the "7000" 's with "1200" or will it require more scrutiny?

OK I've had a little more time to work on this and understand the file syntax slightly better. I've extracted the GPS.CAB file and made the following edit to 1200

<!-- ******* -->

<!-- VFR set -->

<!-- ******* -->

(L:Xponder_mode, number) 0 &gt;

if{

0 (&gt; L:BXponder_VFR_set, bool)

}

(L:Secondary_bus_volt, number) 20 &gt;=

(L:BXponder_VFR_set, bool) 1 == &amp;&amp;

(L:BXpdr_Mode, number) 0 &gt; &amp;&amp;

if{

1200 (&gt; L:Mode_xponder_1000th, number)

0 (&gt; L:Mode_xponder_100th, number)

0 (&gt; L:Mode_xponder_10th, number)

0 (&gt; L:Mode_xponder_1th, number)

1 (&gt; L:BXponder_VFR_set, bool)

}

<!-- *********** -->

<!-- Xponder set -->

<!-- *********** -->

(L:Secondary_bus_volt, number) 20 &gt;=

(L:BXpdr_Mode, number) 0 &gt; &amp;&amp;

(L:BXpdr_pos, bool) 0 ==

(L:BXponder_VFR_set, bool) 1 == || &amp;&amp;

(L:Xponder_mode, number) 0 == &amp;&amp;

if{

(L:Mode_xponder_1000th, number) (L:Mode_xponder_100th, number) + (L:Mode_xponder_10th, number) + (L:Mode_xponder_1th, number) + (&gt; L:Mod_xponder_number, number)

(L:Mod_xponder_number, number) int

d 10 % r 10 / int

d 10 % r 10 / int

d 10 % r 10 / int

16 * +

16 * +

16 * +

(>K:XPNDR_SET)

0 (&gt; L:BXponder_VFR_set, bool)

}

<!-- ********************** -->

<!-- Display Initialisation -->

<!-- ********************** -->

(L:Secondary_bus_volt, number) 20 &gt;=

(L:BXpdr_Mode, number) 0 &gt; &amp;&amp;

(L:BXpdrInit_cnt, number) 180 &lt; &amp;&amp;

if{

(L:BXpdrInit_cnt, number) 1 + (&gt; L:BXpdrInit_cnt, number)

(L:BXpdrInit_cnt, number) 180 ==

if{

1 (&gt; L:BXpdr_Page, number)

}

}

(L:Secondary_bus_volt, number) 20 &lt;

(L:BXpdr_Mode, number) 0 == ||

if{

0 (&gt; L:BXpdrInit_cnt, number)

0 (&gt; L:BXpdr_Page, number)

0 (&gt; L:BXpdr_pos, bool)

}

This worked to make the VFR button preset to 1200.... However when I manually set the Xponder digits it doesn't set correctly. I use "1234" as a test and although it allows entry when I push the button to set the last digit it shows 1434 on the Xponder. AFAIK, I didn't edit the Xponder set lines.

Thanks for any help offered.

Obie

BXpdr.xmlBXPDR.txt

Sorry my stupidity for not reading the code completely. It should be:

if{

1000 (&gt; L:Mode_xponder_1000th, number)

200 (&gt; L:Mode_xponder_100th, number)

0 (&gt; L:Mode_xponder_10th, number)

0 (&gt; L:Mode_xponder_1th, number)

1 (&gt; L:BXponder_VFR_set, bool)

}

This section controls the VFR button. There is also an almost identical section above this that is the initialization that should look the same.

Dave

Link to comment
Share on other sites

Excellent Sieggie. That was the key!! Now I better understand the syntax of the xml file. Is there any interest by the moderators in having me post a modified OV10A_GPS.CAB for USA users?

Regards,

Obie

Link to comment
Share on other sites

Excellent Sieggie. That was the key!! Now I better understand the syntax of the xml file. Is there any interest by the moderators in having me post a modified OV10A_GPS.CAB for USA users?

Regards,

Obie

They generally frown upon modifying thier code so they might not like it. It is each individuals responsibility to take the risk of modification and any resulting problems caused by it as evidenced by so minor a change as this causing the unexpected results on the first attempt.

Dave

Link to comment
Share on other sites

Completely understood. However it might have been a good option to include in the original release. Is the USA the only country to use 1200 as VFR xponder code? Is 7000 the international standard?

Thanks again for the help.

Obie

Link to comment
Share on other sites

Completely understood. However it might have been a good option to include in the original release. Is the USA the only country to use 1200 as VFR xponder code? Is 7000 the international standard?

Thanks again for the help.

Obie

This wiki has a list of all the codes, where used and what they mean.

http://en.wikipedia.org/wiki/Transponder_%28aviation%29

Dave

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy & Terms of Use