• 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.

CFS2 Token Var Question

Messages
5
Country
us-southcarolina
For my target of CFS2, is there no flap position "exposed" for a gauge? I’ve searched every doc I have and all I’ve found that’s close is the following:

Code:
typedef	enum	GAUGE_TOKEN
{

	…

	FLAPS_HANDLE_POS,
	FLAPS_POS_LEFT,
	FLAPS_POS_RIGHT,

	…

} GAUGE_TOKEN;

This particular code snippet is from the FS2000 Panels SDK.

I’m using FLAPS_HANDLE_POS in a project but what I need is the flap equivalent of ELEVATOR_DEFLECTION (I think).
 
Nice Try?

I had not thought of checking FDSConnection (V1.3) for flap position. I just
did and found this at the bottom of the tokens.h header.

Code:
    ...

     TRAILING_EDGE_FLAPS0_LEFT_ANGLE,  // Angle of primary trailing edge
                                                          // flaps
     TRAILING_EDGE_FLAPS0_RIGHT_ANGLE, // Angle of primary trailing edge
                                                          // flaps

     C_GAUGE_TOKEN                  // Always the last

} GAUGE_TOKEN;

I cut and pasted these last missing enums names (about a 100) in to my guages.h header. The resulting .gau file caused CFS2 to CTD. I'll check my work but I'm guessing not supported by CFS2?

Also, I have a previous version where I lagged the flap handle position via a local variable and it's working fine. Just seems like actual flap position is a better way to go.


Sam aka: "Ali Cat"
 
Oopsie,

When one post a question and the answer is in the included code snippet, are you supposed to feel embarrassed?

I’ve tried FLAPS_POS_LEFT and tested it and it works fine. Being surrounded by HANDLE_POS variables and expecting, I guess, something like FLAPS_DEFLECTION I did not see it until now.

On my 2nd question – scratch this one as well. I’ve definitely got version issues with this particular effort in my code.

Just an aside I have succeeded in completed several gauge projects. That gauges.h is starting to make some sense.


Merry Christmas everyone,
Sam aka: “Ali Cat”
 
Back
Top