Potential Cause of Command Scheduler Overruns: Repeated Execution Of Commands? #27
Labels
bug
Something isn't working
high priority
Critical tasks that need to be addressed soon
question
Further information is requested
wtf??
wtf??
Issue Description
In many places in our codebase, the
setAngle
function or similiar set functions are implemented like this:Use of
run { ... }
in CommandsThe
run { ... }
construct creates aRunCommand
, which repeatedly executes the specified action in every cycle until the command ends. This continuous execution may lead to our Command Scheduler overruns.Fix:
runOnce { ... }
By doing so i believe we will no longer have overruns.
@katzuv Please correct me if I misread documentation or am missing something here.
The text was updated successfully, but these errors were encountered: