We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug At this line (https://github.com/wpilibsuite/allwpilib/blob/main/wpilibNewCommands/src/main/java/edu/wpi/first/wpilibj2/command/RamseteCommand.java#L218), leftVelocity is configured with a data-putter that assumes m_prevSpeeds exists.
m_prevSpeeds
m_prevSpeeds is not given a value until initialize() is called (https://github.com/wpilibsuite/allwpilib/blob/main/wpilibNewCommands/src/main/java/edu/wpi/first/wpilibj2/command/RamseteCommand.java#L140).
initialize()
If the command is added to SmartDashboard before the command is run, it crashes on attempting to dereference a null m_prevSpeeds reference.
To Reproduce
SmartDashboard.putData("ramsete command", ramseteCommand);
Expected behavior Command's watched data is put on the dashboard.
Observed behavior Program crashes at RamseteCommand.java:218
Screenshots N/A
Desktop (please complete the following information):
Additional context None
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Describe the bug
At this line (https://github.com/wpilibsuite/allwpilib/blob/main/wpilibNewCommands/src/main/java/edu/wpi/first/wpilibj2/command/RamseteCommand.java#L218), leftVelocity is configured with a data-putter that assumes
m_prevSpeeds
exists.m_prevSpeeds
is not given a value untilinitialize()
is called (https://github.com/wpilibsuite/allwpilib/blob/main/wpilibNewCommands/src/main/java/edu/wpi/first/wpilibj2/command/RamseteCommand.java#L140).If the command is added to SmartDashboard before the command is run, it crashes on attempting to dereference a null
m_prevSpeeds
reference.To Reproduce
SmartDashboard.putData("ramsete command", ramseteCommand);
) before the command is run.Expected behavior
Command's watched data is put on the dashboard.
Observed behavior
Program crashes at RamseteCommand.java:218
Screenshots
N/A
Desktop (please complete the following information):
Additional context
None
The text was updated successfully, but these errors were encountered: