DriveStation console, command.scheduler overrun, how to interpret the warning

How do I read this message from DriveStation about overrun.
Running intake and displaying speed and voltages.
I should not use system.out.println, right? Just log the data.

That is causing the second warning with robotPeriodic 0.089s ?

Then what is the following (in blue highlight) where instantCommands are: 0.033 ?


Is this because of putting something to SmartDashboard when beam break is triggered?
So, don’t do that either? Just log in subystem.

The event log has a long-standing problem with messages getting interleaved, and this particular message is not (in my opinion) well-formatted. You are interpreting the problem entries correctly.

You don’t need to worry too much about loop overrun if it’s just a one-off. If it happens repeatedly, then you’ll suffer control lag.

If you’re creating a lot of commands using compositions like this, then I recommend using the withName() decorator so that logging is more informative.

Writing to SmartDashboard should not by itself cause loop overrun.

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