Jump to content
The simFlight Network Forums

motuslechat

Members
  • Posts

    36
  • Joined

  • Last visited

Everything posted by motuslechat

  1. Thank you Paul for your answer. You don't need to open the source of your dll to create a repository. You can only put the last compliled version, docs and samples sources. It will be easier to find all at the same place. But I understand your point of view and you do what you want. Thank you again. Motus
  2. Hi Paul, I think it will be a good idea to create a repository (like Github) to "share" last version of FSUIPCClient.dll with changelog and samples to use it. Members can share their source code on this repository. Thank you again for your excellent DLL. Motus
  3. Hi Paul, I have already code to do this. Tell me if you want it. Motus
  4. Hi Paul, Thank you very much. I have a question (peraphs stupid) but I don't undestand how it works. I have my aircraft : A1, and 2 others same aircrafts : A2 and A3. I want to switch on Taxi Light for A3 but not for A2 and A1. With simconnect, we use ID of object to send data to a specific object. How to specify one object with FSUIPC and your DLL ? Thanks. Motus.
  5. Thank you Paul for this answer. Yes the "target" aircraft have 'event' to switch on/off light. I will have a look at offset 0x3110. I will be happy to have version 3 of your DLL and some sample codes. Thank you again. Motus
  6. Hi, I have test the code delivered with .NET FSUIPC DLL. It works fine with the user aircraft but I wanted to know if it is possible to command "lights" to an other aircraft. Thank you for your help and your excellent DLL. Motus
  7. Thank you Paul, Sorry, I'm too tired. I go sleeping ;)
  8. Hi, Thank you for your client of FSUIPC for dotnet programer :rolleyes: I have started to use it and try to get Zulu Time like this : private Offset<byte[]> fsLocalDateTime = new Offset<byte[]>(0x0238, 10); private Offset<byte[]> fsZuluDateTime = new Offset<byte[]>(0x023B, 10); private Offset<byte> zmin = new Offset<byte>(0x23c); private Offset<byte> zhour = new Offset<byte>(0x23b); private Offset<byte> second = new Offset<byte>(0x23a); private void timer1_Tick(object sender, EventArgs e) { // Process the default group try { FSUIPCConnection.Process(); // get local Time short year = BitConverter.ToInt16(fsLocalDateTime.Value, 8); DateTime fsTime = new DateTime(year, 1, 1, fsLocalDateTime.Value[0], fsLocalDateTime.Value[1], fsLocalDateTime.Value[2]); short dayNo = BitConverter.ToInt16(fsLocalDateTime.Value, 6); fsTime = fsTime.Add(new TimeSpan(dayNo - 1, 0, 0, 0)); this.textBox1.Text = fsTime.ToString("dddd, MMMM dd yyyy hh:mm:ss"); // get Zulu Time year = BitConverter.ToInt16(fsZuluDateTime.Value, 8); DateTime fsZuluTime = new DateTime(year, 1, 1, fsZuluDateTime.Value[0], fsZuluDateTime.Value[1], fsZuluDateTime.Value[2]); short zuludayNo = BitConverter.ToInt16(fsZuluDateTime.Value, 6); fsZuluTime = fsTime.Add(new TimeSpan(dayNo - 1, 0, 0, 0)); this.textBox2.Text = fsTime.ToString("dddd, MMMM dd yyyy hh:mm:ss"); // or like this year = BitConverter.ToInt16(fsZuluDateTime.Value, 8); DateTime fsZuluTimeBis = new DateTime(year, 1, 1, zhour.Value, zmin.Value, second.Value); this.textBox3.Text = fsZuluTimeBis.ToString("dddd, MMMM dd yyyy hh:mm:ss"); } } but with this code the local time = zulu time even if my aircraft is on airport in GMT+8 Thank you for youyr help. Motus
×
×
  • 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.