The SDK documentation states:
I’m trying to set L:XMLVAR_ADF_Mode in the default Cessna 152 to a value (range is 0 to 3):
SimConnect_AddToDataDefinition(hSimConnect, DEFINITION_1, “L:XMLVAR_ADF_Mode”, “number”, SIMCONNECT_DATATYPE_FLOAT64);
I can’t figure it out by reading the “explanations” on the RPN page how exactly I'm supposed to use reverse Polish notation.
This is initiated from a GUI radio button so I can understand what minimum commands are required to SET an Lvar. I'm not comparing values, I'm just setting a value.
I can set and toggle Events and SimVars just fine using SimConnect. Am I missing another statement to do the actual "set"?
Robert
C++ VS2022 solution uploaded here:
Yet their example just presents what appears to be a default statement. If there’s RPN notation in there, I don’t see it.It is possible to get and/or set an RPN “L” variable through SimConnect using the SimConnect_AddToDataDefinition function, for example:
SimConnect_AddToDataDefinition(hSimConnect, DataDefinitionID, “L:VARIABLE_NAME”, “number”, SIMCONNECT_DATATYPE_FLOAT64);
I’m trying to set L:XMLVAR_ADF_Mode in the default Cessna 152 to a value (range is 0 to 3):
SimConnect_AddToDataDefinition(hSimConnect, DEFINITION_1, “L:XMLVAR_ADF_Mode”, “number”, SIMCONNECT_DATATYPE_FLOAT64);
I can’t figure it out by reading the “explanations” on the RPN page how exactly I'm supposed to use reverse Polish notation.
This is initiated from a GUI radio button so I can understand what minimum commands are required to SET an Lvar. I'm not comparing values, I'm just setting a value.
I can set and toggle Events and SimVars just fine using SimConnect. Am I missing another statement to do the actual "set"?
Robert
C++ VS2022 solution uploaded here:
GitHub - KaptainKrash/MSFSinterface: Interface to MSFS using SimConnect in C++ Visual Studio 2022
Interface to MSFS using SimConnect in C++ Visual Studio 2022 - GitHub - KaptainKrash/MSFSinterface: Interface to MSFS using SimConnect in C++ Visual Studio 2022
github.com