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!%

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...