Jump to content
The simFlight Network Forums

fixair

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by fixair

  1. Good evening Paul,

    Thank you again once for your help so precious.

    I followed your indications as for Offset

    double verticalSpeed_MetresPerSecond = (double)verticalSpeed.Value / 256d;

    double verticalSpeed_FeetPerMinute = (double)verticalSpeed.Value * 60d * 3.28084d / 256d;

    double altitude_Metres = (double)altitude.Value / (65536d * 65536d);

    double altitude_Feet = (double)altitude.Value / (65536d * 65536d) * 3.28084d;

    The first thing to look at would be the interval for 'timer1'. This sets how often the timer1_Tick() method runs. If you want it smooth you need something like 20 ticks per second. This is an interval of 50ms. So set the timer1.Interval property to 50.

    If you used my example application as a starting point, the interval is set to 200 in the method openFSUIPC(). This is only 5 times per second so it will be jerky. This is the line you should change.

    , and the modifications brought to Timer1 are effective. I confirm you that I leaned on your tuto to make my soft.

    I me low now for him(it) 0x036E Turn co-ordinator ball position, it seems to me that it is a soft, but I do not take(bring) out there, I crossed(spent) three hours there today. I do not discourage to arrive there one day...

    Cordially FX

  2. And indeed if, I need help(assistant), I am really a beginner in the coding of software. Thank you for your answer it works. Nevertheless I always stumble over the speed vertical ( 0x02C8 ) and the height. I pedal very very also with my card(map) Arduino, I do not arrive has to have a flow of dated fluids: my servos is jerky, would have you an idea? One thousand excuses to have made a double(doubloon) of this comment while, I had not seen your answer.

    Thank you again for your help(assistant). For information, one bets of my simulator will be present at the end of the month in 7 ° World Lounge(Show) of the Simulation in Bourget ( LFPB) with the association FAFZONE.

    Cordially FX ;op

  3. Hi, to start with, I am a young French developer which does not speak English a lot, then I use a converter. I work on a Lark 2 which I transform into simulator. It is whom(that) that begins to clamp(stick): I decided to keep(preserve) the instruments in which I put servos or step by step engine. The problem it is the part(party) codes: I do not arrive has to extract the height, the vertical speed and the fuel by serving me as your DLL. It works well for the heading and Eng RPM. These data are sent back(dismissed) on a port(bearing) COM for a card(map) Arduino.

    Could you say to me of what you think of it?

    In advance thank you.

    I invite you has to follow this link or you will see my Alouette 2 : www.mediafx.fr/318

    Look almost everywhere and especially Panel....

    FX ;op

    private Offset<int> airspeed = new Offset<int>(0x02BC); // Basic integer read example

    private Offset<int> rotorRpm = new Offset<int>(0x0908); // rotor rpm

    private Offset<int> turbRpm = new Offset<int>(0x0896);

    private Offset<Double> pressEngOil = new Offset<Double>(0x3B60);

    private Offset<Double> tempEngOil = new Offset<Double>(0x3B58); private String tmpEnOil, tmpEnOilold;

    private Offset<int> torque = new Offset<int>(0x08F4); private String Tork, TorkOld; // rotor torq

    private Offset<int> temptur = new Offset<int>(0x08F0); private String TempTur, TempTurOld; // temp turb

    private Offset<Double> banke = new Offset<Double>(0x2F78); private String Bank, BankOld; // HA_Bank

    private Offset<Double> pitche = new Offset<Double>(0x2F70);private String Pitch,PitchOld; // HA_Pitch

    private Offset<Double> comp = new Offset<double>(0x2B00);

    private String data = "";

    private Offset<Double> test = new Offset<Double>(0x3544); // test 0360 08BA

    public Form1()

    {

    InitializeComponent();

    serialPort1.PortName = "COM7";

    serialPort1.BaudRate = 115200;

    button9.Text = "connecter";

    button10.Text = "déconnecté";

    button10.Enabled = false;

    ..../....

    private void timer1_Tick(object sender, EventArgs e)

    {

    // Process the default group

    try

    {

    FSUIPCConnection.Process();

    double airpeedKnots = ((double)airspeed.Value / 128d*1.852);// ias en Km/H

    this.txtIAS.Text = airpeedKnots.ToString("f0");

    int rotorrpm = ((int)rotorRpm.Value / (16384 / 100));

    this.rotorBox.Text = rotorrpm.ToString("f1");

    double Torque = ( (int)torque.Value / (16384 / 100) );

    this.torqBox.Text = Torque.ToString();

    Tork = "T" + Torque.ToString("f1");

    if ((serialPort1.IsOpen) && (Tork != TorkOld)) { TorkOld = Tork; serialPort1.Write(Tork); };

    int TempTur = ((int)temptur.Value / 16384);

    this.tempturbbox.Text = TempTur.ToString();

    int Bank2 = ((int)banke.Value);

    this.bankBox.Text = Bank2.ToString("f1");

    Bank = "B" + Bank2.ToString();

    if ((serialPort1.IsOpen) && (Bank != BankOld)) { BankOld = Bank; serialPort1.Write(Bank); };

    int Pitch2 = ((int)pitche.Value);

    this.pitchBox.Text = Pitch2.ToString();

    Pitch = "A" + Pitch2.ToString();

    if ((serialPort1.IsOpen) && (Pitch != PitchOld)) { PitchOld = Pitch; serialPort1.Write(Pitch); };

    int TEO = (((int)tempEngOil.Value * 140/16384)*14);

    this.ToilBox.Text = TEO.ToString();

    double PEO = (((double)pressEngOil.Value *55/16384)/7.25);

    this.PoilBox.Text = PEO.ToString("f1");

    int TR = ((int)turbRpm.Value *(100/16384));

    this.rpmTurBox.Text = TR.ToString("f1");

    double COMP = ((double)comp.Value);

    this.capBox.Text = COMP.ToString("f0");

    /////////////test

    double Test = ( (double)test.Value );

    this.testBox.Text = Test.ToString("f0");

    data = Pitch + Bank + Tork; textBox10.Text = data;

    }

    ..../....

  4. Hello Paul, to start with, I am a young French developer which does not speak English a lot, then I use a converter. I work on a Lark 2 which I transform into simulator. It is whom(that) that begins to clamp(stick): I decided to keep(preserve) the instruments in which I put servos or step by step engine. The problem it is the part(party) codes: I do not arrive has to extract the height, the vertical speed and the fuel by serving me as your DLL. It works well for the heading and Eng RPM. These data are sent back(dismissed) on a port(bearing) COM for a card(map) Arduino.

    Could you say to me of what you think of it?

    In advance thank you.

    I invite you has to follow this link or you will see my Alouette 2 : www.mediafx.fr/318

    Look almost everywhere and especially Panel....

    FX ;op

    private Offset<int> airspeed = new Offset<int>(0x02BC); // Basic integer read example

    private Offset<int> rotorRpm = new Offset<int>(0x0908); // rotor rpm

    private Offset<int> turbRpm = new Offset<int>(0x0896);

    private Offset<Double> pressEngOil = new Offset<Double>(0x3B60);

    private Offset<Double> tempEngOil = new Offset<Double>(0x3B58); private String tmpEnOil, tmpEnOilold;

    private Offset<int> torque = new Offset<int>(0x08F4); private String Tork, TorkOld; // rotor torq

    private Offset<int> temptur = new Offset<int>(0x08F0); private String TempTur, TempTurOld; // temp turb

    private Offset<Double> banke = new Offset<Double>(0x2F78); private String Bank, BankOld; // HA_Bank

    private Offset<Double> pitche = new Offset<Double>(0x2F70);private String Pitch,PitchOld; // HA_Pitch

    private Offset<Double> comp = new Offset<double>(0x2B00);

    private String data = "";

    private Offset<Double> test = new Offset<Double>(0x3544); // test 0360 08BA

    public Form1()

    {

    InitializeComponent();

    serialPort1.PortName = "COM7";

    serialPort1.BaudRate = 115200;

    button9.Text = "connecter";

    button10.Text = "déconnecté";

    button10.Enabled = false;

    ..../....

    private void timer1_Tick(object sender, EventArgs e)

    {

    // Process the default group

    try

    {

    FSUIPCConnection.Process();

    double airpeedKnots = ((double)airspeed.Value / 128d*1.852);// ias en Km/H

    this.txtIAS.Text = airpeedKnots.ToString("f0");

    int rotorrpm = ((int)rotorRpm.Value / (16384 / 100));

    this.rotorBox.Text = rotorrpm.ToString("f1");

    double Torque = ( (int)torque.Value / (16384 / 100) );

    this.torqBox.Text = Torque.ToString();

    Tork = "T" + Torque.ToString("f1");

    if ((serialPort1.IsOpen) && (Tork != TorkOld)) { TorkOld = Tork; serialPort1.Write(Tork); };

    int TempTur = ((int)temptur.Value / 16384);

    this.tempturbbox.Text = TempTur.ToString();

    int Bank2 = ((int)banke.Value);

    this.bankBox.Text = Bank2.ToString("f1");

    Bank = "B" + Bank2.ToString();

    if ((serialPort1.IsOpen) && (Bank != BankOld)) { BankOld = Bank; serialPort1.Write(Bank); };

    int Pitch2 = ((int)pitche.Value);

    this.pitchBox.Text = Pitch2.ToString();

    Pitch = "A" + Pitch2.ToString();

    if ((serialPort1.IsOpen) && (Pitch != PitchOld)) { PitchOld = Pitch; serialPort1.Write(Pitch); };

    int TEO = (((int)tempEngOil.Value * 140/16384)*14);

    this.ToilBox.Text = TEO.ToString();

    double PEO = (((double)pressEngOil.Value *55/16384)/7.25);

    this.PoilBox.Text = PEO.ToString("f1");

    int TR = ((int)turbRpm.Value *(100/16384));

    this.rpmTurBox.Text = TR.ToString("f1");

    double COMP = ((double)comp.Value);

    this.capBox.Text = COMP.ToString("f0");

    /////////////test

    double Test = ( (double)test.Value );

    this.testBox.Text = Test.ToString("f0");

    data = Pitch + Bank + Tork; textBox10.Text = data;

    }

    ..../....

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.