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.

Increase amount of turn on a script

Featured Replies

I have the following script for the speed bug on the FSS-727.  It works but is slow.  I have attempted to add rolls with a fast turn but that does not seem to work.  This would be more helpful with the HDG bug and course script which are similar.  What say the smarter folks here.  This seems to increment in single steps, I would like the fast turn to do 5-10 steps.  I don't think I have tried adding more "+" to the script and thought I would check here before going down a rabbit hole. 

(L:FSS_B727_CP_AIRSPEED_KNOB, Number)(L:FSS_B727_CP_AIRSPEED_KNOB, Number) ++ (>L:FSS_B727_CP_AIRSPEED_KNOB, Number)

AAL??? Mark "Crabby"  Crabtree

logo_130208.png

 

  • Commercial Member

(L:FSS_B727_CP_AIRSPEED_KNOB, Number) ++ (>L:FSS_B727_CP_AIRSPEED_KNOB, Number)

This is the correct script for single step increment. The duplicate variable read at the beginning of your code does nothing of value.

"++" is a shortcut for "increment by 1". Without the shortcut the script would be written as "(L:FSS_B727_CP_AIRSPEED_KNOB, Number) 1 + (>L:FSS_B727_CP_AIRSPEED_KNOB, Number)"
Both syntaxes work, "++" is just a convenience operator.

Increment by 5

(L:FSS_B727_CP_AIRSPEED_KNOB, Number) 5 + (>L:FSS_B727_CP_AIRSPEED_KNOB, Number)

Increment by 10

(L:FSS_B727_CP_AIRSPEED_KNOB, Number) 10 + (>L:FSS_B727_CP_AIRSPEED_KNOB, Number)

Edited by Lorby_SI

LORBY-SI

  • Author

Great.  Learned something new again today.  Thanks and Merry Christmas to you and yours.

AAL??? Mark "Crabby"  Crabtree

logo_130208.png

 

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.