Jump to content

Recommended Posts

Ed:As it turned out, I was overlooking something that was obvious once I'd started to think about it properly, so in that context I think you would have been justified if you were being slightly sarcastic. I'm just sorry I misinterpreted your post because you have been very helpful in the past and yet again you gave me the clue I needed to solve the problem.-Dai

Share this post


Link to post
Share on other sites
On 5/16/2010 at 1:08 PM, WarpD said:

Ok, I'm going to offer up one of my own personal secrets. I know exactly how to set the freqency for both ADF 1 and ADF 2, accurately... every time.


		// for ADF_1		UINT32 bcdMainFreq;		bcdMainFreq = Dec2Bcd((UINT32)(freq*10000));		trigger_key_event(KEY_ADF_COMPLETE_SET, bcdMainFreq);		// for ADF_2		UINT32 bcdMainFreq;		bcdMainFreq = Dec2Bcd((UINT32)(freq*10000));		trigger_key_event(KEY_ADF2_COMPLETE_SET, bcdMainFreq);
 

Dec2Bcd is just a macro using HornerScheme conversion. "freq" is a value (>99.5 && <1800) || (>2178.5 && <2185.5)

6 years later, and in Prepar3D v4 now, and this is STILL the way it works.


tfdidesign_logo_icon_smaller.png

Collin Biedenkapp
President/Lead Programmer
TFDi Design | Website

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  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
  • Donation Goals

    AVSIM's 2020 Fundraising Goal

    Donate to our annual general fundraising goal. This donation keeps our doors open and providing you service 24 x 7 x 365. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. We reset this goal every new year for the following year's goal.


    40%
    $10,150.00 of $25,000.00 Donate Now
×
×
  • Create New...