|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
Re: TalonSRX invert?
I think you're looking for the setInvertedMotor() function. It works with any Robot Drive object regardless of what kind of speed controller you have on your drivebase.
|
|
#2
|
||||
|
||||
|
Re: TalonSRX invert?
Quote:
Code:
driveSystem.SetInvertedMotor(kFrontRightMotor, true); Code:
driveSystem.SetInvertedMotor(rightFrontDriveTalon, true); |
|
#3
|
||||
|
||||
|
Re: TalonSRX invert?
Lowercase "s"? setInvertedMotor
|
|
#4
|
||||
|
||||
|
Re: TalonSRX invert?
I looked in the RobotDrive.h and it is a capital S, the error I get is that it isn't a Motor Type
|
|
#5
|
||||
|
||||
|
Re: TalonSRX invert?
A number of the method names are capitalized. It drives me crazy (pun intended) as the Java naming convention is a lowercased first letter and then the rest of the word is camel cased. The CANTalonSRX class has a few of these incorrectly named methods as well but it's a fairly minor issue in the scheme of things.
|
|
#6
|
||||
|
||||
|
Re: TalonSRX invert?
Quote:
Code:
driveSystem.SetInvertedMotor(RobotDrive::kFrontRightMotor, true); |
|
#7
|
||||
|
||||
|
Re: TalonSRX invert?
Thanks! It now works
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|