Results 1 to 4 of 4

Thread: Problem With sending Winamp commands

  1. #1
    Variable Bitrate dhantiflag's Avatar
    Join Date
    Nov 2006
    Location
    Mentor, OHIO
    Posts
    384

    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. #2
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    "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

  3. #3
    Fusion Brain Creator
    Join Date
    Mar 2005
    Posts
    2,221
    nick - you sure? left and right have different syntax?

  4. #4
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    Quote 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

Similar Threads

  1. The craziest USB soundcard problem ever
    By Sibi in forum General Hardware Discussion
    Replies: 6
    Last Post: 03-07-2008, 10:25 AM
  2. Not your typical flicker problem
    By JPuma in forum LCD/Display
    Replies: 17
    Last Post: 05-30-2007, 10:28 AM
  3. Problem also with MM commands in RR skin
    By Alx0363 in forum RR Bug Tracker
    Replies: 9
    Last Post: 04-02-2006, 03:19 AM
  4. had an all day (9 hr) problem at work....
    By wizardPC in forum Off Topic
    Replies: 13
    Last Post: 10-20-2005, 12:50 PM
  5. winamp start up problem
    By jett98 in forum Software & Software Development
    Replies: 6
    Last Post: 10-21-2002, 05:18 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •