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

[examples] Fix segfault in GearsBot C++ example #3111

Merged
merged 2 commits into from
Jan 21, 2021

Conversation

prateekma
Copy link
Member

This is a temporary fix to prevent a dangling this pointer in the
DriveStraight and SetDistanceToBox commands by directly capturing the
drivetrain pointer by value instead.

Closes #3109

This is a temporary fix to prevent a dangling this pointer in the
DriveStraight and SetDistanceToBox commands by directly capturing the
drivetrain pointer by value instead.
@prateekma prateekma requested review from a team as code owners January 21, 2021 02:56
@PeterJohnson PeterJohnson merged commit 15be5cb into wpilibsuite:master Jan 21, 2021
@prateekma prateekma deleted the gearsbot-segfault branch January 21, 2021 04:39
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.

GearsBot Example SegFaults on left stick press
3 participants