Jump to content
Sign in to follow this  
pve

XML "Reversed Horner scheme"

Recommended Posts

Hi,As already known (FAQ's) we can SET the frequency of a NAV facility with e.g.:116.90 100 * 10000 % int d 10 % r 10 / int d 10 % r 10 / int d 10 % r 10 / int 16 * + 16 * + 16 * + (>K:NAV1_RADIO_SET) (ATL VOR)Is the reverse action possible?i.e.(@c:FlightPlanWaypointFrequency,Frequency BCD16))%!d! reads: 22561 for the ATL VOR.How to add a "factor" to get from this value the normal frequency?Jan"Beatus Ille Procul Negotiis"

Share this post


Link to post
Share on other sites

Jan,I doubt if a simple factorization could get you from 22561 to 5776 (116.90).I'm sure it would not be too difficult to invert that process, but I don't understand why 116.90 is reading 22561 as a BCD from the GPS var. I came up with 5776 for 116.90.Arne would certainly be better at this than I would:(--Jon

Share this post


Link to post
Share on other sites

Jon,I also have no idea, but same frequencys with different ident give the same output (of course)May be I am wrong, but give it a try and report the result.Btw. Didn't find this code in the GPS yet.Maybe it has to do with the MS flightplanner, like FlightPlanDeleteWaypoint and FlightPlanAddWaypoint, which I was not able to implement up until now??Jan"Beatus Ille Procul Negotiis"

Share this post


Link to post
Share on other sites

>(@c:FlightPlanWaypointFrequency,Frequency BCD16))%!d! reads:>22561 for the ATL VOR.>>How to add a "factor" to get from this value the normal>frequency?Why not simply let FS handle the conversion?%((@c:FlightPlanWaypointFrequency,Frequency, MHz))%!6.2f!%After all, this works!%((@c:WaypointAirportFrequencyValue,Mhz) 100 * near d 100 div)%!03d!.{fnt1}%(100 %)%!02d!%


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
Share on other sites

Fr. Bill,That is just the problem, it doesn't (at least for me)See the other threat about waypointfreq.Jan"Beatus Ille Procul Negotiis"

Share this post


Link to post
Share on other sites

HiATL VOR = 22561 = 116.90DTY " = 20517 = 116.40LIC NDB = 2129 = 545WOD NDB = 1381 = 352Just add maths guru!pve


Paul EGLD

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.
×
×
  • Create New...