Jump to content
The simFlight Network Forums

ctabuyo

Members
  • Posts

    11
  • Joined

  • Last visited

Posts posted by ctabuyo

  1. There isn't anything I'm aware of which keeps track of the user aircraft "flight phases", only AI traffic. Normally the pilot is aware of what he is doing.

     

    You can tell from offsets when you are on the ground, whether you are moving forward or backward, whether you are climbing, flying leveel or descending. I suppose you could read all the necessary values and deduce what you are doing.

     

    Pete

     

     

    Yeah, in fact I´m already that by using an "if statement" with "on ground value", "start value", "time", "alt" and "speed". However it is a bit tedious and I though that maybe there was an offset.

     

    Kind regards!

     

    PS: And thanks for answering so fast ;)

  2. Yes, but I suggest you Frederic to wait a bit with my code. Because it´s still not perfect and I have to talk with the creator of VAM because we still have some issues during the sending of the PIREP. So if one day Alejandro has time and he wants he will explain me few things about VAM and I will have the ACARS working 100%.

     

    Regards!

  3. Well, Paul... I finally managed to get my ACARS ready. Yesterday I released V1 without penalties and today I´m working on it, and it looks very cool... It´s been a bit hard for me, and also be sure that I couldn´t do the programm without your help, I´m stiill 14 years old and this is my first Windows app, I used to programm using Swift on iOS/OS X but I started to learn CSharp in early 2015... So I just wanna thank all of your help, Paul!!

     

    I will leave here a link, if you wanna try the app and give me your opinion about it... I´ve made a test user in my website so you can login using:  Username: TAG100 Password: 123456

     

    http://www.mediafire.com/download/qkwjm0q98d8f32d/TAG+ACARS+V1.0%282%29.rar

     

    And once again Paul, thanks for all!! I will try to help as much as I can here.

     

    Regards!!

  4. Just one last time, guys, before you kill me ;) ;) ;)

     

    How can I manage to make my tracker, give a value of your flight starting with 100% and with some penalties subtract from the inical 100%. I mean if you forgot to turn on landing lights on APP, subtract -10% from your initial score of 100%

     

    Thx!! And I promised this will be my last question!!

  5. I am having some problems now with making an events section, where flaps movement, pauses of the sim, slew mode, crashes, flaps, gear.... Remain logged to make sure the validator can sees it. And also a critical events section where things like overspeed, incorrect use of flaps remain logged too. But I can´t do that. I need some help...

     

     

    Regards!

  6. HI:

     

    I´m programming my own tracker in CSharp, I managed to get few offsets working. The problem is that I want to track in real time, and that doesn´t happen. I heard that using a time you can, but I don´t have any idea on how to use it.

     

    I left here my code:

    using MetroFramework.Forms;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using FSUIPC;
     
    
    namespace TAG_ACARS
    {
        public partial class Form1 : MetroForm
        {
            public Form1()
            {
                InitializeComponent();
            }
    
            private void Form1_Load(object sender, EventArgs e)
            {
    
            }
    
            private void metroLabel5_Click(object sender, EventArgs e)
            {
    
            }
    
            private void metroButton1_Click(object sender, EventArgs e)
            {
                try { // Attempt to open a connection to FSUIPC (running on any version of Flight Sim) 
                    FSUIPCConnection.Open(); 
                    // Opened OK 
                } 
                catch (Exception ex) 
                { 
                    // Badness occurred - show the error message 
                    MessageBox.Show(ex.Message, AppTitle, MessageBoxButtons.OK, MessageBoxIcon.Error); }
            }
        
    public  string AppTitle { get; set; }
            
    
    private void metroButton2_Click(object sender, EventArgs e)
    {
        FSUIPCConnection.Close();
    }
            
    private void textBox1_TextChanged(object sender, EventArgs e)
    {
        Offset<int> airspeed = new Offset<int>(0x02BC);
           FSUIPCConnection.Process(); 
        double airpeedKnots = (double)airspeed.Value / 128d;
        this.textBox1.Text = airpeedKnots.ToString("f0");
        timer1.Enabled = true;
        
    }
    
    private void metroButton3_Click(object sender, EventArgs e)
    {
        axWindowsMediaPlayer2.URL = "http://63.243.149.5/LOS40CMP3";
    }
    
    private void axWindowsMediaPlayer2_Enter(object sender, EventArgs e)
    {
    
    }
    
    private void metroButton4_Click(object sender, EventArgs e)
    {
    
    }
    
    private void metroButton6_Click(object sender, EventArgs e)
    {
       
    }
    
    private void textBox5_TextChanged(object sender, EventArgs e)
    {
        Offset<int> GroundSpeed = new Offset<int>(0x02B4);
        FSUIPCConnection.Process();
        double GroundSpeedKnots = (double)GroundSpeed.Value / 65536d;
        this.textBox5.Text = GroundSpeedKnots.ToString("f0");
    }
    
    private void textBox3_TextChanged(object sender, EventArgs e)
    {
        Offset<double> agl = new Offset<double>(0x0020);
    string altitude = agl.Value.ToString();
    }
    
    private void textBox11_TextChanged(object sender, EventArgs e)
    {
        Offset<int> Flapscontrol = new Offset<int>(0x0BDC);
        
    
    }
    
    private void textBox7_TextChanged_1(object sender, EventArgs e)
    {
    
    }
    
    private void textBox12_TextChanged(object sender, EventArgs e)
    {
        Offset<int> ZeroFuelWeight = new Offset<int>(0x3BFC);
        FSUIPCConnection.Process();
        double ZeroFuelWeightlbs = (double)ZeroFuelWeight.Value / 256;
        this.textBox12.Text = ZeroFuelWeightlbs.ToString("f0");
    
    }
    
    private void textBox2_TextChanged(object sender, EventArgs e)
    {
         Offset<int> verticalSpeed = new Offset<int>(0x02C8);
        double verticalSpeed_FeetPerMinute = (double)verticalSpeed.Value * 60d * 3.28084d / 256d;
        this.textBox2.Text = verticalSpeed_FeetPerMinute.ToString("");
    }
    
    private void textBox4_TextChanged(object sender, EventArgs e)
    {
        Offset<int> gearPositionNose = new Offset<int>(0x0BEC);
    
        if (gearPositionNose.Value == 0)
        {
            this.textBox4.Text = "Gear Up";
        }
        else if (gearPositionNose.Value == 16383)
        {
            this.textBox4.Text = "Gear Down";
        }
        else
        {
            this.textBox4.Text = "Gear In Transit";
        }
    }
    }
    } 
    
×
×
  • 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.