Announcement

Collapse
No announcement yet.

programing in the Uber Edition.

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • programing in the Uber Edition.

    I need to know how to set the control buttons on the steering wheel to work with the Uber Edition. when I open the uber file, do I go to config or fusion configuration to set up the controls? do I have to build a skin, or can I use the current one that comes with the program? I only have note pad not xml, can you still open in word. since I know all the values for each button, I just need to know how to program the whole thing, basically how to write it out to do the simple tasks.
    https://www.facebook.com/hinnantdesign1

  • #2
    Open up "FusionConfiguration.xml". You can open it in almost any program. Notepad will work, but you wont get any of the cool XML formatting and error checking options. If you miss a quote mark ( " ) the entire XML will error out. Miss required whitespace, the whole XML will error out. Miss an opening or closing tag symbol (> or <) and the whole XML file will error out.

    So I suggest you use a proper XML editing program unless you know what you are doing.

    I think even Office products open xml files now, and there are a ton of programs free to downoad that will work too.

    Basically setup an analogue input in the`"io" section. Then a simple "if greater than x and less than y then do z" is like this:

    Code:
          <if fire_on="logic">
            <parameter1>
              <if>
                <parameter1>
                  <analogue id="Steering Wheel Buttons" time="0"></analogue>
                </parameter1>
                <test check="greater than or equal to"></test>
                <parameter2>
                  <number>X</number>
                </parameter2>
              </if>
            </parameter1>
            <test check="AND"></test>
            <parameter2>
              <if>
                <parameter1>
                  <analogue id="Steering Wheel Buttons" time="0"></analogue>
                </parameter1>
                <test check="less than or equal to"></test>
                <parameter2>
                  <number>Y</number>
                </parameter2>
              </if>
            </parameter2>
            <then>
              <do function="send key" functionTargetID="WINDOWTITLE" vote_opinion="KEYTOSEND" vote_priority="medium"></do>
            </then>
          </if>
    obviously you have to replace X, Y, and then the WINDOWTITLE and KEYTOSEND with actual values. If you are using Winamp/RoadRunner, then just put "winamp" in for the window title and it will automatically fill that in. Otherwise, you will need the window title and/or class name of the program. The syntax is "TITLE::CLASS" but if there is a subtitle and subclass, then it is "TITLE::CLASS::SUBTITLE::SUBCLASS".
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

    Comment


    • #3
      Originally posted by 2k1Toaster View Post
      Open up "FusionConfiguration.xml". You can open it in almost any program. Notepad will work, but you wont get any of the cool XML formatting and error checking options. If you miss a quote mark ( " ) the entire XML will error out. Miss required whitespace, the whole XML will error out. Miss an opening or closing tag symbol (> or <) and the whole XML file will error out.

      So I suggest you use a proper XML editing program unless you know what you are doing.

      I think even Office products open xml files now, and there are a ton of programs free to downoad that will work too.

      Basically setup an analogue input in the`"io" section. Then a simple "if greater than x and less than y then do z" is like this:

      Code:
            <if fire_on="logic">
              <parameter1>
                <if>
                  <parameter1>
                    <analogue id="Steering Wheel Buttons" time="0"></analogue>
                  </parameter1>
                  <test check="greater than or equal to"></test>
                  <parameter2>
                    <number>X</number>
                  </parameter2>
                </if>
              </parameter1>
              <test check="AND"></test>
              <parameter2>
                <if>
                  <parameter1>
                    <analogue id="Steering Wheel Buttons" time="0"></analogue>
                  </parameter1>
                  <test check="less than or equal to"></test>
                  <parameter2>
                    <number>Y</number>
                  </parameter2>
                </if>
              </parameter2>
              <then>
                <do function="send key" functionTargetID="WINDOWTITLE" vote_opinion="KEYTOSEND" vote_priority="medium"></do>
              </then>
            </if>
      obviously you have to replace X, Y, and then the WINDOWTITLE and KEYTOSEND with actual values. If you are using Winamp/RoadRunner, then just put "winamp" in for the window title and it will automatically fill that in. Otherwise, you will need the window title and/or class name of the program. The syntax is "TITLE::CLASS" but if there is a subtitle and subclass, then it is "TITLE::CLASS::SUBTITLE::SUBCLASS".
      what are some of the free xml programs online to download that will work?
      how would I write the values ou tfor steering wheel buttons? the mode button value is 3.39v, volume up 1.08v,volume down 0.37v, chan foward 2.66v, and chan back is 1.82v.all these values are for the resistive wire hook up to the fusionbrain. can you write this out for me like the example on top of page? I didnt know when buying this fusion brain that I was going to have to code every little control that I could have got with a keyboard or steering wheel control unit.It seems to me like a lot of work, for very simple
      controls. Im not good at this coding thing, so when you explain this stuff, I just dont get coding. also I want these use in streetdeck and windows media player
      https://www.facebook.com/hinnantdesign1

      Comment


      • #4
        Originally posted by customaudioman View Post
        what are some of the free xml programs online to download that will work?
        XML Marker looks like it will do the job pretty well.
        http://www.download.com/XML-Marker/3...html?tag=lst-2
        It's been a while...

        Comment


        • #5
          Originally posted by h3rk View Post
          XML Marker looks like it will do the job pretty well.
          http://www.download.com/XML-Marker/3...html?tag=lst-2
          thanks
          https://www.facebook.com/hinnantdesign1

          Comment


          • #6
            Originally posted by 2k1Toaster View Post
            Open up "FusionConfiguration.xml". You can open it in almost any program. Notepad will work, but you wont get any of the cool XML formatting and error checking options. If you miss a quote mark ( " ) the entire XML will error out. Miss required whitespace, the whole XML will error out. Miss an opening or closing tag symbol (> or <) and the whole XML file will error out.

            So I suggest you use a proper XML editing program unless you know what you are doing.

            I think even Office products open xml files now, and there are a ton of programs free to downoad that will work too.

            Basically setup an analogue input in the`"io" section. Then a simple "if greater than x and less than y then do z" is like this:

            Code:
                  <if fire_on="logic">
                    <parameter1>
                      <if>
                        <parameter1>
                          <analogue id="Steering Wheel Buttons" time="0"></analogue>
                        </parameter1>
                        <test check="greater than or equal to"></test>
                        <parameter2>
                          <number>X</number>
                        </parameter2>
                      </if>
                    </parameter1>
                    <test check="AND"></test>
                    <parameter2>
                      <if>
                        <parameter1>
                          <analogue id="Steering Wheel Buttons" time="0"></analogue>
                        </parameter1>
                        <test check="less than or equal to"></test>
                        <parameter2>
                          <number>Y</number>
                        </parameter2>
                      </if>
                    </parameter2>
                    <then>
                      <do function="send key" functionTargetID="WINDOWTITLE" vote_opinion="KEYTOSEND" vote_priority="medium"></do>
                    </then>
                  </if>
            obviously you have to replace X, Y, and then the WINDOWTITLE and KEYTOSEND with actual values. If you are using Winamp/RoadRunner, then just put "winamp" in for the window title and it will automatically fill that in. Otherwise, you will need the window title and/or class name of the program. The syntax is "TITLE::CLASS" but if there is a subtitle and subclass, then it is "TITLE::CLASS::SUBTITLE::SUBCLASS".
            are you able to show me what it would look like with my vales from above?
            https://www.facebook.com/hinnantdesign1

            Comment


            • #7
              Originally posted by 2k1Toaster View Post
              Open up "FusionConfiguration.xml". You can open it in almost any program. Notepad will work, but you wont get any of the cool XML formatting and error checking options. If you miss a quote mark ( " ) the entire XML will error out. Miss required whitespace, the whole XML will error out. Miss an opening or closing tag symbol (> or <) and the whole XML file will error out.

              So I suggest you use a proper XML editing program unless you know what you are doing.

              I think even Office products open xml files now, and there are a ton of programs free to downoad that will work too.

              Basically setup an analogue input in the`"io" section. Then a simple "if greater than x and less than y then do z" is like this:

              Code:
                    <if fire_on="logic">
                      <parameter1>
                        <if>
                          <parameter1>
                            <analogue id="Steering Wheel Buttons" time="0"></analogue>
                          </parameter1>
                          <test check="greater than or equal to"></test>
                          <parameter2>
                            <number>X</number>
                          </parameter2>
                        </if>
                      </parameter1>
                      <test check="AND"></test>
                      <parameter2>
                        <if>
                          <parameter1>
                            <analogue id="Steering Wheel Buttons" time="0"></analogue>
                          </parameter1>
                          <test check="less than or equal to"></test>
                          <parameter2>
                            <number>Y</number>
                          </parameter2>
                        </if>
                      </parameter2>
                      <then>
                        <do function="send key" functionTargetID="WINDOWTITLE" vote_opinion="KEYTOSEND" vote_priority="medium"></do>
                      </then>
                    </if>
              obviously you have to replace X, Y, and then the WINDOWTITLE and KEYTOSEND with actual values. If you are using Winamp/RoadRunner, then just put "winamp" in for the window title and it will automatically fill that in. Otherwise, you will need the window title and/or class name of the program. The syntax is "TITLE::CLASS" but if there is a subtitle and subclass, then it is "TITLE::CLASS::SUBTITLE::SUBCLASS".
              replace x, y with what? what about streetdeck, would I just fill in windows media player for window title?
              https://www.facebook.com/hinnantdesign1

              Comment


              • #8
                x and y are the histeresis settings. You could make it only half of that code, but then it would only send the volume up press when it is equal to the value 3.39v. Well it may be 3.39 volts once, but it might be 3.389v a second time. So you make a range. Hence why it says "greater than or equal to" and "less than or equal to".

                So the lowest value that you have recorded minus a bit for good measure would be the lesser than value (Y above) and the highest value you recorded plus a bit for good measure would be greater than value (X above).

                As for window title, I have no idea. I dont have Streetdeck, I dont use Streetdeck, I have no idea.

                I dont know if StreetDeck opens WMP and sends instructions to it that way, or if it uses the WMP dll and doesnt actually open WMP.

                If it opens WMP, then send to WMP directly. I know the class name for WMP is "WMPlayerApp" so the functionTargetID would be "::WMPlayerApp". If SD doesnt open WMP, then you need to find the class name of StreetDeck. There is a program called Spy++ that I use to find window names and such. I am sure a quick email/PM to one of the SD team will tell you, or just run the program and use something like Spy++ to see the details.

                The vote_opinion is the keypress to do whatever. What button do you press for that function? If you press "D" on your keyboard and it plays Jingle Bells, then put "D" in for vote_opinion and when the above requirements are met, then Jingle Bells will play.
                Fusion Brain Version 6 Released!
                1.9in x 2.9in -- 47mm x 73mm
                30 Digital Outputs -- Directly drive a relay
                15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
                Buy now in the MP3Car.com Store

                Comment


                • #9
                  This code looks at the analog input. Youd define the analog input in the <io> section, below the timers. In the example skin file the part you look for is this:

                  Code:
                  <iochannel id="Outside Temp" port="0" brain="MainBrain" type="analogue_input">
                        <options history="100" auto_average="true"></options>
                  make a new one of those, replacing "Outside Temp" with "Steering Wheel Buttons"


                  then the code 2k1Toaster wrote goes in the section <all statements>.

                  So for Mode=3.39, X is a value above 3.39 and Y is a value below 3.39, because analogs can drift a little, you should choose a value for x and y that give 3.39 a little wiggle room.
                  It's been a while...

                  Comment


                  • #10
                    Originally posted by 2k1Toaster View Post
                    Open up "FusionConfiguration.xml". You can open it in almost any program. Notepad will work, but you wont get any of the cool XML formatting and error checking options. If you miss a quote mark ( " ) the entire XML will error out. Miss required whitespace, the whole XML will error out. Miss an opening or closing tag symbol (> or <) and the whole XML file will error out.

                    So I suggest you use a proper XML editing program unless you know what you are doing.

                    I think even Office products open xml files now, and there are a ton of programs free to downoad that will work too.

                    Basically setup an analogue input in the`"io" section. Then a simple "if greater than x and less than y then do z" is like this:

                    Code:
                          <if fire_on="logic">
                            <parameter1>
                              <if>
                                <parameter1>
                                  <analogue id="Steering Wheel Buttons" time="0"></analogue>
                                </parameter1>
                                <test check="greater than or equal to"></test>
                                <parameter2>
                                  <number>X</number>
                                </parameter2>
                              </if>
                            </parameter1>
                            <test check="AND"></test>
                            <parameter2>
                              <if>
                                <parameter1>
                                  <analogue id="Steering Wheel Buttons" time="0"></analogue>
                                </parameter1>
                                <test check="less than or equal to"></test>
                                <parameter2>
                                  <number>Y</number>
                                </parameter2>
                              </if>
                            </parameter2>
                            <then>
                              <do function="send key" functionTargetID="WINDOWTITLE" vote_opinion="KEYTOSEND" vote_priority="medium"></do>
                            </then>
                          </if>
                    obviously you have to replace X, Y, and then the WINDOWTITLE and KEYTOSEND with actual values. If you are using Winamp/RoadRunner, then just put "winamp" in for the window title and it will automatically fill that in. Otherwise, you will need the window title and/or class name of the program. The syntax is "TITLE::CLASS" but if there is a subtitle and subclass, then it is "TITLE::CLASS::SUBTITLE::SUBCLASS".
                    I completed most of what you said I need. just questions about: <then>
                    <do function="send key" functionTargetID="WINDOWTITLE" vote_opinion="KEYTOSEND" vote_priority="medium"></do>
                    </then>
                    so do I type in windows media player/streetdeck where ever it say '' windowtitle''?
                    https://www.facebook.com/hinnantdesign1

                    Comment


                    • #11
                      Originally posted by customaudioman View Post
                      I completed most of what you said I need. just questions about: <then>
                      <do function="send key" functionTargetID="WINDOWTITLE" vote_opinion="KEYTOSEND" vote_priority="medium"></do>
                      </then>
                      so do I type in windows media player/streetdeck where ever it say '' windowtitle''?

                      Originally posted by 2k1Toaster View Post
                      As for window title, I have no idea. I dont have Streetdeck, I dont use Streetdeck, I have no idea.

                      I dont know if StreetDeck opens WMP and sends instructions to it that way, or if it uses the WMP dll and doesnt actually open WMP.

                      If it opens WMP, then send to WMP directly. I know the class name for WMP is "WMPlayerApp" so the functionTargetID would be "::WMPlayerApp". If SD doesnt open WMP, then you need to find the class name of StreetDeck. There is a program called Spy++ that I use to find window names and such. I am sure a quick email/PM to one of the SD team will tell you, or just run the program and use something like Spy++ to see the details.

                      The vote_opinion is the keypress to do whatever. What button do you press for that function? If you press "D" on your keyboard and it plays Jingle Bells, then put "D" in for vote_opinion and when the above requirements are met, then Jingle Bells will play.
                      Fusion Brain Version 6 Released!
                      1.9in x 2.9in -- 47mm x 73mm
                      30 Digital Outputs -- Directly drive a relay
                      15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
                      Buy now in the MP3Car.com Store

                      Comment


                      • #12


                        StreetDeck embends a WMP window. The class name for the main StreetDeck window is not constant. The window caption is though.
                        __________________
                        https://www.facebook.com/hinnantdesign1

                        Comment


                        • #13
                          since I use soundblaster for the volume for all the programs, can I just use the ''soundblaster'' as the ID instead of each program like''WMPlayerApp'' and streetdeck since they all use the same sound device?
                          https://www.facebook.com/hinnantdesign1

                          Comment


                          • #14
                            Ok, if the captio is constant, that is good and this should work. If the caption is "BLAH" then your window title string will be "BLAH::".

                            You cannot send keystrokes to a sound device... If it has a sound manager that runs in the system tray or something, then you can send to that, but you are back to needing the title and/or class name.

                            Let me know if you have the correct title, and I will permanently code it into the program to help further people.

                            Oh, and it is case sensitive.
                            Fusion Brain Version 6 Released!
                            1.9in x 2.9in -- 47mm x 73mm
                            30 Digital Outputs -- Directly drive a relay
                            15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
                            Buy now in the MP3Car.com Store

                            Comment


                            • #15
                              Originally posted by 2k1Toaster View Post
                              Ok, if the captio is constant, that is good and this should work. If the caption is "BLAH" then your window title string will be "BLAH::".

                              You cannot send keystrokes to a sound device... If it has a sound manager that runs in the system tray or something, then you can send to that, but you are back to needing the title and/or class name.

                              Let me know if you have the correct title, and I will permanently code it into the program to help further people.

                              Oh, and it is case sensitive.
                              yes soundblaster is a program on my computer, it has an icon on the toolbar like all the other programs I run. its just like soundmax that come on the computer. I dont use that, I use the soundblaster for better sound then on-board audio. soundblaster is the master volume for all the programs. if I just put the ID for wmp, it would just adjust the volume within wmp and not the master volume. this way I can control volume on the steering wheel in any program. are you able to link several programs together?
                              https://www.facebook.com/hinnantdesign1

                              Comment

                              Working...
                              X