View Single Post
  #2   Spotlight this post!  
Unread 21-03-2013, 23:31
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Initializing and Using Buttons to Control Victor Motor Controllers

You titled your note with "Victor Motor Controllers", but you asked about "the servo motor". I don't see any servos in your code. What are you really trying to control?

Why do you have parentheses around the names of your Victor objects when you declare them?

You declared "victorc" and "victord", but you're trying to set "Intakevictorc" and "Intakevictord".

If you fix the names to match, your code will run motor C on PWM 3 forward when you press button 4, and motor D on PWM 4 backward when you press button 5. It never runs those motors in the other direction.
Reply With Quote