Sponsored links

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


Reply
 
Share Thread Tools Display Modes
Old 09-14-2008, 05:38 PM   #1
Low Bitrate
 
Join Date: Dec 2007
Posts: 105
RonS is an unknown quantity at this point
Momentary Button

Ok I am missing something. I have looked in an xml setup by the wizard for a momentary button but can't find it. Can someone please tell me how to setup a momentary button.

Thanks
RonS is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 09-14-2008, 05:59 PM   #2
FLAC
 
Join Date: Oct 2006
Location: Las Vegas
Posts: 1,283
h3rk will become famous soon enough
There is an example in the default skin. But, if you're starting from scratch...
Momentary isn't a 'option' that you can select per se.
What you do is use both the downclick and upclick properties. for downclick, set the controlled parameter (output in this case) to 'on' and then set the upclick to 'off'. You can mess with the duration by adjusting the minimum timings.

You can control a variable sinilarly with vote opinions of 'true'/'false' or '+1'/'+0' respectively.
h3rk is offline   Reply With Quote
Old 09-14-2008, 06:38 PM   #3
Low Bitrate
 
Join Date: Dec 2007
Posts: 105
RonS is an unknown quantity at this point
Hmmm That is exactly what I am doing. The funny thing is. If I click off center on the button it works. But if I click in the center it stays on. Also if I use voice control it stays on. It is driving me nuts. Of course that was a short trip. I will keep kicking it and see if I can get it working.
RonS is offline   Reply With Quote
Old 09-14-2008, 06:47 PM   #4
FLAC
 
Join Date: Oct 2006
Location: Las Vegas
Posts: 1,283
h3rk will become famous soon enough
I think, if you look in the suggestion thread, that there is a fix for the "off center" problem. An update that should probably be out shortly. For me it didn't work unless I clicked on the top half of the button. I'm not sure if the fix fixes the voice thing, I haven't tried that yet.
h3rk is offline   Reply With Quote
Old 09-15-2008, 12:25 AM   #5
Fusion Brain Creator
 
2k1Toaster's Avatar
 
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 8,862
2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future
Yes it is fixed in the newer version. It isnt out yet as it will require a driver change.

But as for voice control, there is no "upclick" for a voice vote.
2k1Toaster is offline   Reply With Quote
Old 09-16-2008, 12:05 AM   #6
Fusion Brain Creator
 
2k1Toaster's Avatar
 
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 8,862
2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future
Also to do a momentary button automatically using the wizard, click the checkbox by the digital output that says momentary.
2k1Toaster is offline   Reply With Quote
Old 09-16-2008, 07:52 AM   #7
Low Bitrate
 
Join Date: Dec 2007
Posts: 105
RonS is an unknown quantity at this point
Ok cool. Bummer on the voice. I am using it to open the passenger door. So all it has to do is trigger a relay for a second. And was also going to use it to start the truck. Back to the drawing board..
RonS is offline   Reply With Quote
Old 09-16-2008, 08:29 AM   #8
FLAC
 
Join Date: Oct 2006
Location: Las Vegas
Posts: 1,283
h3rk will become famous soon enough
Couldn't you try something like using a voice to make a variable a 1 and then do a loop with a long enough timer setting to toggle that 1 back to a zero. And then another loop to fire the output:

IF(VOICE COMMAND VARIABLE = 1) THEN (OUTPUT = ON) ANTITHEN (OUTPUT=OFF)

if more than one then statement worked you could use a second antithen statement:
(VOICE COMMAND VARIABLE = 0) and set the timer for the minimum on time that you want.<<<EDIT this won't provide the timing I had originally thought, but I've been up all night, and the other idea below should work anyway.

but that doesn't work quite yet, so use a second loop to do that job..

(I'm sorry for stating "root functions" as "loops" so much, its a habit for me, I'll try to break it but just know that's what I mean if I slip up.)

IF(VOICE COMMAND VARIABLE = 1) THEN (VOICE COMMAND VARIABLE = 0)

this second root function should probably be placed prior to the first one, to ensure that there is a sufficient delay as set by your timer setting (in milli-Seconds).

Kind of cluncky, but with a little trial and error, I bet you can get that to work.

Then all you need to do is make your voice command change a variable to "1".

Last edited by h3rk; 09-16-2008 at 08:32 AM.
h3rk is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 09-16-2008, 01:01 PM   #9
Fusion Brain Creator
 
2k1Toaster's Avatar
 
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 8,862
2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future


You have voice trigger the output or a variable, and you have logic clean it up either immediately, or after a period of time (use the minimum delta vote easiest)
2k1Toaster is offline   Reply With Quote
Old 09-16-2008, 07:52 PM   #10
Low Bitrate
 
Join Date: Dec 2007
Posts: 105
RonS is an unknown quantity at this point
Ok. Thanks for the info. I think I am going to wait until the new version of software is released. And I also have a new headset/mic coming so I can make sure it is 'hearing' correctly.
RonS 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 On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
First impressions, bugs and features of Infill G4 & Street Deck 1.1.0.0 DAE51D StreetDeck 34 11-06-2007 03:42 PM
iGmod Beta 2 release PURDooM Other Cool Stuff 625 05-12-2006 03:52 PM
Lots of Cool RR functionality, can we enhance button event model? ruairi Road Runner 2 04-04-2005 04:45 PM
I want to add a power button on my dash. Which can i use? Sonicxtacy02 General Hardware Discussion 2 10-25-2004 04:17 PM



All times are GMT -5. The time now is 04:44 PM.


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