View Single Post
  #9   Spotlight this post!  
Unread 22-01-2009, 12:43
domoarigato's Avatar
domoarigato domoarigato is offline
Team #1208 CCO
AKA: Coony
FRC #1208 (Metool Brigade)
Team Role: Engineer
 
Join Date: Nov 2008
Rookie Year: 2008
Location: O'Fallon, Il
Posts: 32
domoarigato is an unknown quantity at this point
Re: Joystick Button Programming in Labview Help Needed

@DavidAllen: Hrmmrrr... have tried a few different case statement configurations but perhaps I was not doing them correctly... Will try this when Electrical gives me the board back. > . >

@mgurgol: Probing the buttons? Have definitely pressed like... every button with every combination of code I've ever put into it... and zilch. (And yeah, the joysticks will control the jaguars and we can drive with them, but one set of two jaguars keep going in reverse when we push the joystick -usb slot 2- and we don't know why... Especially since we are only trying to control PWM signals 1 and 2 for the motors... and have deleted all the pre-done driving code in hopes that we could just call the individual PWMs etc on our own just for those two jaguars... and it still wants to control all four for some reason... though that's a separate issue... /rant)

@brdn666: Pretty sure they were wired correctly, though many of our all day 'why can't we figure this out??' problems that have been blamed on programming were actually just a backwards PWM cable... But I'm pretty sure there's no real way to mess up the wiring on these. Just going from the spike directly into the correct numbered relay-slot-thing that I specified in the code, right? When we plugged a spike into any of the DIO-slot-things, it would go in full reverse... which is better than nothing, but we're still looking for a way to make them go forward, neutral, and stop, as well as a way to toggle between these modes (ie. buttons... haha)

@TotalChaos: Hrmrrr... Yeah I was a bit confused on what the difference was between On/Off and Forward/Reverse. We want the CIM motor attached to the spike to be toggle-able from Reverse/Neutral/Forward... So I suppose that'd be Reverse/On/Forward or 3/1/2...? So if we wanted to do this... We'd like... make a case structure thing with three cases (one for each of the states) and then... I guess... Well I suppose the trouble is that I don't know how I would wire a single button to it in order to be able to trigger all three of these states. Mechanical wants it to be neutral until say... button two is pressed (pressed once, not held down... another issue I'm not sure how to do...) and then it would go forward. They also want it to be able to then (with the same button, presumabley) be able to turn the motor in reverse somehow.... yeahh... not sure if that's possible. But if it isn't, I suppose I'd have to do sorta like... two different buttons, one of which will toggle the spike from neutral to forward and one from neutral to reverse...?

Thank you all again for the quick responses and all your help~~~
Reply With Quote