Skip to content

CTRE Signal Logger causes significant loop overruns after autonInit on FMS #110

@Cryplo

Description

@Cryplo

1076 discovered this issue at St. Joseph WK2. Although our autonomous was working at home, at competition on FMS we found that we were experiencing a significant loop overrun >800ms that caused our robot to behave unexpectedly. This overrun occurred roughly 1s into autonomous. There were high overruns after that too of about 250ms, but we believe that that is just because our auto-align is poorly written / expensive (there appeared to be a correlation between calling the auto-align command and the 250ms overruns). Between St. Joseph WK2 and Saline WK4, we were able to solve the issue. We turned off signal logging and also changed thread priority to real-time 10. Based on our limited testing in practice mode, if we keep the thread priority at real-time 10 but turn on signal logging, we experience the same large overrun, which leads us to believe that signal logging is the cause of the issue. In #programming-discussion of the FRC discord server, team 868 experienced a similar issue and was able to fix it by turning off signal logging. We talked with Daltz in the channel so they should already be aware of this issue.

Loop Overrun Image:

Example Match Video of Behavior:

ChiefDelphi Threads:

Discord Discussion:

Our Code (Week 2 and Week 4):

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions