TalonSRX Invert Follow

inverted
talonsrx
java

#1

Hello,

I have two TalonSRX’s. I want them to follow each other, but I also want the secondary motor to be inverted. How can this be accomplished in Java?

Thanks,

-Chexi


#2

motor.setInveted(true);


#3

I second Brandon’s answer. I’m not sure whether the inverted motor has to be the follower though.


#4

https://www.ctr-electronics.com/downloads/api/java/html/enumcom_1_1ctre_1_1phoenix_1_1motorcontrol_1_1_invert_type.html


#5

it does. should have called motor as follower to be more clear


#6

Note: The inverted follower LEDs will still match color of the master LEDs. Both will be Green when the master is commanded to go forward. But the voltages will be the opposite on the output of the follower.

So you can’t tell if the follower is inverted by the LED colors.


#7

and I see you also want the second motor to follow the master. for this use: follower.follow(master);