Results 1 to 10 of 10

Thread: Momentary Button

  1. #1
    Low Bitrate
    Join Date
    Dec 2007
    Posts
    105

    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

  2. #2
    FLAC
    Join Date
    Oct 2006
    Location
    Las Vegas
    Posts
    1,286
    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.

  3. #3
    Low Bitrate
    Join Date
    Dec 2007
    Posts
    105
    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.

  4. #4
    FLAC
    Join Date
    Oct 2006
    Location
    Las Vegas
    Posts
    1,286
    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.

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

  6. #6
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    Also to do a momentary button automatically using the wizard, click the checkbox by the digital output that says momentary.
    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

  7. #7
    Low Bitrate
    Join Date
    Dec 2007
    Posts
    105
    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..

  8. #8
    FLAC
    Join Date
    Oct 2006
    Location
    Las Vegas
    Posts
    1,286
    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".

  9. #9
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049


    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)
    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

  10. #10
    Low Bitrate
    Join Date
    Dec 2007
    Posts
    105
    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.

Similar Threads

  1. Replies: 34
    Last Post: 11-06-2007, 03:42 PM
  2. iGmod Beta 2 release
    By PURDooM in forum Other Cool Stuff
    Replies: 625
    Last Post: 05-12-2006, 03:52 PM
  3. Replies: 2
    Last Post: 04-04-2005, 04:45 PM
  4. I want to add a power button on my dash. Which can i use?
    By Sonicxtacy02 in forum General Hardware Discussion
    Replies: 2
    Last Post: 10-25-2004, 04:17 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
  •