Skip to content

Add warning for controller execution time exceeding loop frequency in sim#119

Merged
ratheron merged 2 commits into
learnsyslab:mainfrom
Yuming-Lee24:sim-freq-warning
Jul 14, 2026
Merged

Add warning for controller execution time exceeding loop frequency in sim#119
ratheron merged 2 commits into
learnsyslab:mainfrom
Yuming-Lee24:sim-freq-warning

Conversation

@Yuming-Lee24

Copy link
Copy Markdown
Collaborator

mirroring deploy.py, the sim will now also shows warning message if the control exceeds loop frequency

@Yuming-Lee24
Yuming-Lee24 requested a review from ratheron July 14, 2026 10:22

@ratheron ratheron left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not keep it simpler?

@ratheron

ratheron commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

Since multiple teams this term noticed towards the end that their control approach is not feasible in real due to recomputation, I think this PR helps with that. What do you think @amacati

@amacati

amacati commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

Seems very useful, thanks. @ratheron Looking at the review, why not measure compute_control? That's usually where the main computation burden is in

Comment thread scripts/sim.py Outdated
Comment thread scripts/sim.py Outdated
Comment thread scripts/sim.py Outdated
Comment thread scripts/sim.py Outdated
@ratheron

Copy link
Copy Markdown
Collaborator

You are right, was unintentional. I adjusted my review

Co-authored-by: Marcel Rath <75042654+ratheron@users.noreply.github.com>

@amacati amacati left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks for the addition!

@ratheron ratheron left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ratheron
ratheron merged commit dc8c1b9 into learnsyslab:main Jul 14, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants