| View previous topic :: View next topic |
| Author |
Message |
garry2005  SurClaro.com Regular Forum Member Joined: 01 Jul 2005 Total posts: 150 Location: Connecticut Age: 62 Gender: Male
|
|
Hello All:
I'm trying to force NAV1 to a particular frequency (114.10) using this EventID (NAV1_RADIO_SET). Does anyone have an example of the syntax for this? I can't find a reference anywhere. I know it's in BCD, which is fine, but I'm doing something wrong with the syntax itself.
Thanks for any help,
Garry |
|
| Back to top |
|
 |
garry2005  SurClaro.com Regular Forum Member Joined: 01 Jul 2005 Total posts: 150 Location: Connecticut Age: 62 Gender: Male
|
|
PLEASE DISREGARD THIS POST...I asked this same question some time ago and just remembered that I got some excellent answers.
Sorry for the duplicate, guys...I gotta learn to read a little deeper.
Thanks,
Garry |
|
| Back to top |
|
 |
groundsquirrel  Forum Moderator - Master member Joined: 10 Mar 2004 Total posts: 3536 Location: Navarre,Florida-USA (KVPS,KHRT,KPNS) Age: 46 Gender: Male
| |
| Back to top |
|
 |
garry2005  SurClaro.com Regular Forum Member Joined: 01 Jul 2005 Total posts: 150 Location: Connecticut Age: 62 Gender: Male
|
|
Tell you what, GS: Since you are one of the few good-guys left on the planet (I'm the other one), I'll share it with you. This code, for example, sets NAV1 to 117.95 or whatever frequency you want.
117.95 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)
If you're planning to ask me how/why this works, go bowling instead; I don't have the foggiest idea. But it does work. After I asked about this on here last time, one of our guys came up with it...I posted it back here on the forum, and then someone else on here came up with it. So I guess it has been around awhile.
Later,
Garry |
|
| Back to top |
|
 |
|