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.

help with G_FORCE token

Featured Replies

I am writing a gauge in C++ that incorporates a G force display. I am reading the G_FORCE token and it returns 624 for what I assume is 1 G. What units is this token returned in?

  • Author
  • Moderator

That's a very good question, as the SDK is (as usual) completely un-helpful!Looking through the Units.doc though, I note the following:Angular velocity

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Well, this maybe too trivial :-) but the unit is "Gforce".It IS mentioned in the SDK (Units.doc), and does work as expected.(that is: I use it in XML gauges)Cheers, Rob

Does the XML give you numbers in the units of 1.0 = 1 unit of gravitational force? Can you share an example of the XML?Like I said, the G_FORCE token in C++ returns 624 where there should be 1.0 unit of G_FORCE.>Well, this maybe too trivial :-) but the unit is "Gforce".>It IS mentioned in the SDK (Units.doc), and does work as>expected.>(that is: I use it in XML gauges)>>Cheers, Rob>>

In XML:(A:G FORCE, gforce)returns the number of "g"s exactly as you would expect it (pos/neg), with value "1" when sitting on the ground or at leveled flight.Rob

  • Author
  • Moderator

>Well, this maybe too trivial :-) but the unit is "Gforce".>It IS mentioned in the SDK (Units.doc), and does work as>expected.>(that is: I use it in XML gauges)>>Cheers, RobWhich, while true is absolutely useless information for someone asking about the C token... ;)One simple workaround would be to simply read the XML variable into the C gauge...

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

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.