The MP3car.com Store The MP3car.com Store    

Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > General Hardware Discussion > Fusion Brain > FB Software

Reply
 
LinkBack Thread Tools Display Modes
Old 03-28-2008, 01:30 PM   #1
Variable Bitrate
 
dhantiflag's Avatar
 
Join Date: Nov 2006
Location: Mentor, OHIO
Posts: 296
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!
dhantiflag is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 03-28-2008, 04:26 PM   #2
Fusion Brain Creator
 
2k1Toaster's Avatar
 
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 7,439
"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

Last edited by 2k1Toaster; 03-28-2008 at 11:06 PM.
2k1Toaster is offline   Reply With Quote
Old 03-28-2008, 05:19 PM   #3
Fusion Brain Creator
 
Join Date: Mar 2005
Posts: 1,936
nick - you sure? left and right have different syntax?
greenman100 is offline   Reply With Quote
Old 03-28-2008, 11:06 PM   #4
Fusion Brain Creator
 
2k1Toaster's Avatar
 
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 7,439
Quote: Originally Posted by greenman100 View Post
nick - you sure? left and right have different syntax?

nope.

Made a boo-boo. Fixed it.
2k1Toaster is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

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


All times are GMT -5. The time now is 02:34 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics