Jump to content
The simFlight Network Forums

StevenK

Members
  • Posts

    8
  • Joined

  • Last visited

About StevenK

  • Birthday 04/21/1987

Profile Information

  • Gender
    Male
  • Location
    UK

Contact Methods

  • Skype
    steven.kiberton

StevenK's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Paul that is perfect Just what i was after
  2. Ooooo Many thanks Paul I will give this a go and let you know how it works out :)
  3. Hey everyone. Im trying to get the Magnetic and True heading for the aircraft into C# I have the Offset - 0580 I have also used this Offset - 02A0 Both give different results. I just cant work out the formular to get the correct headding. Anyone mind helping me on this one.
  4. Great stuff Many thanks and i will post a topic in your forum if i need any help. Again thanks :)
  5. Thanks Paul for the reply. Any chance you could post a link to the PDF's? I will place my project on hold for now and read the manuals
  6. The 16777217 is dividing the value it fetches by 16777217 so XXXX divided by 16777217 will give me the correct time for the Hours and Minuets And it is Paul Henty's yes. Would i be better using a different DLL? My basic idea is to create a custom ACARS system that will fetch data from FSX and send it to PHPVMS So far things are going good. Im able to connect to FSX and fetch all the data i need appart from FSX Date and Time and a few other small (none important) bits of info but I can live without them I just need to get the date and time from FSX
  7. I have been using FSInterrogate2 to get the offsets The offsets are Time: Hours: 0238 Minuets: 0239 Seconds: 023A Date: Day: 0245 Month: 0244 Year: 024A Here is the first part of the code that goes into C# private Offset<int> sim_timeh = new Offset<int>(0x0238); //TimeHours private Offset<int> sim_timem = new Offset<int>(0x0239); //TimeMinuets private Offset<int> sim_times = new Offset<int>(0x023A); //TimeSeconds private Offset<int> sim_dayd = new Offset<int>(0x0245); //DateDay private Offset<int> sim_daym = new Offset<int>(0x0244); //DateMonth private Offset<int> sim_dayy = new Offset<int>(0x024A); //DateYear These are then shown in a text label //Sim Time Hour:Minuet:Seconds double sim_timehour = (double)sim_timeh.Value / 16777217; //TimeHours double sim_timemin = (double)sim_timem.Value / 16777217; //TimeMinuets double sim_timesec = (double)sim_times.Value; //TimeSeconds this.fsxSimTime.Text = sim_timehour.ToString("F0") + ":" + sim_timemin.ToString("f0") + ":" + sim_timesec.ToString("f0"); //Sim Date Day/Month/Year double sim_dayday = (double)sim_dayd.Value; //DateDay double sim_daymonth = (double)sim_daym.Value; //DateMonth double sim_dayyear = (double)sim_dayy.Value; //DateYear this.fsxSimDate.Text = sim_daymonth.ToString("F0") + "/" + sim_daymonth.ToString("f0") + "/" + sim_dayyear.ToString("f0"); The Hour and Minuets and Year display perfect as they should. The Seconds, Day and Month just show random numbers. I used the offests found in the FSInterrogate2, and so far all my other requests from FSX using other offsets are giving the correct data.
  8. Hi everyone. I need a little help. I am trying to get the current date and time from FSX through FSUIPC into a c# program im making. So far i have managed to get the following working. Hours Minuets Year I need help on the "seconds" "day" "month" If someone can help me work out the number I need to devide it by i would be very greatful Here is my code so far I have entered XXXXX for the parts I need help with Many Thanks //Sim Time Hour:Minuet:Seconds double sim_timehour = (double)sim_timeh.Value / 16777217; double sim_timemin = (double)sim_timem.Value / 16777217; double sim_timesec = (double)sim_times.Value XXXXX; this.fsxSimTime.Text = sim_timehour.ToString("F0") + ":" + sim_timemin.ToString("f0") + ":" + sim_timesec.ToString("f0"); //Sim Date Day/Month/Year double sim_dayday = (double)sim_dayd.Value XXXXX; double sim_daymonth = (double)sim_daym.Value XXXXX; double sim_dayyear = (double)sim_dayy.Value; this.fsxSimDate.Text = sim_daymonth.ToString("F0") + "/" + sim_daymonth.ToString("f0") + "/" + sim_dayyear.ToString("f0");
×
×
  • 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.