Jump to content
The simFlight Network Forums

A320_Pilot

Members
  • Posts

    58
  • Joined

  • Last visited

Everything posted by A320_Pilot

  1. Some questions! 1.Give me please a sample code, how to do it! 2.How to add in DB coordinates of airport, in one field record the latitude and longitude once or each in its field? 3.What used offset this, and how to write it correctly? if (previous_onGndFlag != current_onGndFlag) { if (current_onGndFlag == 1) { // - save the data you need - } previous_onGndFlag = current_onGndFlag; // update previous_onGndFlag } private Offset<short> gndFlag = new Offset<short>(0x0366); Does not work! George
  2. MySQL I know well, so what exactly should the database from the airport: ICAO Code, IATA Code and Coordinates? George
  3. Well, and how then to define airport of departure that removed the ICAO code?
  4. And this Grund flag will not work on taxi?
  5. In the DB I can write, I do not know how to read parameters when touching!
  6. Ok, i made this! But how to do this: Plane touched the runwayneed to write off the parameters (speed, vertical speed, airport, landing lights) and record in the database MySQL ????
  7. if (FSUIPCConnection.Open == true) { this.checksim.Text = CLIENT_MSG6_RU; } else { this.checksim.Text = CLIENT_MSG7_RU; } That's it right?
  8. How to check whether the simulator is running or not?
  9. All done, it works, I'm not yet found one offset, what version of the simulator has been launched!
  10. Thanks Paul, with coming new year you!!!!)))))
  11. //TAS in knots & km/h double tasKMH = ((double)airspeed_tas.Value / 128d * 1.852d); double tasKnots = ((double)airspeed_tas.Value / 128d); this.tasAir1.Text = tasKnots.ToString("F0") + CLIENT_MSG4_RU + " / " + tasKMH.ToString("F0") + CLIENT_MSG5_RU; //IAS in knots & km/h double airpeedKmh = ((double)airspeed.Value / 128d * 1.852d); double airpeedKnots = ((double)airspeed.Value / 128d); this.iasAir1.Text = airpeedKnots.ToString("F0") + CLIENT_MSG4_RU + " / " + airpeedKmh.ToString("F0") + CLIENT_MSG5_RU; I convert correctly? As for the headlights, I did not understand, it is impossible to deduce (On, Off)!
  12. Hello Paul, 1. What offset use for lights (landing, taxi, navigation, strobes for Read)? 2.What is the difference in the offset value "int", "Long", "short", "double", "string"? Where i can read about it? 3.Whether correctly I convert ground speed? double gsKMH = ((double)airspeed_gs.Value / 65536d * 3.28084d); double gsKnots = ((double)airspeed_gs.Value / 65536d * 1.943844492); this.gsAir1.Text = gsKnots.ToString("F0") + " (Knots)" + " / " + gsKMH.ToString("F0") + " (Km/h)"; 4.And how convert Zero fuel weight, empty weight and payload? I write this: //Empty weight in lbs & kgs double fw_ew_lbs = ((double)fw_ew.Value / 256d); double fw_ew_kgs = ((double)fw_ew.Value / 256d); this.emw1.Text = fw_ew_lbs.ToString("F0") + " (Lbs)" + " / " + fw_ew_kgs.ToString("F0") + " (Kgs)"; //---------------------------------------------------------------------------------// //Zero fuel weight in lbs & kgs double fw_zfw_lbs = ((double)fw_zfw.Value / 256d); double fw_zfw_kgs = ((double)fw_zfw.Value / 256d); this.zfw1.Text = fw_zfw_lbs.ToString("F0") + " (Lbs)" + " / " + fw_zfw_kgs.ToString("F0") + " (Kgs)"; //---------------------------------------------------------------------------------// //Weight payload in lbs & kgs double fw_pl_lbs = ((double)fw_payload.Value / 256d); double fw_pl_kgs = ((double)fw_payload.Value / 256d); this.payload1.Text = fw_pl_lbs.ToString("F0") + " (Lbs)" + " / " + fw_pl_kgs.ToString("F0") + " (Kgs)";
  13. And another question! Why do we need file: FSUIPCClient.XML
  14. I have a problem, flaps are displayed correctly, but the slats are not, either 0 or 1 degree! //Flaps position double flapLL = (double)inbFlapLL.Value / 256d; double flapLR = (double)inbFlapLR.Value / 256d; double flapTL = (double)inbFlapTL.Value / 256d; double flapTR = (double)inbFlapTR.Value / 256d; this.flapsPos.Text = flapLL.ToString("F0") + "° " + flapLR.ToString("F0") + "° " + flapTL.ToString("F0") + "° " + flapTR.ToString("F0") + "°"; private Offset<short> inbFlapTL = new Offset<short>(0x30F0); private Offset<short> inbFlapTR = new Offset<short>(0x30F4); private Offset<short> inbFlapLL = new Offset<short>(0x30F8); private Offset<short> inbFlapLR = new Offset<short>(0x30FC);
  15. Thanks for the answer Paul, and the last two questions: 1. How to deduce the state of the gear (Up, Down)? 2.How to deduce the state of the wing (degrees slats and flaps)?
  16. How to derive GS? Do so, but not out! double airpeedKnotsGround = (double)airspeed_gs.Value / (65536d * 3.28084); this.label18.Text = airpeedKnotsGround.ToString("F0") + " Knots";
  17. Thanks Paul, code is worked :) Where i can find ofssets fsuipc 4 for FS9???
×
×
  • 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.