Sign in to follow this  
Guest Fabrizio Berretta

ADF 2 with XML

Recommended Posts

To set adf1 frequency the "Key input" is: K:ADF_LOWRANGE_SET or K:ADF_HIGHRANGE_SET.There is a way in XML to set the ADF 2 frequency ? What is the "Key input" ?I try with K:ADF2_COMPLETE_SET but doesn' t works.

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Fabrizio,K:ADF2_COMPLETE_SET IS the correct event, but you probably calculate its value the wrong way.If it helps, below you find a complete overview on how to write/read all radio frequencies in FS2004, in DECIMAL values.Also note that for ADF1 you better use event K:ADF_COMPLETE_SET instead of the old K:ADF_LOWRANGE_SET and K:ADF_HIGHRANGE_SET.Because K:ADF_HIGHRANGE_SET doesn't allow you to set frequencies above 1700 Khz; K:ADF_COMPLETE_SET does allow that, and you don't have to make a distinction between greater/smaller then 1000 Khz.Cheers, Rob Barendregt**********************************NAV1, NAV2, COM1, COM2======================NAV1,2: range 108.000 - 117.975 MHz, step 0.025 MHzCOM1,2: range 118.000 - 136.975 Mhz, step 0.025 MHzWrite (example: 113.475 Mhz):113.475 100 * 10000 % intd 10 % r 10 / intd 10 % r 10 / intd 10 % r 10 / int16 * +16 * +16 * +(>K:****_RADIO_SET)(* With ****: NAV1 , NAV2 , COM or COM2 *)Read:(A:**** ACTIVE FREQUENCY,number) 1000000 /(* With ****: NAV1 , NAV2 , COM1 or COM2 *)ADF1,2======ADF1,2: range 100.0 - 1799.9 KHz, step 0.1 KHzWrite (example: 1234.5 KHz):1234.5 10000 * intd 10 % r 10 / intd 10 % r 10 / intd 10 % r 10 / intd 10 % r 10 / intd 10 % r 10 / intd 10 % r 10 / intd 10 % r 10 / intd 10 % r 10 / int16 * +16 * +16 * +16 * +16 * +16 * +16 * +16 * +(>K:****_COMPLETE_SET)(* With ****: ADF or ADF2 *)Read: (A:**** ACTIVE FREQUENCY,number) 1000 /(* With ****: ADF1 or ADF2 *)*********************************************

Share this post


Link to post
Share on other sites

Many many thanks Rob, it' s working fine.Fabrizio Berretta

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this