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.

GVARS for Drawing Shapes

Featured Replies

Hi FolksI know that GVARS can be used for many things, and to that end am building a TQ gauge that is simply a rectangle that "grows" dependant on the output of:(A:Eng1 torque percent, percent) (>G:Var6)The idea being to have GVAR6 determine the size of the rectangle. Cannot get it to work, as I guess I am not formatting G6 correctly:I assume it needs a conversion to an integer that the "RECTANGLE HEIGHT" can understand???any help is appreciatedSteve

Not sure, but for setting values to previous inline statements it might be better to take them out. e.g.(G:Var6) d 0 == ? near One thing I also found was the use of HeightCode e.g.(G:Var6) d 0 == ? near Arne Bartels

ArneTHAT did it !!!"One thing I also found was the use of HeightCode e.g.(G:Var6) d 0 == ? near "NOW I have a Vector Gauge.................Onwards and upwards.Thanks a MillionSteve

ArneIt works great. It draws the rectangle from top to bottom, growing larger downwards as GVAR6 increases. I need the rectangle to be drawn from bottom to top. Any suggestions?Steve

A combination with Shift? If you shift in Y direction by overall height - drawn height it should look as if the rectangle grows from bottom to top.E.g.151 (G:Var6) d 0 == ? near -(G:Var6) d 0 == ? near Arne Bartels

ArneAgain you are dead on!!!I have already used this information to build into my helihud an aircraft directional indicator that has a vector line to indicate ground speed....so direction and GS!green when going forward and red when backwards. (A:Ground velocity, feet per second) 10 * (>G:Var2)GVAR2 just reads the ground speed and puts it in this rotating gauge element.(G:Var2) d 0 == ? near 10 * (A:Velocity world X, feet per second) (A:Velocity world Z, feet per second) atg2 (A:Magvar, radians) - (A:Plane heading degrees gyro, radians) - Steve

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.