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.

Setting XML K vars from C

Featured Replies

  • Commercial Member

After reading an old post of Bill's over on flightsim.com, I think this is correct for setting left flaps. However, I'm not that familiar with setting K vars from C (I usually just read them) but the _FLAPS_SET token variables in C are completely fubar. I'd be grateful if someone could cast an eye over this and tell me where the error is:

execute_calculator_code("(A:TRAILING EDGE FLAPS LEFT PERCENT,percent) (>K:TRAILING EDGE FLAPS LEFT PERCENT)", NULL, &return_value, NULL);

'percent' would contain the required position of the flaps.

  • Commercial Member

K: values are the ones in the Event ID lists under the String column.  You're trying to use a variable as an event.  While the variable you've chosen is writable... it is only writable via SimConnect.

Ed Wilson

Mindstar Aviation
My Playland - I69

  • Author
  • Commercial Member

Oh well. Looks like it's going to have to be a SimConnect command. The aircraft I'm working on doesn't have flap positions; you press a switch and an electric motor drives the flaps until you release the switch and there they stay - subject to maximum deflection of course!

Any idea which SimConnect method I need?

  • Author
  • Commercial Member

Okay - I asked for that! :laugh: However, you have confirmed that I was looking in the right place when reading the 'Input Data' example in the SDK. Not sure if 'Input Data' is the correct title as I'm not at home and don't have the SDK on this machine but it is the example that sends ctrl+shift+U to activate something-or-other.

Archived

This topic is now archived and is closed to further replies.

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.