View Single Post
  #6   Spotlight this post!  
Unread 19-01-2016, 09:45
electronicsdude's Avatar
electronicsdude electronicsdude is offline
Registered User
AKA: Spencer
FRC #4918 (The Roboctopi)
Team Role: Engineer
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Port Townsend, WA
Posts: 15
electronicsdude will become famous soon enoughelectronicsdude will become famous soon enough
Re: Unable to invert motor

Quote:
Originally Posted by christheman200 View Post
Hi all!
I have the following code in my main robot class, and it is giving me a number of exceptions which I can't conquer:
Code:
MainDrive.setInvertedMotor(Talon.kRearLeft, true); 
	MainDrive.setInvertedMotor(Talon.kRearRight, true);
Exceptions:
First line:
- Syntax error on tokens, delete these tokens
- Syntax error on token "(", < expected
Second line:
- Syntax error on tokens, TypeArgument1 expected instead
- Syntax error on token "(", , expected

Any and all help is appreciated!
Thanks, Chris
Just flip the polarity on the motor side of your motor controller. its legal as long as you label it and it works like a dream.
Reply With Quote