Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

hsi to/from flag

Featured Replies

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..."

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

  • 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..."

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)

20AUG21_Avsim_Sig.png?dl=1  FS RTWR   SHRS F-111   JoinFS   Little Navmap 
 

 

 

 


I use (>K:AP_NAV_SELECT_SET) to choose between the two modes

 

Ooops - I misread your OP

Gerry Howard

  • 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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.