View Single Post
  #3   Spotlight this post!  
Unread 10-02-2013, 02:15
cdizzle cdizzle is offline
Registered User
FRC #2367
 
Join Date: Oct 2012
Location: Bay Area, CA
Posts: 42
cdizzle is an unknown quantity at this point
Re: Window Motor Problem?

Quote:
Originally Posted by Kevin Sevcik View Post
That's certainly a recipe for weirdness if you're pressing both buttons at once. Also, how on earth does your motor stop after you let go of a button? If you let go of the counter clockwise button, does the motor stop or keep going? If your motor stops then you're clearly setting the motor speed to 0 somewhere else, since it's not in your false cases. If you're setting speed to 0 elsewhere, then your button 3 code is beating out the zero speed code and keeping things moving. Your button 4 code occasionally loses to the zero speed code and thus sometimes the motor stops, and sometimes it moves. Assuming you're setting speed to 0 somewhere.
Wait, so if I set my motor speed to 0 when false in the case block for button 3, will it affect the motor when the button 4 case block is true?

Quote:
Originally Posted by nicholsjj View Post
You could try switching imput buttons on your joystick to see if that helps also. I know our gamepads had a glitchy button on it. You might want to put the -1 value and then invert that into you motor output to see if it works also.
Yeah, we tried both of those things, and neither worked.
Reply With Quote