Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add driver station warning if named command is not known #579

Merged
merged 3 commits into from
Jan 26, 2024

Conversation

pjreiniger
Copy link
Contributor

My kids had a capitalization problem with a named command and didn't know why their thing wasn't getting scheduled. By at least logging a warning, there is some insight to what is going wrong.

Alternatively, you can hard fail with an exception. I think it is bad that there can be a discrepancy that silently fails between what you see in the gui and what gets run on the robot.

@github-actions github-actions bot added the PathPlannerLib Changes to PathPlannerLib label Jan 26, 2024
@mjansen4857
Copy link
Owner

I think reporting a warning or error makes sense over throwing since it allows for easily disabling certain markers for testing just by commenting out the lines that register them, without having to delete them from the path.

Can you add the same warning for python as well. Relevant line is here. You'd need to add reportWarning to the import here

@mjansen4857 mjansen4857 merged commit 9bfa3d9 into mjansen4857:main Jan 26, 2024
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PathPlannerLib Changes to PathPlannerLib
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants