View Single Post
  #1   Spotlight this post!  
Unread 20-02-2010, 22:45
Alexandstein Alexandstein is offline
Registered User
FRC #2192 (YAK Attack)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Newport, OR
Posts: 13
Alexandstein is an unknown quantity at this point
Negatives not working.

In our robot code, we are attempting to program a motor to go forward for .5 seconds, and then go backwards for another .5 seconds at the press of a button, but for some reason, negative numbers are not working. The motor goes forward for .5 seconds, and goes forward again instead of backwards.
For the motor speed we have -0.5 entered in.
We tried controlling the motor to go backwards and forward using the throttle axis on the joystick it worked fine.

Thanks for any help!
Reply With Quote