Migrating to Phoenix 6 - Where's getClosedLoopTarget()?

I’ve been updating some old shooter code, and while migrating to phoenix 6, haven’t been able to find an equivalent for TalonFX.getClosedLoopTarget(). It’s been generally kind of frustrating to try and find equivalent functions in other cases too. Is there any comprehensive function equivalency table between phoenix 5 and 6? If not, has the functionality to get the target just been removed?

Are you looking for this?

I would recommend reading over the migration guide here and the API docs. You can see all the available functions on the CoreTalonFX object. Note that you should use the TalonFX, NOT the CoreTalonFX (that’s just the base object we have to support FRC and non-FRC).

1 Like

Thanks! Turned out that was exactly what I was looking for. Not quite sure how I missed it.

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