Announcement

Collapse
No announcement yet.

mdx help

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • mdx help

    I am sure this has been brought up but I need some help I am in the prcess of configuring my fusion brain to read my steering wheel controls and sending the commands to varius programs however I have no idea whre to begin in configuring the software for this

    Thanks,
    yonu

  • #2
    http://www.mp3car.com/vbulletin/1223335-post29.html

    That thread is sort of the beginning to end with exactly what you are trying to do.

    ========================================


    Basically:

    1) Create a Fusion Brain Instnace to the Fusion Brain the steering wheel wire will be connected to
    2) Create an Analogue Input Instance
    a) Set the port to the port you will connect to wire to. (0 index based)
    b) Set auto-average to 0, or at most a value of 5 or else your presses will "linger" and trigger multiple button presses
    3) Create a Logic Node for each button you want to map by doing...
    a) Place down your analogue input module, and a number module with the lowest value recorded for that button and a little less (but not so much less it hits the upper bound of another button).
    b) Drop down a greater than or equal to module
    c) Connect the analogue input module to the top node of the greater than module, and connect the number module to the lower node of the greater than module.
    d) Place down your analogue input module (same as step a), and a number module with the highest value recorded for that button and a little more (but not so much more it hits the lower bound of another button).
    e) Drop down a less than or equal to module
    f) Connect the analogue input module to the top node of the less than module, and connect the number module to the lower node of the less than module.
    g) Drop down an AND module
    h) Connect the greater than module and the less than module to the AND module in any order (AND is not picky)
    i) Place the logic output module (big arrow) and connect to the output of the AND module to finish the complete if/then statement
    j) Click the Then/Do icon to add/edit then do statements
    k) Add a then do statement to send a key
    I) EITHER choose "send key" and then setup the target ID and class of the window you want to send to. This will seek out that window, and target a keypress to that window only.
    II) OR choose "send key to foreground" and then choose your key. This will send a key blindly to whatever application is ontop, with no control that way. If the app is not ontop and focused or does not accept global hotkeys, nothing will happen.
    l) Choose the properties, and name it so you can keep track
    m) Choose it to fire on a timer (logic timer is a good choice for this)
    n) Set a minimum delta vote time. This is the time between votes (key presses). Because you will probably be reading the ports in every 50ms or so, but that would cause some crazy keys to be send every 50ms. So set the vote time to something that works for you like 500ms, or 1000ms (1 second). You will need to play with this, and can be different for each button. Maybe Play/Pause should be higher than say Fastforward which should be shorter. All user configurable
    o) Save If/Then node
    4) Save file in MDX directory, and run MDX, and enjoy.
    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

    Comment

    Working...
    X