June 21, 200718 yr Hi,I would like the AP to switch between NAV1 and NAV2 for navigation. I have looked at some threads here but it is not very clear to me how to set up the click event. So far I have: %((A:AUTOPILOT NAV SELECTED,enum) 1 == )%{if}%Enable NAV 2%{else}%Enable NAV 1%{end} (A:AUTOPILOT NAV SELECTED,enum) 1 == if{ (>K:AP_NAV2_SELECT_SET) } els{ (>K:AP_NAV1_SELECT_SET) } Is this the correct event or should it be (>K:AP_NAV1_SELECT,bool)Does SET require a frequency? I would be very pleased if someone could tell me what is wrong in the click part?Thanks for your time.Roelof
June 21, 200718 yr Hi,Don't have data here, but try:0 (>K:AP_NAV_SELECT_SET) 1 (>K:AP_NAV_SELECT_SET) 2 (>K:AP_NAV_SELECT_SET) (A:AUTOPILOT NAV SELECTED,enum) 1 == shows NAV1 i am pretty sure.Jan"Beatus ille qui procul negotiis..." Jan "Beatus ille qui procul negotiis..."
June 21, 200718 yr >Hi,>>Don't have data here, but try:>>0 (>K:AP_NAV_SELECT_SET) >1 (>K:AP_NAV_SELECT_SET) >2 (>K:AP_NAV_SELECT_SET) >>(A:AUTOPILOT NAV SELECTED,enum) 1 == shows NAV1 i am pretty>sure.>Thanks Jan. I will try this. Indeed the A:Var shows NAV1. Roelof
June 21, 200718 yr I had a look and only(>K:AP_NAV_SELECT_SET) is ok, it is a toggle between 1 and 2.I use:(A:AUTOPILOT NAV SELECTED,enum) 1 == if{ Nav1 } els{ Nav2 }Jan"Beatus ille qui procul negotiis..." Jan "Beatus ille qui procul negotiis..."
June 21, 200718 yr Hi Jan,After testing it, the click event will make A:AUTOPILOT NAV SELECTED,enum) read either 1 or 2.However the toggle seems to disengage NAV1 (AP NAV still selected) but will not navigate on a radial for NAV2.if{ Nav1 } els{ Nav2 } Is that enough?Can I replace if{(>K:AP_NAV2_SELECT_SET) } els{ (>K:AP_NAV1_SELECT_SET)} with what you are giving?I will try that!Roelof
June 21, 200718 yr No,I use it in:%((A:CIRCUIT AVIONICS ON,bool))%{if}%((A:AUTOPILOT NAV SELECTED,enum) 1 ==)%{if}%((A:Nav1 active frequency,MHz))%!6.2f!%{else}%((A:Nav2 active frequency,MHz))%!6.2f!%{end}%{else}888.88You need this too for the radial:OBS(M:Event) 'LeftSingle' scmp 0 == if{ (A:AUTOPILOT NAV SELECTED,enum) 1 == if{ (>K:VOR1_OBI_DEC) } els{ (>K:VOR2_OBI_DEC) } } (M:Event) 'RightSingle' scmp 0 == if{ (A:AUTOPILOT NAV SELECTED,enum) 1 == if{ (>K:VOR1_OBI_INC) } els{ (>K:VOR2_OBI_INC) } } and read:%((A:CIRCUIT AVIONICS ON,bool))%{if}%((A:AUTOPILOT NAV SELECTED,enum) 1 ==)%{if}%((A:NAV1 OBS,degrees) dnor)%!03d!%{else}%((A:NAV2 OBS,degrees) dnor)%!03d!%{end}%{else}888Jan"Beatus ille qui procul negotiis..." Jan "Beatus ille qui procul negotiis..."
June 22, 200718 yr >No,>>I use it in:>That will keep me busy for a while. I'll see how far I can get with this.I'll keep you posted.Roelof
Create an account or sign in to comment