Getting CTRE TalonFX Target Settings

I know how to get the sensor values out of a TalonFX.

How do you get the target velocity setting (vs. sensor value) when in velocity PID control mode?

Seems like TalonFX.getClosedLoopTarget() is what you are looking for:

https://store.ctr-electronics.com/content/api/java/html/interfacecom_1_1ctre_1_1phoenix_1_1motorcontrol_1_1_i_motor_controller.html#aaf657dda4d3ec058a198626f79a564ce

Thanks. That’s it.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.