Jump to content
The simFlight Network Forums

mroschk

Members
  • Posts

    168
  • Joined

  • Last visited

Posts posted by mroschk

  1. Hello Pete,

    i need your help with offset 3110 to open/close the doors.

     

    Since i have installed Prepar3D v2.5 i have this problem:

    I use this c# code to control the doors:

        	private Offset<int> sendControl = new Offset<int>(0x3110, true);
        	private readonly int TOGGLE_JETWAY = 66695;
        	private readonly int TOGGLE_WINGFOLD = 66390; // AirStairs for JS800
        	
        	private readonly int TOGGLE_AIRCRAFT_EXIT = 66389; //
        	private readonly int SELECT_1 = 65538;
        	private readonly int SELECT_2 = 65539;
        	private readonly int SELECT_3 = 65540;
        	private readonly int SELECT_4 = 65541;
    
    
    void Process_FS_Doors(int iDoorNumber)
    {
    	Fsuipc_Process();
    	sendControl.Value = TOGGLE_AIRCRAFT_EXIT;	            
    	
    	Thread.Sleep(50);			
    	
    	if(iDoorNumber == 0) sendControl.Value = SELECT_1;
    	if(iDoorNumber == 1) sendControl.Value = SELECT_2;
    	if(iDoorNumber == 2) sendControl.Value = SELECT_3;
    	if(iDoorNumber == 3) sendControl.Value = SELECT_4;
     
    	Fsuipc_Process();
    }
    

    I am sure, even if you did not speak c#, you understand this code.

     

    Now, the problem, since P3D v2.5 , is that bevore this works i must first open the Main Exit via Shift + E on the Keyboard.

    Thats crazy...then the code works fine for all doors.

     

    Why the hell must i first use the keyboard one times ?

    Have you any idea ?

     

    Thanks

    Mattias

     

  2. Hello,

     

    i try to set up a self build throttle for the A2A Cessna 172.

    The Lever is controlled by SIOC which is not the Problem because it works fine with

    all other aircrafts.

    I use the Offset 0x088C and set here Values from 0 - 16384, but nothing happens in the A2A Cessna.

    I have also installed the Flight One Cessna.Here all works fine.

     

    Has anyone a Idea what i can do?

     

    Thanks

    M

  3. Hello,

     

    a litle question/problem:

     

    The Offset 3362 Length=1 controls the doors.

    I have written a litle program which display the actul value of this offset.

     

    Now, in Prepar3D v1.4 it works perfect. When i set these values to the offset:

    1 - controls Door 1 - Main Exit

    2 - controls Door 2 - Service Door

     

    but in FSX it is not working.

     

    The crazy thing is that, if i press Shift + E + 1 or Shift + E + 2 the offset shows the correct values 1 or 2.

    But when i set the value 1 in the offset the Main Door opens/closes. But the Door 2 did not work.

     

    Is there any different between FSX and Prepar3D ??

     

    Thanks

    Matthias

  4. Hi Pete,

     

    sorry for the late answer...and thanks for yours.

     

    I know about the tiller offset and need the visaversa for the 2 Lever Axis.

    SIOC is easy, makes no different if you know or not, the outcome of sioc is easy.

    I change my Lever Position which changes the Potentiometer and this movement changes the Offset.

    The question is what Offset i must use for the Lever left and right to make that the

    FSUIPC Axisassignment Tab can see these changes?

     

    Thanks

    MR

  5. Hello,

    via this SIOC Code i can set up the Tiller.

    The tiller is conncected to a OC servo Card via a potentiometer.

    Var 001, name tiller_pot, Link USB_ANALOGIC, Device 2, Input 1, posL 55, posC 128, posR 203

    {

    &tiller_offset = &tiller_pot

    }

    Var 002, name tiller_offset, Link FSUIPC_OUT, Offset $3BC4, Length 2

    Ok, but is that same possible for the Throttle Levers ?

    I tried different Offsets for Var 002, the Tiller Offset

    Var 5064, name FS_THRPOS, Link FSUIPC_INOUT, Offset $0924, Length 2 // FS Right Lever Position 0932

    Var 5065, name FS_THRPOS1, Link FSUIPC_INOUT, Offset $0932, Length 2 // FS Right Lever Position 0932

    Var 5066, name FS_THRN1, Link FSUIPC_INOUT, Offset $0930, Length 2 // FS Right Engine N1%

    , but without success.

    Thanks

    MR

  6. Last Question because i can not really nderstand what you want to explain in the advanced user guide.

    I did a test with the "Q" key to see how and if it works.

    For that i puut now first 81 in Offset 3114 and then 1070 in 3110.

    Ok, that works.

    But how can i sen the combinationof CTRL+F12?

    The document says

    1070 Key Press and Release (param is Keycode + 256*Shift code, or JsBk)

    Hmm...and i fond this in the document:

    The <shifts> value is a combination (add them) of the following values, as needed:

    1 Shift

    2 Control

    4 Tab

    8 Norm

    Add them where ??

    I am very sorry, but i can really not understand what you here mean.

    Please help for this a last time

    Matthias

  7. Hello,

    hmm, so ok i will try the other way via Offset 3110.

    When i understand it correct i have first to set up the Offset like

    private Offset<int> o_keys = new Offset<int>(0x3110);

    then i found the 1070 control in the user guide

    1070 Key Press and Release (param is Keycode + 256*Shift code, or JsBk)

    so..if i want to send a "1" to the FSX which have the KeyCode 31.

    What have i to set for the Offset 3110??

    Is there maybe a example?

    Matthias

×
×
  • 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.