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.

Rotary Switch Code in EPICenter

Featured Replies

Hi AllI want to use 12 position mechanical rotary switches for my avionics panel. They are wired for three buttons but I don't know how to program them. I got this sample code for a Rotary Switch in EPIC but it will not compile. Can anyone tell me how to get what I am trying to do.#define FASTSCAN 0definemodule(0,FASTSCAN,0,7):commplus{ keyhit(EQUAL);}:commminus{ keyhit(KBMINUS);}rvar (last_pos,0)rvar (last_pos,1)rvar (last_pos,2) :comm_pos0{ ifvar(last_pos,EQU,2) call commplus else commminus setvar(last_pos,0) }:comm_pos1{ ifvar(last_pos,EQU,0) call commplus else commminus setvar(last_pos,1) }:comm_pos2{ ifvar(last_pos,EQU,1) call commplus else commminus setvar(last_pos,2) }definebutton(16,on,comm_pos0)definebutton(17,on,comm_pos1)definebutton(18,on,comm_pos2)Any help on this would be much appreciated.Best regards,Steve K. (ifrevets)

  • Author

Hi Arthur PratherThank you for the information. I will give it a try.Regards,Steve K (ifrevets)

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.