Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
Collapse
Just Flight Community Forum
  1. Home
  2. Just Flight
  3. MSFS Products
  4. Black Square Add-Ons
  5. Starship
  6. How to assign Gen Reset to a button?

How to assign Gen Reset to a button?

Scheduled Pinned Locked Moved Starship
9 Posts 5 Posters 87 Views 1 Watching
  • 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.
  • RhinozherousR Online
    RhinozherousR Online
    Rhinozherous
    wrote last edited by Rhinozherous
    #1

    Hello!
    I use Axis and Ohs for button assignments.
    When I use the "L:var_GeneratorReset_L" command from the manual it only switches the generator to ON but it does not go to RESET before.
    I want it to stay at RESET as long as the button is held, and when releasing it should go to ON. Is there a way to do this?

    Thank you!

    RandolfR 2 Replies Last reply
    0
    • RhinozherousR Rhinozherous

      Hello!
      I use Axis and Ohs for button assignments.
      When I use the "L:var_GeneratorReset_L" command from the manual it only switches the generator to ON but it does not go to RESET before.
      I want it to stay at RESET as long as the button is held, and when releasing it should go to ON. Is there a way to do this?

      Thank you!

      RandolfR Online
      RandolfR Online
      Randolf
      wrote last edited by
      #2

      @Rhinozherous I may have an idea, but it won't be pretty. It may involve editing some files. I can try it later in a few hours when I get to the computer.

      1 Reply Last reply
      0
      • T Offline
        T Offline
        TreeTops
        wrote last edited by TreeTops
        #3

        There are smarter people here than me, but with a hardware toggle switch I used toggle_alternate1 on the down switch which cycles on/off.
        On the up switch I use keydown/keyup events L:var_GeneratorReset_L (and R for right) as 1 and 0. Press will move the switch to the reset position and release will move it back to the on position.
        A three position switch is needed for these, but this is a workaround
        Maybe another way is to assign the usual up/down switch as off/on, then another event as hold forward to reset.
        Nope, that didn't work, hold moves the switch to reset, but doesn't spring back to on, which is why I used my original arrangement..

        1 Reply Last reply
        0
        • dadgametimeD Offline
          dadgametimeD Offline
          dadgametime
          wrote last edited by
          #4

          I’m not familiar with AO, but I’m SpadNext the three position switch will have three positions 0, 1, and 2 as values. It may take experimentation to determine what value does what to the switch.

          Brian
          https://www.flyaka.com
          Alaska Adventures

          1 Reply Last reply
          0
          • DrZGardD Offline
            DrZGardD Offline
            DrZGard
            wrote last edited by
            #5

            I use FSUIPC so the programming can be also be difficult. I'll usually take the wording from what Nick provides in the manual (or in a forum post) and do a search in the "starship_interior.xml" file to see if I can get additional wording that might help with functionality. That said this generator reset for the Starship has been elusive (as well as a few others). I do have many functions working with my hardware but we'll have to wait for more clues to get them all to work.

            RandolfR 1 Reply Last reply
            0
            • T Offline
              T Offline
              TreeTops
              wrote last edited by
              #6

              I am starting out on the Axis and Ohs journey. šŸ™‚

              1 Reply Last reply
              0
              • RhinozherousR Rhinozherous

                Hello!
                I use Axis and Ohs for button assignments.
                When I use the "L:var_GeneratorReset_L" command from the manual it only switches the generator to ON but it does not go to RESET before.
                I want it to stay at RESET as long as the button is held, and when releasing it should go to ON. Is there a way to do this?

                Thank you!

                RandolfR Online
                RandolfR Online
                Randolf
                wrote last edited by Randolf
                #7

                @Rhinozherous so I was playing with it a bit in AAO, and seems it's much easier than I expected. Thought that the momentary reset position would be making problems like the prop overspeed test, but this one plays nicely with the reset variable on/off.
                So to get the behaviour you describe in the original post, I bound both K:ALTERNATOR_ON/OFF and the GeneratorReset LVAR to two buttons, to achieve that with the press of the ON button, you turn on the generator and while holding the button, it will be held in the reset positon. And the OFF button turns it off.

                These are the bindings:

                RIGHT generator ON button (#4 in my case) has two bindings:
                first binding: (K:2:ALTERNATOR_ON) screenshot
                second binding: screenshot
                Key Down (L:var_GeneratorReset_R) = 1
                Key Up (L:var_GeneratorReset_R) = 0

                RIGHT generator OFF button (#9):
                (K:2:ALTERNATOR_OFF) screenshot

                Repeat for the LEFT generator as appropriate.

                Note: the ALTERNATOR_ON/OFF is an indexed event which may be a bit tricky in AAO, bindings for the LEFT engine look like this, the engine index is the rightmost value, and the value being sent is in the K:2:index field: screenshot

                I hope I didn't mix up the screenshots, would be nice to have the image upload feature back šŸ™‚

                RhinozherousR 1 Reply Last reply
                0
                • RandolfR Randolf

                  @Rhinozherous so I was playing with it a bit in AAO, and seems it's much easier than I expected. Thought that the momentary reset position would be making problems like the prop overspeed test, but this one plays nicely with the reset variable on/off.
                  So to get the behaviour you describe in the original post, I bound both K:ALTERNATOR_ON/OFF and the GeneratorReset LVAR to two buttons, to achieve that with the press of the ON button, you turn on the generator and while holding the button, it will be held in the reset positon. And the OFF button turns it off.

                  These are the bindings:

                  RIGHT generator ON button (#4 in my case) has two bindings:
                  first binding: (K:2:ALTERNATOR_ON) screenshot
                  second binding: screenshot
                  Key Down (L:var_GeneratorReset_R) = 1
                  Key Up (L:var_GeneratorReset_R) = 0

                  RIGHT generator OFF button (#9):
                  (K:2:ALTERNATOR_OFF) screenshot

                  Repeat for the LEFT generator as appropriate.

                  Note: the ALTERNATOR_ON/OFF is an indexed event which may be a bit tricky in AAO, bindings for the LEFT engine look like this, the engine index is the rightmost value, and the value being sent is in the K:2:index field: screenshot

                  I hope I didn't mix up the screenshots, would be nice to have the image upload feature back šŸ™‚

                  RhinozherousR Online
                  RhinozherousR Online
                  Rhinozherous
                  wrote last edited by
                  #8

                  @Randolf You are awesome! Will trie! Thank you very much!

                  1 Reply Last reply
                  0
                  • DrZGardD DrZGard

                    I use FSUIPC so the programming can be also be difficult. I'll usually take the wording from what Nick provides in the manual (or in a forum post) and do a search in the "starship_interior.xml" file to see if I can get additional wording that might help with functionality. That said this generator reset for the Starship has been elusive (as well as a few others). I do have many functions working with my hardware but we'll have to wait for more clues to get them all to work.

                    RandolfR Online
                    RandolfR Online
                    Randolf
                    wrote last edited by
                    #9

                    @DrZGard can give you also some pointers for FSUIPC, if you have any specific questions. I used it long time ago, before switching to AAO.

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

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