Hello, i need help with FSUIPC (C#). I want read touchdown rate (V/S) and write it to textbox. I tried this:
Offset:
private Offset<int> touchdown_rate = new Offset<int>(0x030C); // Offset pro zjištění t/d rate
private Offset<short> onGround = new Offset<short>(0x0366); // Offset pro nastavení zem/vzduch
In timer:
this.onGround.Value = 1;
double TouchdownRate = ((double)touchdown_rate.Value * 60D * 3.28084D / 256D);
this.txttouchdown.Text = TouchdownRate.ToString();
Button for check onGround:
private void button5_Click(object sender, EventArgs e)
{
this.onGround.Value = 1;
}
But in textbox is V/S in airborne... it´s always updating, but i want just record v/s at touchdown.. thank you very much.
P.S. Im beginner