Jump to content
The simFlight Network Forums

whQQps

Members
  • Posts

    7
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    turkiye

whQQps's Achievements

Rookie

Rookie (2/14)

  • Reacting Well Rare
  • One Month Later Rare
  • Week One Done Rare
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. hi Paul, thank you very much for your help. now it works 🙂
  2. hi, i am writing codes for radio control box. i am using following ofsets. private Offset<int> com1offset = new Offset<int>("com1", 0x05C4); private Offset<int> com1stbyoffset = new Offset<int>("com1stby", 0x05CC); private Offset<int> com2offset = new Offset<int>("com2", 0x05C8); private Offset<int> com2stbyoffset = new Offset<int>("com2stby", 0x05D0); private Offset<short> nav1offset = new Offset<short>("nav1", 0x0350); private Offset<short> nav1stbyoffset = new Offset<short>("nav1stby", 0x311E); private Offset<short> nav2offset = new Offset<short>("nav2", 0x0352); private Offset<short> nav2stbyoffset = new Offset<short>("nav2stby", 0x3120); com offsets are ok. it returns 9 digits value like 132850000. i am cutting last 3 digits and splitting rest characters like following. 132 850 000 mhz khz delete but nav offsets returns different value. it showing 110.50 in msfs2020 but returns 4176. What am i doing wrong in? (Sorry for my poor English)
  3. problem solved i used below ofset st server. private Offset<int> com1stbyoffset1 = new Offset<int>("comstby", 0x05CC); then I added comstby value to json and I sent it to client. FSUIPCConnection.Process("comstby"); float comstbyValue1 = com1stbyoffset1.Value; comstbyValue1 = comstbyValue1 / 1000/1000; jsonObj["comstby"] = comstbyValue1; after seting new value at client side I sent new value to server and set offset with new value, if (msgname == "com1stbyvalue") { string com1stbyvalue = json["com1stbyvalue"].ToString(); int com1stbyvaluecalc =int.Parse(com1stbyvalue); FSUIPCConnection.Process("comstby"); com1stbyoffset1.Value = com1stbyvaluecalc; }
  4. or is there a way to increase radio frequency without sending calculated value. I am getting actual com1 value via json and and trying to add 5 on it and sendint to server.
  5. Hello, I am writing an application for MSFS 2020 with C Sharp and FSUIPC client dll. I define offset as below. private Offset<ushort> com1offset = new Offset<ushort>("RadioStack", 0x034E); private Offset<ushort> com1stbyoffset = new Offset<ushort>("RadioStack", 0x311A); and with the code below, I convert it to json and send it to the client application. msfs showing 3 digits after comma. i get 2 digits after the comma. (like 132.45). How can I get this as 3 digits? ,JObject jsonObj = JObject.Parse(jsonMessage); FSUIPCConnection.Process("RadioStack"); FsFrequencyCOM com1Helper = new FsFrequencyCOM(this.com1offset.Value); FsFrequencyCOM com1stbyHelper = new FsFrequencyCOM(this.com1stbyoffset.Value); string com1Value = com1Helper.ToString(); jsonObj["com1"] = com1Value; string com1stbyValue = com1stbyHelper.ToString(); jsonObj["com1stby"] = com1stbyValue; string updatedJsonMessage = jsonObj.ToString();
  6. it's working now. Thanks for your help :):)
  7. Hello. I'm trying to make a simple switchbox program with Csharp using FSUIPC Client dll. offset declarations as below. private Offset<int> alternatoroffset = new Offset<int>("alternator", 0x3101); private Offset<int> masterbatteryoffset = new Offset<int>("masterbattery", 0x3102); private Offset<int> avionpwrofset = new Offset<int>("avionicspower", 0x3103); For control, I assigned the offset values to the labels as below. lblalter.Text = this.alternatoroffset.Value.ToString(); lblavion.Text = this.avionpwrofset.Value.ToString(); lblmastbat .Text= this.masterbateryoffset.Value.ToString(); When avionics is off, the alternator offset value is 256 and 257. When avionics is on, the alternator offset is 65792 and 65793. I expect it to be 1 and 0. can you help me what is my mistake?
×
×
  • 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.