March 29, 200620 yr Hi, I'm using,(L:G1000_1_ADF_for_conversion,enum) d 10 * 10000 % int d 10 % r 10 / int d 10 % r 10 / int d 10 % r 10 / int 16 * + 16 * + 16 * + r 1000 < if{ (>K:ADF_LOWRANGE_SET) } els{ (>K:ADF_HIGHRANGE_SET) }I build up the (L:G1000_1_ADF_for_conversion,enum)variable and then set the radio with the above code. All works well. However, the radio will not set with a variable value above 1699.9, yet the ADF frequency range goes to something like 1750 or above. Any ideas?cheers,nick
March 29, 200620 yr Hi Nick,1699.9 is a limitation of the "ancient" High/Lowrange structure.Instead, you should use event (>K:ADF_COMPLETE_SET), which allows upto 1799.9.If it helps: I posted the info below a while back in this very forum :-)Cheers, Rob**********************************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 *)*********************************************
March 29, 200620 yr Author Many thanks. I did my usual 'thorough' search and did not come across this one.:-) Thanks again,nickEDIT: having tested this I was converting an L:varialble of say 1234.5 and the set frequency I got was 1.2You advised,Read: (A:**** ACTIVE FREQUENCY,number) 1000 /(* With ****: ADF1 or ADF2 *)I removed the 1000 / and now get the correct set frequency.Why did you add the 1000 / ? Am I missing something here?cheers,nick
March 29, 200620 yr Moderator >NAV1,2: range 108.000 - 117.975 MHz, step 0.025 MHz>COM1,2: range 118.000 - 136.975 Mhz, step 0.025 MHzActually, the range for NAV is108.00 to 117.950 using 50 KHz channel spacingOnly COM frequencies use 25 KHz channel spacing (narrow band)http://www.jneuhaus.com/fccindex/aviation.htmlNAV Range/Use108000-112000 kHz Aviation Navigation - (80 50 kHz Channels - Terminal VOR and ILS) 112000-117950 kHz Aviation Navigation (120 50 kHz Channels - VORCOM Range/Use118000-136000 kHz Aviation Communication (720 25 kHz Channels) Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
March 30, 200620 yr Hi Nick,I just tested it again, but (A:ADF1 ACTIVE FREQUENCY,number) gives the freq. in Hz, NOT KHz .. That is, on my system :-)Hence the division by 1000.Are you sure you used "number" as unit, and not something else ??Because using another unit may give a different result of course.Cheers, Rob
March 30, 200620 yr >Actually, the range for NAV is>108.00 to 117.950 using 50 KHz channel spacing>Only COM frequencies use 25 KHz channel spacing (narrow band)I stand corrected :-)Cheers, Rob
March 30, 200620 yr Moderator >>Actually, the range for NAV is>>108.00 to 117.950 using 50 KHz channel spacing>>>Only COM frequencies use 25 KHz channel spacing (narrow>band)>>I stand corrected :-)Ok, then what happens when you sit? ;) Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
Create an account or sign in to comment