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

MSFS20 Reading throttle and thrust info from SimConnect

Messages
129
Country
unitedstates
I'm just starting work with the SDK , I have a lot of data coming in from Simconnect but I am unable to get any data about the flight control (thrust, throttle) position or RPM of the engines (A320 currently is my focus).
tried
GENERAL ENG THROTTLE LEVER POSITION
ENG N1 RPM
GENERAL ENG RPM
and don't get any values back (0)

any suggestions or experience? thanks
 
I'm just starting work with the SDK , I have a lot of data coming in from Simconnect but I am unable to get any data about the flight control (thrust, throttle) position or RPM of the engines (A320 currently is my focus).
tried
GENERAL ENG THROTTLE LEVER POSITION
ENG N1 RPM
GENERAL ENG RPM
and don't get any values back (0)

any suggestions or experience? thanks
Have you found a fix for this? Im having the same issue, just the input of 0, no matter how much throttle is in
 
"TURB ENG JET THRUST:1" ,pounds
"TURB ENG JET THRUST:2" ,pounds"

"GENERAL ENG THROTTLE LEVER POSITION:1" ,percent
"GENERAL ENG THROTTLE LEVER POSITION:2" ,percent
 
"TURB ENG JET THRUST:1" ,pounds
"TURB ENG JET THRUST:2" ,pounds"

"GENERAL ENG THROTTLE LEVER POSITION:1" ,percent
"GENERAL ENG THROTTLE LEVER POSITION:2" ,percent
I've used these too, but what did you do to get the throttle lever position to show the actual throttle position?
 
double dValue = (double) data.dwData[0];

pbrThrottle1.Value = dValue; (0-100 50 for 50%) and for A320 -1 to -20 max reverse (ProgressBar C# Minimum -20 Maximum 100

decimal throttlePercent1 = (decimal) dValue / 100;
 
Last edited:
double dValue = (double) data.dwData[0];

pbrThrottle1.Value = dValue; (0-100 50 for 50%) and for A320 -1 to -20 max reverse (ProgressBar C# Minimum -20 Maximum 100

decimal throttlePercent1 = (decimal) dValue / 100;
Can you explain whats going on in the first line? the data.dwData[0], I cant seem to find a c++ equivalent
 
the data is received here

private void SimConnect_OnRecvSimobjectDataBytype(SimConnect sender, SIMCONNECT_RECV_SIMOBJECT_DATA_BYTYPE data)

in this data type

public class SIMCONNECT_RECV_SIMOBJECT_DATA_BYTYPE : SIMCONNECT_RECV_SIMOBJECT_DATA
{
public SIMCONNECT_RECV_SIMOBJECT_DATA_BYTYPE();
}

that is inherited from this

public class SIMCONNECT_RECV_SIMOBJECT_DATA : SIMCONNECT_RECV
{
public uint dwRequestID;
public uint dwObjectID;
public uint dwDefineID;
public uint dwFlags;
public uint dwentrynumber;
public uint dwoutof;
public uint dwDefineCount;
[VariableSize(TypeMember = "dwDefineID", CountMember = "")]
public object[] dwData;

public SIMCONNECT_RECV_SIMOBJECT_DATA();
}

so the dwData datatype varies depending on the data type returned and then must be cast to the necessary type .. in our example a double
(you create a switch statement to handle each Type )

or you can use OnRecvSimobjectData
void SimConnect_OnRecvSimobjectData(SimConnect sender, SIMCONNECT_RECV_SIMOBJECT_DATA data)


set a breakpoint in the debugger in that function and look at the data returned (before you do the cast)

can someone fluent with this expand on this ? any corrections? (I am a fluent c++ programmer, but only using c# so far in the MSFS SDK )
 
Last edited:
Back
Top