TalonSRX Invert Follow

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

motor.setInveted(true);

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

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

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

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.

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