• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FSXA Custom Caging Knob

Messages
683
Country
us-california
I've been working on a Sperry (as built by Jack & Heintz, Inc.) A-3A Autopilot. Currently the attitude indication is working with independent caging ability from the standard Attitude Indicator, and the directional gyro does it's thing. The caging knob that is circled is what I am trying to get correct.

2012-10-17_19-7-2-953.jpg


Currently if you click the face of the knob it moves in/out and the caged indicator shifts as it should. Clicking on the remainder of the knob allows for correcting drift. Here's how it is supposed to work: Knob out the dial indicates heading. Turning the knob should not affect anything. Knob in should prevent the dial from turning based on heading (caged), and the dial should only move based on the turning of the knob.

I don't see any parameter in the SDK that could be used. Any ideas on how to do this (or tell me it's not possible) would be appreciated.
 
Use a custom L: variable for the heading display, and use different sources for that custom variable depending on whether the knob is in (knob rotation) or out (heading).
 
That's what I would have done, but then how would I simulate the drift that I'm adjusting for to begin with?
 
I assume you would adjust the L: variable the same way you are adjusting the current heading variable?
 
When the knob is in (caged) I need to freeze the heading value such that the dial remains at the keyframe it was at when the knob is pushed in regardless of the actual heading.
 
OK.

Step 1:

When knob is out, custom L: variable used for heading display = FS heading variable. Heading display follows heading variable as it changes: (A:heading variable, degrees) (>L:custom variable, number) - you will need a real A: variable :)

Step 2:

When knob is clicked in (mouse section) - current heading variable is saved to L: variable used for display of heading. (A:heading variable, degrees) (>L:custom variable, number) Since in mouse section this only happens once, and then is frozen. Step 1 cannot happen since knob is in.

Step 3:

When knob is rotated (while clicked in), add or subtract one (or other number) from the L: variable at each mouse click (mouse section) to increment the heading display for drift correction.

Hope this helps,
 
You managed to put into code what I was pondering last night as a possible solution...but was trying to do it with existing variables. I have a feeling yours will work. I'll let you know how it goes.

Thanks for the help!
 
Glad to help. The whole idea of creating your own panel is to customize it. For that you usually must use custom L: variables. :)
 
Back
Top