Announcement

Collapse
No announcement yet.

Problem With sending Winamp commands

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

  • Problem With sending Winamp commands

    ok, so i was working on steering wheel controls working

    got all my Volt #'s from the car had it all setup like i thought but nothing actually happens

    now the label displays the correct volts
    but doesnt display as a decimal, it shows like 4897


    Code:
    <?xml version="1.0" encoding="utf-8" ?>
    <FusionControlCentreConfiguration version="1.0.0.0" author="Kevin Holy" date_created="Tuesday, March 25, 2008 at 10:19:44 PM" last_modified="Tuesday, March 25, 2008 at 11:26:01 PM">
    
      <require>
      <!-- Begin Function Instances -->
      <font name="LED50" originalSize="50" font_config="Content\config\fonts\FusionFontLED.xml"></font>
      <!-- End Function Instances -->
      </require>
    
      <graphics>
      <!-- Begin Global Graphic Settings -->
          <main_display designed_for_size="800,600" show_at_size="800,600" menubar="Sizeable" RunInSystemTray="False" MinimizeToSystemTray="True"></main_display>
    	  	  <text_label id="Volt Monitor" text="00" auto_monitor="analogue input" auto_monitorTarget="Steering_Wheel_Control">
    	  <font font_id="LED50" font_size="35"></font>
    	  <display location="165,165" page="0"></display>
    	  <config decimals="3" max_size="70,40"></config>
    	  </text_label>
      <!-- End Global Graphic Settings -->
      </graphics>
    
      <io>
      <!-- Begin Fusion Brain Instances -->
          <brain id="Holy's Brain">USB\VID_04D8&amp;PID_000C\5&amp;13735D69&amp;0&amp;2</brain>
      <!-- End Fusion Brain Instances -->
    
      <!-- Begin Timer Setup -->
          <timer id="input" interval="75"></timer>
          <timer id="output" interval="100"></timer>
          <timer id="gui" interval="50"></timer>
          <timer id="logic" interval="50"></timer>
      <!-- End Timer Setup -->
    
      <!-- Begin Digital Output Instances -->
      <!-- End Digital Output Instances -->
    
      <!-- Begin Analogue Input Instances -->
          <iochannel id="Steering_Wheel_Control" port="0" brain="Holy's Brain" type="analogue_input">
            <options history="0" auto_average="false"></options>
          </iochannel>
      <!-- End Analogue Input Instances -->
      </io>
    
      <logic>
      <!-- Begin Logging Setup -->
        <all_logging>
        </all_logging>
      <!-- End Logging Setup -->
    
      <!-- Begin Variable Declarations -->
        <all_variables>
        </all_variables>
      <!-- End Variable Declarations -->
    
      <!-- Begin Logic Declarations -->
        <all_statements>
          <if fire_on="logic">
            <boolean_operation type="and">
              <parameter1>
                <boolean_operation type="greater than or equal to">
                  <parameter1>
                    <analogue id="Steering_Wheel_Control" time="0"></analogue>
                  </parameter1>
                  <parameter2>
                    <number>1.6</number>
                  </parameter2>
                </boolean_operation>
              </parameter1>
              <parameter2>
                <boolean_operation type="less than or equal to">
                  <parameter1>
                    <analogue id="Steering_Wheel_Control" time="0"></analogue>
                  </parameter1>
                  <parameter2>
                    <number>1.8</number>
                  </parameter2>
                </boolean_operation>
              </parameter2>
            </boolean_operation>
            <then>
    		<do function="send key" functionTargetID="winamp" vote_opinion="Up Arrow" vote_priority="medium"></do>
            </then>
          </if>
          <if fire_on="logic">
            <boolean_operation type="and">
              <parameter1>
                <boolean_operation type="greater than or equal to">
                  <parameter1>
                    <analogue id="Steering_Wheel_Control" time="0"></analogue>
                  </parameter1>
                  <parameter2>
                    <number>0.5</number>
                  </parameter2>
                </boolean_operation>
              </parameter1>
              <parameter2>
                <boolean_operation type="less than or equal to">
                  <parameter1>
                    <analogue id="Steering_Wheel_Control" time="0"></analogue>
                  </parameter1>
                  <parameter2>
                    <number>0.7</number>
                  </parameter2>
                </boolean_operation>
              </parameter2>
            </boolean_operation>
            <then>
    		<do function="send key" functionTargetID="winamp" vote_opinion="Down Arrow" vote_priority="medium"></do>
            </then>
          </if>
          <if fire_on="logic">
            <boolean_operation type="and">
              <parameter1>
                <boolean_operation type="greater than or equal to">
                  <parameter1>
                    <analogue id="Steering_Wheel_Control" time="0"></analogue>
                  </parameter1>
                  <parameter2>
                    <number>2.55</number>
                  </parameter2>
                </boolean_operation>
              </parameter1>
              <parameter2>
                <boolean_operation type="less than or equal to">
                  <parameter1>
                    <analogue id="Steering_Wheel_Control" time="0"></analogue>
                  </parameter1>
                  <parameter2>
                    <number>2.8</number>
                  </parameter2>
                </boolean_operation>
              </parameter2>
            </boolean_operation>
            <then>
    		<do function="send key" functionTargetID="winamp" vote_opinion="Z" vote_priority="medium"></do>
            </then>
          </if>
          <if fire_on="logic">
            <boolean_operation type="and">
              <parameter1>
                <boolean_operation type="greater than or equal to">
                  <parameter1>
                    <analogue id="Steering_Wheel_Control" time="0"></analogue>
                  </parameter1>
                  <parameter2>
                    <number>3.5</number>
                  </parameter2>
                </boolean_operation>
              </parameter1>
              <parameter2>
                <boolean_operation type="less than or equal to">
                  <parameter1>
                    <analogue id="Steering_Wheel_Control" time="0"></analogue>
                  </parameter1>
                  <parameter2>
                    <number>3.75</number>
                  </parameter2>
                </boolean_operation>
              </parameter2>
            </boolean_operation>
            <then>
    		<do function="send key" functionTargetID="winamp" vote_opinion="B" vote_priority="medium"></do>
            </then>
          </if>
          <if fire_on="logic">
            <boolean_operation type="and">
              <parameter1>
                <boolean_operation type="greater than or equal to">
                  <parameter1>
                    <analogue id="Steering_Wheel_Control" time="0"></analogue>
                  </parameter1>
                  <parameter2>
                    <number>4.2</number>
                  </parameter2>
                </boolean_operation>
              </parameter1>
              <parameter2>
                <boolean_operation type="less than or equal to">
                  <parameter1>
                    <analogue id="Steering_Wheel_Control" time="0"></analogue>
                  </parameter1>
                  <parameter2>
                    <number>4.9</number>
                  </parameter2>
                </boolean_operation>
              </parameter2>
            </boolean_operation>
            <then>
    		<do function="send key" functionTargetID="winamp" vote_opinion="C" vote_priority="medium"></do>
            </then>
          </if>
        </all_statements>
      <!-- End Logic Declarations -->
      </logic>
    </FusionControlCentreConfiguration>

    if someone could take a look at let me know why nothing happens

    thanks!

  • #2
    "down arrow" --> "DOWN"
    "up arrow" --> "UP"

    and for future reference:
    "left arrow" --> "LEFT"
    "right arrow" --> "RIGHT"


    Also if using 0 as your time tag for the analogue input, you need the latest version of MDX from the 26th of March: http://www.fusioncontrolcentre.com/T...26-03-2008.rar
    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
      nick - you sure? left and right have different syntax?

      Comment


      • #4
        Originally posted by greenman100 View Post
        nick - you sure? left and right have different syntax?
        nope.

        Made a boo-boo. Fixed it.
        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

        Working...
        X