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

Initialize m_enabled to true in PPHolonomicDriveController #575

Merged
merged 1 commit into from
Jan 25, 2024

Conversation

AJahueyM
Copy link
Contributor

@AJahueyM AJahueyM commented Jan 25, 2024

We are currently using PathPlanner for our robot, we are testing the code using a Gazebo simulation. The simulated robot didn't seem to turn at all, while the real robot did it without issue. We looked into it and found that the m_enabled check in PPHolonomicDriveController was failing, we believe it is because the variable is not assigned anything, leaving the compiler to decide its value. On Java the variable is set to true when its declared.

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

Huh. Don't know why I never noticed that. Can you move the initialization to the constructor in the cpp file here instead of the h file? I like to keep it all in the same place.

@mjansen4857
Copy link
Owner

Actually nvm, that's fine in the h file

@mjansen4857
Copy link
Owner

When this gets merged, I'm just going to replace the current 2024.1.5 release with the new build since I just pushed 2024.1.5 today. So, if you are already updated to that version you'll have to delete it from your gradle cache.

@mjansen4857 mjansen4857 merged commit 0384490 into mjansen4857:main Jan 25, 2024
24 checks passed
@AJahueyM
Copy link
Contributor Author

Okay, thanks!

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