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.

How to set MACH speed in a C gauge

Featured Replies

Mach speed is a decimal number.How can you set a specific MACH speed using trigger_key_event?Thge problem is that trigger_key_event takes a UINT32 parameter for the value to be set. Something like:trigger_key_event(KEY_AP_MACH_VAR_SET, 0.81);will never work because 0.81 is not an integer...Any clue?Thanks in advance !!Eric

I haven't checked it, but maybe you should do it as follows: the maximum a UINT32 can be is the 32k number (don't know it exactly).0.81 = 81 / 100 as ? / 32k => ? = 81 * 32k / 100 = 0.81*32k.I think this should work.Greetings,Steven

Eric,The values which you can use are between 0 and 65536, where 65536 is equal to m3.2 (the maximum you can set).m0.81 would be equal to .81/3.2 * 65536; or about 16589.Doug

I am sorry if my question wasn't clear...In fact, I was talking about the Mach speed set on the autopilot, and I found the solution: you have to multiply the value by 100, which means you you to set a value of 81 to set an autopilot Mach speed of 0.81.Thanks !!Eric

Oops, it's an unsigned INT. Sorry!Thanks for sharing the solution Eric!Steven

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.