Page 4 of 32 FirstFirst 1234567891011121314 ... LastLast
Results 31 to 40 of 313

Thread: Fusion Control Centre Uber Edition -- Need Testers

  1. #31
    FLAC
    Join Date
    Oct 2006
    Location
    Las Vegas
    Posts
    1,286
    I forgot to ask, any big changes in the new update?

  2. #32
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,053
    Well the "then" part of the if/then work. Anything that a button can "trigger" a then statement can do now with the same syntax. I broke that button code off to make it generic so it actually passes through the same code no matter what calls it now. If I made one of those flow charts for this program it would be a rats nest of generic criss crossing.
    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. #33
    FLAC
    Join Date
    Oct 2006
    Location
    Las Vegas
    Posts
    1,286
    Quote Originally Posted by 2k1Toaster View Post
    Well the "then" part of the if/then work. Anything that a button can "trigger" a then statement can do now with the same syntax. I broke that button code off to make it generic so it actually passes through the same code no matter what calls it now. If I made one of those flow charts for this program it would be a rats nest of generic criss crossing.
    I had hoped that's what it was. Now I can get some more done.

    A few questions/observations:

    In your new default skin file;
    change Output2_ButtonNumber2's vote attribute to "attached". Run it and see if that's the response you expect. For me it locks the button on(primary). If I change that output's default state to off, then the top button which is also attached but it's opinion is "off", goes to the primary image.

    I've been trying to work with the vote (attached) attribute, but I'm using variables. I wasn't getting what I expected so I started with something that I knew used to work. When two buttons were attached to the same output, I could affect one button from another through the output's state. That didn't seem to work for me now, like it used to.

    I'm trying to replace "trigger output" with "change variable". Then running an "if" in logic to look at that newly changed variable :

    Code:
    ...
        <button 
          id="select_BiLevel"
          enabled="yes"
          function="change variable"
          functionTargetID="preModeBiLevel"
          vote="attached" 
          vote_opinion="true"
          vote_priority="medium">
          <images 
            imagePrimary="Images\Buttons\DO\BiLeveldown.png"
            imageSecondary="Images\Buttons\DO\BiLevelup.png "
            imageDisabled="Images\Buttons\DO\BiLevelup.png"
            imagePushed="Images\Buttons\DO\BiLeveldown.png">
          </images>
          <display 	
            size="82,52"
            location="5,122"
            page="0">
          </display>
       </button>
    
        <button
         id="select_FloorDef"
         enabled="yes"
         function="change variable"
         functionTargetID="preModeFloorDef"
         vote="attached"
         vote_opinion="On"
         vote_priority="medium">
          <images
            imagePrimary="Images\Buttons\DO\FloorDefdown.png"
            imageSecondary="Images\Buttons\DO\FloorDefup.png "
            imageDisabled="Images\Buttons\DO\FloorDefup.png"
            imagePushed="Images\Buttons\DO\FloorDefdown.png">
          </images>
          <display
            size="82,52"
            location="5,330"
            page="0">
          </display>
        </button>
    Code:
    ...
        <all_variables>
          <variable
            name="preModeBiLevel">
            0
          </variable>
    
          <variable
            name="preModeFloorDef">
            0
          </variable>
    
        </all_variables>
    Code:
    ...
       <all_statements>
    
          <if 
            priority="medium" 
            fire_on="logic">
            <parameter1>
              <variable 
                do="get">
                PreModeBiLevel
              </variable>
            </parameter1>
            <then>
              <do 
                function="change variable" 
                functionTargetID="preModeFloorDef" 
                vote_opinion="false" 
                vote_priority="medium"></do>       
            </then>
          </if>
          
        </all_statements>
    I thought that this would let me push the first buton on, turning it's variable to true. Then by pressing the first button, it would turn the second's variable to false, changing the buttons state.

    Does that 'seem' right to you?

    I was hoping some variation of this would interlock two buttons. I've tried with and without "equals true" variations in the if comparison, but I don't know if it's needed here, or what the syntax is for "is equal to".

    I realize I'm still at a disadvantage without real outputs, and no debugger, but I really thought this would work.

  4. #34
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,053
    Can you zip up your skin and images and send to me. it would be easier to see what you mean then try and visualize 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

  5. #35
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,053
    ok, just looking at that simple code, you need a parameter 2 and a check.

    and the equal to is just that "equal to"

    so
    Code:
    ...
       <all_statements>
    
          <if 
            priority="medium" 
            fire_on="logic">
            <parameter1>
              <variable 
                do="get">
                PreModeBiLevel
              </variable>
            </parameter1>
            <parameter2>
    		<boolean>false</boolean>
    	</parameter2>
            <test check="equal to"></test>
            <then>
              <do 
                function="change variable" 
                functionTargetID="preModeFloorDef" 
                vote_opinion="false" 
                vote_priority="medium"></do>       
            </then>
          </if>
          
        </all_statements>
    You think I should change it to "is equal to"? Or I could make it both, but that may get confusing...
    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. #36
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,053
    And in the 2nd statement you have vote_opinion as "on". A variable cannot be on. It is either a double or a boolean.
    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. #37
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,053
    And on a seperate note, with xml, you shouldnt add those whitelines inbetween attributes and such. Programs dont always get rid of all the whitelines. For instance, if I make a schema, it will completely screw up the XML if viewed in FireFox or Opera.
    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

  8. #38
    FLAC
    Join Date
    Oct 2006
    Location
    Las Vegas
    Posts
    1,286
    woops, I just unswitched it from "trigger output" I must have missed that.

    Oh, it was so much easier to read with the white, good to know.

  9. #39
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,053
    Are you using an XML editor, or just NotePad?
    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. #40
    FLAC
    Join Date
    Oct 2006
    Location
    Las Vegas
    Posts
    1,286
    was using VS. But I did the whitespace thing. Is it better to use notepad?

Similar Threads

  1. *NEW* USB Input/Output Board -- Fusion Brain
    By 2k1Toaster in forum Fusion Brain
    Replies: 1123
    Last Post: 02-22-2010, 02:33 AM
  2. Need wiring help for 2005 Grand Prix.
    By derekmac in forum Car Audio
    Replies: 33
    Last Post: 09-21-2007, 09:42 PM
  3. Remote Control Fusion Brain.
    By alexgray104 in forum Fusion Brain
    Replies: 9
    Last Post: 09-06-2007, 03:16 AM
  4. Replies: 2
    Last Post: 07-24-2007, 09:11 AM
  5. Replies: 1
    Last Post: 12-03-2005, 08:58 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
  •