Greetings! First, I'm a totally newbie developing for FSX, and I'm glad to join to a serious forum like this, I tried looking for the solution by myself in every thread I could in order of not generating a unnecesary Thread, but I did not have an answer
.
So there is the issue, Setting the aileron position must include a value from 0 to -16000 according to the SimConnect Documentation, so im leaving the code with detailed info in the comments.
private void testinputValues()
{
if (simconnect != null && Simactivo == true)
{
while (true)
{
//!!! Positive Number equals right? negative number equals left? zero equals center !!!
//The Documentation manage a range from -16000 to 0 ( how is it posible :'( ? )
//DATADEFINITION : simconnect.AddToDataDefinition(DATA_DEFINE_ID.AILERON, "AILERON POSITION", null, SIMCONNECT_DATATYPE.FLOAT64, 0.0f, SimConnect.SIMCONNECT_UNUSED);
//ac.aileronpos is a double variable
//Fully Right
ac.aileronpos = 160.00;
simconnect.SetDataOnSimObject(DATA_DEFINE_ID.AILERON, (uint)SIMCONNECT_SIMOBJECT_TYPE.USER, 0, ac.aileronpos);
Thread.Sleep(3000);
//Center
ac.aileronpos = 0.00;
simconnect.SetDataOnSimObject(DATA_DEFINE_ID.AILERON, (uint)SIMCONNECT_SIMOBJECT_TYPE.USER, 0, ac.aileronpos);
Thread.Sleep(3000);
//FullyLeft
ac.aileronpos = -160.00;
simconnect.SetDataOnSimObject(DATA_DEFINE_ID.AILERON, (uint)SIMCONNECT_SIMOBJECT_TYPE.USER, 0, ac.aileronpos);
Thread.Sleep(3000);
}
}
}
So I just have 3 possible states of the yoke (must be 16001), I dont have access to the intermediate values and it is going fully to the right and fully to the left, and the center (so bad for a plane),
so please if you can help me it will be pretty apreciated.
Please feel free to ask for extra info if is it needed.
Thanks in advance!!!
So there is the issue, Setting the aileron position must include a value from 0 to -16000 according to the SimConnect Documentation, so im leaving the code with detailed info in the comments.
private void testinputValues()
{
if (simconnect != null && Simactivo == true)
{
while (true)
{
//!!! Positive Number equals right? negative number equals left? zero equals center !!!
//The Documentation manage a range from -16000 to 0 ( how is it posible :'( ? )
//DATADEFINITION : simconnect.AddToDataDefinition(DATA_DEFINE_ID.AILERON, "AILERON POSITION", null, SIMCONNECT_DATATYPE.FLOAT64, 0.0f, SimConnect.SIMCONNECT_UNUSED);
//ac.aileronpos is a double variable
//Fully Right
ac.aileronpos = 160.00;
simconnect.SetDataOnSimObject(DATA_DEFINE_ID.AILERON, (uint)SIMCONNECT_SIMOBJECT_TYPE.USER, 0, ac.aileronpos);
Thread.Sleep(3000);
//Center
ac.aileronpos = 0.00;
simconnect.SetDataOnSimObject(DATA_DEFINE_ID.AILERON, (uint)SIMCONNECT_SIMOBJECT_TYPE.USER, 0, ac.aileronpos);
Thread.Sleep(3000);
//FullyLeft
ac.aileronpos = -160.00;
simconnect.SetDataOnSimObject(DATA_DEFINE_ID.AILERON, (uint)SIMCONNECT_SIMOBJECT_TYPE.USER, 0, ac.aileronpos);
Thread.Sleep(3000);
}
}
}
So I just have 3 possible states of the yoke (must be 16001), I dont have access to the intermediate values and it is going fully to the right and fully to the left, and the center (so bad for a plane),
so please if you can help me it will be pretty apreciated.
Please feel free to ask for extra info if is it needed.
Thanks in advance!!!

