Jump to content
The simFlight Network Forums

Search the Community

Showing results for tags 'offset'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Product Support Forums
    • FSUIPC Support Pete Dowson Modules
    • MyTraffic Support Forum
    • FeelThere Support Forums
    • FS Commander Support Forum
    • FScene Support Forum
    • Taburet & DanVFR Support Forum
    • Flying W Simulation
    • AConstable Traffic Sounds Support Forum
    • CLS Support
    • Fabio Merlo Products Support Forum
    • Elite-Air Studio Support Forum
    • Nikola Jovanovic Support Forum
    • iBlueYonder Support
    • Intrasystems Support Forum
    • FSPS Support Forum (LEGACY)
  • simFlight DE
    • FS Software
    • FS Hardware
    • FS MAGAZIN Forum
  • simRussia
  • FSUIPC Client DLL for .NET


  • Community Calendar


There are no results to display.

Found 19 results

  1. hello, as the title says it all, i want to read the heading into my application (through C++) i've tried everything that came to my mind to fix this, but i couldnt fix this this is my code: //this function normalizes the heading uint32_t normalize_heading(int32_t h) { if(h>359) { h-=359; } else if(h<0) { h+=359; } return h; } unsigned int heading; short mag_var; if(FSUIPC_Read(0x0580, 4, &heading, &result)&&FSUIPC_Process(&result)) { if(FSUIPC_Read(0x2A0, 2, &mag_var, &result)&&FSUIPC_Process(&result)) { double hdg1=heading*360/65536; double hdg2=mag_var*360/65536; double hdg3=hdg1-hdg2; hdg3=normalize_heading(hdg3); show_heading(hdg3); i've also tried this when calculating the heading: unsigned int heading; short mag_var; if(FSUIPC_Read(0x0580, 4, &heading, &result)&&FSUIPC_Process(&result)) { if(FSUIPC_Read(0x2A0, 2, &mag_var, &result)&&FSUIPC_Process(&result)) { double hdg1=heading*360/(65536*65536); double hdg2=mag_var*360/65536; double hdg3=hdg1-hdg2; hdg3=normalize_heading(hdg3); but compiler gave warning about devide by zero then when i run this, it crashes my application thanks in advance for your help peter
  2. Hello Peter, I'm using MobiFlight, a freeware software which lets Arduino boards communicate with P3D via FSUIPC or Simconnect. I'm using it with PMDG airplanes along with their custom offset & event list without any problem. Yet i need to find the default planes' output offsets like B58, B350 etc, but in the huge Offset list you provide with FSUIPC, i can't find any annunciator offsets like "LOW RPM", "OVERSPEED", "LOW PRESS" etc, you name it. Isn't there any kind of offsets for them as well ? Another question is, i need some basic info about the abbrevations used in FSUIPC like FLOAT,U32,U16 etc. There's a project which you probably know about called XPUIPC, and there are a lots of arrays, floats, int's in it's tutorial, and i don't know how they work and what are the differences :) Is there any source in which i can find some even brief explanation about all of these ? Thanks in advance
  3. Good morning/afternoon to all, I have just purchased a VRinsight Multi-Switch panel and would like to do the following: - Assign the R1/R2 rotary buttons to the PMDG777 panel lights in order to control the cockpit lighting from that panel - Assign S1/S sliders to the PMDG777 ENG1/ENG2 fuel cut-off buttons. When I get to the max of the slider, the ENG1 switch will flip to on. When I slide to the mininum, the ENG1 switch flips to off. Any way to create events based on an axis actual value? I know for key press but not for specific events like above. Thanks, Fred
  4. The offset 024C is defined returning available FS memory. With FSUIPC5 5.101h this value is permanently zero (0). Is this correct?
  5. Draw Wind - Detect gate via G5.CSv

    Hello Paul, What's the way to catch Wind & speed and draw in realtime an Arrow to a form, for my acars system reports in vb.net ? I'm looking for a function you to do that. Public Function getrunaway(ByVal icaocode As String) As String Dim lon As FsLongitude = New FsLongitude(playerLongitude.Value) Dim lat As FsLatitude = New FsLatitude(playerLatitude.Value) ' Get the point for the current plane position Dim currentPosition As FsLatLonPoint = New FsLatLonPoint(lat, lon) Dim pathto As String = My.Application.Info.DirectoryPath Using MyReader As New Microsoft.VisualBasic.FileIO.TextFieldParser(pathto & "\runways.csv") MyReader.TextFieldType = FileIO.FieldType.Delimited MyReader.SetDelimiters(",") Dim runawayst As String Dim runawaynum As String Dim runawaydes1 As String Dim runawaydes2 As String = "" Dim runawayreturn As String Dim currentRow As String() While Not MyReader.EndOfData Try currentRow = MyReader.ReadFields() If currentRow(0) = icaocode Then runawayst = currentRow(1) runawaynum = runawayst.Substring(1, 2) runawaydes1 = runawayst.Substring(3, 1) If runawaydes1 = "0" Then runawaydes2 = "" If runawaydes1 = "1" Then runawaydes2 = "L" If runawaydes1 = "2" Then runawaydes2 = "R" If runawaydes1 = "3" Then runawaydes2 = "C" If runawaydes1 = "4" Then runawaydes2 = "W" Dim aaa As String = currentRow(2) Dim bbb As String = currentRow(3) Dim aaaa As Double Dim bbbb As Double aaaa = System.Convert.ToDouble(aaa) bbbb = System.Convert.ToDouble(bbb) Dim rwyThresholdLat As FsLatitude = New FsLatitude(aaaa) Dim rwyThresholdLon As FsLongitude = New FsLongitude(bbbb) Dim rwyMagHeading As Double = CDbl(currentRow(5)) Dim rwyMagVariation As Double = 0 Dim rwyLength As Double = CDbl(currentRow(6)) / 2 Dim rwyWidth As Double = 254D Dim thresholdCentre As FsLatLonPoint = New FsLatLonPoint(rwyThresholdLat, rwyThresholdLon) Dim trueHeading As Double = rwyMagHeading + rwyMagVariation runwayQuad = FsLatLonQuadrilateral.ForRunway(thresholdCentre, trueHeading, rwyWidth, rwyLength) If runwayQuad.ContainsPoint(currentPosition) = True Then runawayreturn = runawaynum & runawaydes2 Return runawayreturn MyReader.Close() MyReader.Dispose() Exit Function End If End If Catch ex As Microsoft.VisualBasic.FileIO.MalformedLineException 'MsgBox("Line " & ex.Message & "is not valid and will be skipped.") End Try End While MyReader.Close() MyReader.Dispose() End Using Return "" End Function Public Function getWindDirectionFromMETAR(metar As String) Dim heading As Integer = 0 Try Dim endPos As Integer = metar.IndexOf("KT") If endPos >= 0 Then Dim startPos As Double = metar.LastIndexOf(" ", endPos) If startPos >= 0 Then heading = metar.Substring(startPos + 1, 3) End If End If Catch ex As Exception End Try Return heading End Function Thanks Regards Fred
  6. Hey guys, I need some help with my lua script which reads a FSUIPC offset. Its not working as intended and I'm not sure why Essential I need a message to be displayed when I switch the Landing Lights ON. But I only want this to happen when I am airborne, not on the ground. To check this I read the FSUIPC offset 0366 to see if the plane is airborne. However I must have coded the ipc.readSW(offset) incorrectly, because the wrong message is being displayed even when I am on the ground. Here is the code: function runMessage(event, param) local gnd = ipc.readSW(0366) if (gnd == 1) then ipc.display("you are on the ground and the offset was read correctly", 1, 0 ) return end if (gnd == 0) then ipc.display("Landing Lights ON: .. message here", 1, 0 ) return end end event.control(66059, "runMessage") -- lights on Thanks
  7. Hi, I find nowhere which is the offset for thePMDG 737NGX Cockpit Voice Recorder (CVR) green test light. Could some one help me on this? Thanks in advance for your support. Best regards, Jose
  8. Hi Pete, As I am currently very interested in the deeper functionality of FSUIPC and Simconnect, I may ask you, if you know about some documentation like a "white paper" about these topics. My interest, as an IT man, goes to some questions like: How gets FSUIPC access to the FSX data? How gets Simconnect access to FSX data? What protocols are used (TCP IP, named Pipes, Queues, etc) ? What roles are LVARS playing? What roles are the OFFSETS playing? How is the "cooperation" between both access modes ? Thanks, regards Alhard
  9. Hi! I have a problem with getting the Transponder code from FSX, my code looks actually like this : Offset<short> TransponderReq = new Offset<short>(0x0354); FSUIPCManager.ProcessFSUIPC(); //Processing FSUIPC double Transponder2 = (double)TransponderReq.Value; string Transponder = Transponder2.ToString(); And it returns "4608" for the transponder "2406". It not works with any different values. Thank you !
  10. Airbus X Extended FCU

    Moin, ich baue zurzeit die FCU eines Airbus A320 nach, damit ich mit diesem Panel den Airbus X Extended Steuern kann. Als Input dient ein Arduino Mega Board. Ich wollte für die Steuerung gerne die Mobiflight Software nutzen. Dafür müsste ich jedoch die LVAR's des AXE in FSUIPC Offsets umwandeln. Gibt es eine andere Software oder kann mir jemand erklären, wie ich für die LVAR's eigene Offsets anlege? Danke schonmal:) Viele Grüße Marvin
  11. Hi I use the "Offset Mapping for PMDG 737NGX" pdf to configure my leds. With the SP of the NGX there are new variables available. This pdf was last revised 7th April 2012. Is there a new document to get offsets for MAIN_annunAP_Amber & MAIN_annunAT_Amber f.e. ? Many happy landings Andi // New variables for SP2 unsigned int COMM_ReceiverSwitches[3]; // Bit flags for selector receivers (see ACP_SEL_RECV_VHF1 etc): [0]=Capt, [1]=FO, [2]=Overhead bool MAIN_annunAP_Amber[2]; // Amber color bool MAIN_annunAT_Amber[2]; // Amber color int ICE_WindowHeatTestSw; // 0: OVHT 1: Neutral 2: PWR TEST bool DOOR_annunFWD_ENTRY; bool DOOR_annunFWD_SERVICE; bool DOOR_annunAIRSTAIR; bool DOOR_annunLEFT_FWD_OVERWING; bool DOOR_annunRIGHT_FWD_OVERWING; bool DOOR_annunFWD_CARGO; bool DOOR_annunEQUIP; bool DOOR_annunLEFT_AFT_OVERWING; bool DOOR_annunRIGHT_AFT_OVERWING; bool DOOR_annunAFT_CARGO; bool DOOR_annunAFT_ENTRY; bool DOOR_annunAFT_SERVICE; bool AIR_annunAUTO_FAIL; bool AIR_annunOFFSCHED_DESCENT; bool AIR_annunALTN; bool AIR_annunMANUAL; float AIR_CabinAltNeedle; // Value - ft float AIR_CabinDPNeedle; // Value - PSI float AIR_CabinVSNeedle; // Value - ft/min float AIR_CabinValveNeedle; // Value - 0 (closed) .. 1 (open) float AIR_TemperatureNeedle; // Value - degrees C float AIR_DuctPressNeedle[2]; // Value - degrees C char ELEC_MeterDisplayTop[13]; // Top line of the display: 3 groups of 4 digits (or symbols) + terminating zero char ELEC_MeterDisplayBottom[13]; // Bottom line of the display char IRS_DisplayLeft[7]; // Left display string, zero terminated char IRS_DisplayRight[8]; // Right display string, zero terminated bool IRS_DisplayShowsDots; // True if the degrees and decimal dot symbols are shown on the IRS display
  12. hi i'm build some external 2d animated gauges for my fs2004's cessna 172. Now i'm working on tachometer, but i can't find the offset responsible for the the "HOURS" numbers located below the RPM markers. Any hint about the offset address for this? Thanks! Tasso.
  13. hi Pete, my question is FSUIPC AND FSCommander (Volker Heine) related. if its not too much work for you, please read this link and my posts: http://forum.simflight.com/topic/76555-weather-transfer-from-fs9fsx-built-in-weather/ I know, you can help, as always! thanks and regards Alhard
  14. Hi, I'm writing a programm which is aimed at controlling helicopters in FSX. I use SDK files (C++) to read and write offsets and everything is fine except for the collective axis. I tried both offsets 088C and 089A (and their equivalent for engines 2, 3 and 4) and I get a strange behaviour : writing at 088C doesn't seem to work at all but writing at 089A work only for the bell (FSX Acceleration) but not for the Robinson or the Agusta. If somebody has any idea, I'm lost here... EDIT : For helos like Robinson or Agusta, writing to 088C does not have an effect although this is still representative of the collective axis (verified through FSUIPC logging capacity with an USB throttle). Actually, the value doesn't follow the external writing for those models, but it does for Bell model. EDIT 2: In facts, my problem is the one described in the first post in this page : http://www.hovercontrol.com/cgi-bin/ib3/ikonboard.cgi?act=ST;f=53;t=20488 The value at offset 08CC is stuck at 8192 (50%) no matter what I try to write. Thanks
  15. How to understand an aircraft vacated to runway ? What's offset ?
  16. I dont understand something with the values read from vertical speed offset $02C8 According to FSUIPC documentation for this offset: Vertical speed, signed, as 256 * metres/sec. For the more usual ft/min you need to apply the conversion *60*3.28084/256 But I noticed that when aircraft start climb and vertical speed gauge needle is moving up, the values from $02C8 are circulating between positive and negative values and the changes are not linear (Even with the conversion as advised above!!) This is also visible as my servo is jumping from side to side, instead of linear steady move.
  17. Hi, I'm using FSUIPC and the jeehell software. I want to know which offset I have to choose (byte set, word set ...) and who to configure FSUIPC for such an offset : 73C5 (2 bytes long) Thanks a lot, Calmato
  18. Hey, guys! I'm a beginner in applications with FSUIPC, and I'm pretty sure this is a stupid question but, how do I set the payload of an aircraft? The plane in question is an Embraer 195, with 3 sectores: crew, passengers and cargo. I can read and set the fuel levels, but got nowhere close with the payload. Here's what I'm doing so far, fuelwise: double targetFuel = 2134; double maxFuel = 6495.225; int formula = (int)((targetFuel * 100 / maxFuel) * (128 * 65536) / 100); result = fsuipc.FSUIPC_Write(0x0B94, formula, ref token, ref dwResult); result = fsuipc.FSUIPC_Write(0x0B7C, formula, ref token, ref dwResult); result = fsuipc.FSUIPC_Process(ref dwResult); This works as a charm, but I have no idea how to work on offset 1400. Any help at all would be greatly appreciated. Thank you!
  19. I have problem with stall offset. When the airplane stall, this same time I read offset status but offset dont status change. Which the problem ?? Regards, João Efrem Amazonas-Brazil