April 14, 201313 yr Hi, By coincidence i noticed that the HSI TO/FROM FLAG: %((A:HSI TF FLAGS,enum) 1 ==)%{if}TO%{else}FROM%{end} didn't work when the autopilot is drived by NAV2: (A:AUTOPILOT NAV SELECTED,enum) 2 == With (A:AUTOPILOT NAV SELECTED,enum) 1 == no problems. Is this observation correct? Jan "Beatus ille qui procul negotiis..."
April 14, 201313 yr You can't select using (A:AUTOPILOT NAV SELECTED,enum). It's read-only. You should use the key event to set it AP_NAV_SELECT_SET Gerry Howard
April 14, 201313 yr Jan, Have you tried to index the HSI flags var? Ex. (A:HSI TF FLAGS:2,enum) Roman FS RTWR SHRS F-111 JoinFS Little Navmap
April 14, 201313 yr Author Hi, I use (>K:AP_NAV_SELECT_SET) to choose between the two modes and (A:AUTOPILOT NAV SELECTED,enum) to read which mode is active. The code i use is: %((A:AUTOPILOT NAV SELECTED,enum) 1 ==)%{if}%((A:HSI TF FLAGS:1,enum) 1 ==)%{if}TO%{else}FROM%{end}%{else}%((A:HSI TF FLAGS:2,enum) 1 ==)%{if}TO%{else}FROM%{end}%{end} Jan "Beatus ille qui procul negotiis..."
April 14, 201313 yr Jan, It looks like the HSI versions of to/from can only be used by nav1. To get to/from to work from nav2 you could try ( not tested ) the "nav" instrument versions of the same variable. Roman <!-- From FS9 --> (A:NAV1 TOFROM, enum) (A:NAV2 TOFROM, enum) <!-- From FSX SDK "C" style --> VOR1_TF_FLAG VOR2_TF_FLAG <!-- From FSX SDK Simulation Variables --> <!-- NAV TOFROM:index --> (A:NAV TOFROM:1, enum) (A:NAV TOFROM:2, enum) FS RTWR SHRS F-111 JoinFS Little Navmap
April 14, 201313 yr I use (>K:AP_NAV_SELECT_SET) to choose between the two modes Ooops - I misread your OP Gerry Howard
April 14, 201313 yr Author Thanks!, This one works: %((A:AUTOPILOT NAV SELECTED,enum) 1 ==)%{if}%((A:NAV TOFROM:1,enum) 1 ==)%{if}TO%{else}FROM%{end}%{else}%((A:NAV TOFROM:2,enum) 1 ==)%{if}TO%{else}FROM%{end}%{end} Jan "Beatus ille qui procul negotiis..."
Create an account or sign in to comment