View Single Post
  #1   Spotlight this post!  
Unread 20-01-2012, 16:57
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,579
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: How does this program look?

That will set the motor to run at 100%. Set Output takes a value from -1 (full speed reverse) to 1 (full speed forward). Since 50 is larger then 1, it will be full speed.

One good practice is to make your programs flow from right to left. I would put your Set Output to the right of your case statement, so that it is easier to read.

Last edited by Joe Ross : 20-01-2012 at 17:00.
Reply With Quote