• Categories
  • Recent
  • Tags
  • Popular
  • Users
Collapse
Just Flight Community Forum

Solution to assign a button to preoiler

Scheduled Pinned Locked Moved Piston & Turbine Dukes
10 Posts 3 Posters 327 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mario_kaz
    wrote on last edited by
    #1

    Hi, I'm a Spad.neXt user and I'm having trouble assigning a button to the yoke for the left and right preoiler. Could you help me? Thank you very much in advance.

    1 Reply Last reply
    0
  • Black SquareB Offline
    Black SquareB Offline
    Black Square Black Square Developer
    wrote on last edited by
    #2

    It should be as simple as setting L:var_PreoilerSwitch. 0=Left, 1=Off, and 2=Right.

    M J 3 Replies Last reply
    0
  • M Offline
    M Offline
    mario_kaz
    replied to Black Square on last edited by
    #3

    @Black-Square L:var_PreoilerSwitch does not exist, I searched for all Lvar variants and I can't find a solution.

    1 Reply Last reply
    0
  • M Offline
    M Offline
    mario_kaz
    replied to Black Square on last edited by
    #4

    @Black-Square It's solved now. Thanks for responding and helping.

    1 Reply Last reply
    0
  • J Offline
    J Offline
    jfri
    replied to Black Square last edited by
    #5

    @Black-Square said in Solution to assign a button to preoiler:

    It should be as simple as setting L:var_PreoilerSwitch. 0=Left, 1=Off, and 2=Right.

    Can you elaborate on exactly how to do this ?

    J 1 Reply Last reply
    0
  • Black SquareB Offline
    Black SquareB Offline
    Black Square Black Square Developer
    wrote last edited by
    #6

    I'm not an avid cockpit builder, so hopefully someone else will chime in, but there are many applications that exist for control bindings, and this should be one of their most prominent features. Virtually all cockpit building involves setting simple L:Vars, so there should be many tutorials on the subject.

    1 Reply Last reply
    0
  • J Offline
    J Offline
    jfri
    replied to jfri last edited by
    #7

    @jfri said in Solution to assign a button to preoiler:

    @Black-Square said in Solution to assign a button to preoiler:

    It should be as simple as setting L:var_PreoilerSwitch. 0=Left, 1=Off, and 2=Right.

    Can you elaborate on exactly how to do this ?

    I suppose I should use FSUIPC. I have done similar things with the Milviz 310 and got things working. Tried doing the same with the Duke failed.
    Do you know is should be
    L:Duke_PreoilerSwitch (in 310 it was L:C310_) or is it var_ ?
    Also I would like to the the same with the two Fuel boost pumps. I find no entry called left right fuel boost pump and no L: variable name.

    1 Reply Last reply
    0
  • Black SquareB Offline
    Black SquareB Offline
    Black Square Black Square Developer
    wrote last edited by
    #8

    The prefix should be "var_". There is no universally adopted naming convention, so each developer names the variables as they see fit. There are several ways to toggle the fuel pumps. Any of the following should work:

    >A:CIRCUIT SWITCH ON:58, bool) (58 for left, 59 for right)
    >K:TOGGLE_ELECT_FUEL_PUMP1
    >K:ELECT_FUEL_PUMP1_SET
    >B:FUEL_Pump_1_Toggle

    You can find many more examples of the exact code in this database. Let me know if you have any more questions, though!

    J 1 Reply Last reply
    0
  • J Offline
    J Offline
    jfri
    replied to Black Square last edited by
    #9

    @Black-Square said in Solution to assign a button to preoiler:

    The prefix should be "var_". There is no universally adopted naming convention, so each developer names the variables as they see fit. There are several ways to toggle the fuel pumps. Any of the following should work:

    >A:CIRCUIT SWITCH ON:58, bool) (58 for left, 59 for right)
    >K:TOGGLE_ELECT_FUEL_PUMP1
    >K:ELECT_FUEL_PUMP1_SET
    >B:FUEL_Pump_1_Toggle

    You can find many more examples of the exact code in this database. Let me know if you have any more questions, though!

    I try to use a macro file and then offset byte set in FSUIPC. No success so far. But I found out that I under WASM menu could set a Lvar. There I found
    var_PreoilerSwitch 0491
    and from there I could control the switch
    What is 0491 there ?
    I am familiar with L: but what is K: and B: ?

    1 Reply Last reply
    0
  • Black SquareB Offline
    Black SquareB Offline
    Black Square Black Square Developer
    wrote last edited by
    #10

    Again, I'm not an expert, and I might be wrong about this, but I think you are approaching this in an overly difficult way. That's not a criticism (I seem to approach everything in my life from a difficult angle too), but there are numerous applications that should allow for very easy L:Var manipulation. I'm sure FSUIPC can do it too, but I'm not sure that it requires register manipulation.

    The B:Var is the new MSFS interaction system, which can be very useful, but it's also incredible abstract and convoluted for developers to set up, so it tends to be underutilized. Not all 3rd part applications have access to B:Vars, so I would try to avoid them wherever possible.

    1 Reply Last reply
    0

  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Users