Jump to content

Search the Community

Showing results for tags 'offset'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Product Support Forums
    • FSUIPC Support Pete Dowson Modules
    • FeelThere Support Forums
    • Fabio Merlo Products Support Forum
    • Nikola Jovanovic Support Forum
    • Intrasystems Support Forum

Categories

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 23 results

  1. These is an offset for the Master Battery (0x3102) but MSFS2020 supports multiple batteries, such as in the default C172 (standby battery) or SR22 (master battery 2). When inspecting the log when toggling the switches I see (0x000102c1), Param= 2 (0x00000002) TOGGLE_MASTER_BATTERY (note the parameter 2) I could use the ipc.control with parameter 2 in my Lua script but I also need to know the state of the switch. The MSFS2020 SDK documentation shows that the SimVar needs an index so presumably this means that read and write access to all batteries is possible. My request is to make these settings available as offsets, or one offset with multiple independent bits set for every battery. Thanks! -Emile van Gerwen.
  2. Hello fellows. I created a simple windows application in 2010, so the app is almost 12 years old and I used the following offset to get when the sim is in "Ready To Fly" mode Private SimIsReadyToFly As Offset(Of Integer) = New Offset(Of Integer)("SIMSTATUS", &H3364) and used the following function Public Function ReadSimIsReadyToFly() As Boolean Try FSUIPCConnection.Process("SIMSTATUS") If SimIsReadyToFly.Value = 0 Then Return True Else Return False End If Catch ex As FSUIPCException Fsuipc_exception_handler(ex) Return False End Try Return False End Function This do not work anymore with new MSFS Can anyone here help me whit this ?, because I nedd that my app start logging only when sim is ready. Thanks in advance !
  3. Hello, I am a student working on making a Zlin 142 cockpit, and I am having some troubles in finding the right FSUIPC Offset for some switches and instruments. I am using FSUIPC4 with P3Dv4, coding with C#. The Zlin 142 is a piston engine aircraft. The Offsets which i can't find are : Compressor Battery switch (not the Master Battery Offset, it is linked with the Main Switch) Master ignition switch Instruments switch Inverter siwtch Radio Com 1 switch (On/Off) I really spent 2 or 3 weeks searching for the offsets. I am really looking for your help.
  4. Hi, Im trying to use the offsets 3160, 313C and 3148. but they dont work for me, when i try to use them it just gives me a string of "Offset 0x3160 (String: 24 Bytes))". i can use Offset 0x3130 and that gives me the airline callsign but not anything else, im trying to get the Aircraft name ex. (Boeing 737-800) and the player callsign ex. (N001). am i using the correct offset? Code: C# private Offset<string> aircraftType = new Offset<string>(0x3160, 24); // this one doesnt work private Offset<string> aircraftID = new Offset<string>(0x3130, 12); // this one works // ATCID = aircraftID.Value; ATCTYPE = aircraftType.Value; // string aircraftData = "({ATCID} - {ATCTYPE })"; output: (MAULE - Offset 0x3160 (String: 24 Bytes))
  5. Hi All. I'm developing a program in C#, which involves dynamic offsets (The user creates settings in the program which are saved to a file). The data the user inputs is The offset address (e.g. 0x02BC), The offset size / length (e.g. 4) The type of the output (e.g. int32, float32 etc.) Adjustments to be made to the end result (e.g / 256) Currently the program creates the offset, using the address and length. This works great and when manually specifying the type I can successfully get the value from the flight sim. Offset myOffset = new Offset("Main", OffsetAddress, OffsetLength); However I am not sure how I can go about using my type variable when getting the information int offsetValue = myOffset.GetValue<MyTypeHere>(); I get the error Type is a variable but used as a type. I have also tried typeof(MyTypeHere), and several other methods however I haven't been able to fix it. I am quite new to C# so apologies if this is a really stupid question. EDIT: I know I can use a switch(MyTypeHere) and then have a case for every single type, however I am trying to avoid this if possible. Thanks, Brad
  6. 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
  7. 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
  8. 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
  9. The offset 024C is defined returning available FS memory. With FSUIPC5 5.101h this value is permanently zero (0). Is this correct?
  10. 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
  11. 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
  12. 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
  13. 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
  14. 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 !
  15. 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
  16. 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.
  17. 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
  18. 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
  19. How to understand an aircraft vacated to runway ? What's offset ?
  20. 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.
  21. 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
  22. 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!
  23. 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
×
×
  • 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.