|
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.
|