-
Notifications
You must be signed in to change notification settings - Fork 18
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
Adds MecanumControllerCommand to Commands2. #35
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mypy failed
ChassisSpeeds(initialXVelocity, initialYVelocity, 0.0) | ||
) | ||
self.timer.restart() | ||
self.prevTime = 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prevTime isn't reset in Java?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It isn't reset in Java but I guess I just sort of did that because that's how I teach the students to write commands when I teach them.
Not really a bug per se in Java, but I think it should probably be reset to 0 in initialize in Java. I removed it here for parity.
feedforward | ||
or frontLeftController | ||
or rearLeftController | ||
or frontRightController | ||
or rearRightController | ||
or currentWheelSpeedsSupplier is None | ||
): | ||
raise RuntimeError( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If any of
- feedforward
- frontLeftController
- rearLeftController
- frontRightController
- rearRightController
are provided (i.e. not None
), won't we always get here? This doesn't seem right.
#28