Getting a Talon to report current more frequently

We are trying to do some testing on a PID loop; we are logging shaft velocity, supply current and voltage, and output velocity and voltage.

We upped the frame rate (just for testing!) with
falcon1.setStatusFramePeriod(StatusFrameEnhanced.Status_1_General, 1, kTimeoutMs);
falcon1.setStatusFramePeriod(StatusFrameEnhanced.Status_2_Feedback0, 1, kTimeoutMs);
falcon1.setStatusFramePeriod(StatusFrameEnhanced.Status_4_AinTempVbat, 1, kTimeoutMs);

that upped the reporting rate for the voltages, but the reported current is still only updated every 50ms or so.

What type of status frame contains the current information?

https://phoenix-documentation.readthedocs.io/en/latest/ch18_CommonAPI.html#setting-status-frame-periods

Status Frame 2 according to the documentation.

1 Like

https://phoenix-documentation.readthedocs.io/en/latest/ch21_Errata.html#talonfx-current-reporting-status-frame-not-available

Current Reporting for TalonFX is done in a different frame from TalonSRX and is currently missing in the StatusFrame enums. The link above documents a workaround for the time being while we add the enum value in the API.

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