robotpy / examples

Repository of RobotPy example projects
46 stars 53 forks source link

Add mecanum-bot example #92

Closed fletch3555 closed 11 months ago

fletch3555 commented 12 months ago

wpimath.kinematics.ChassisSpeeds.descretize(...) doesn't seem to exist. Am I missing it somewhere? Is it new and needs to be added? Is there a different/better approach?

RobotPy docs: https://robotpy.readthedocs.io/projects/wpimath/en/latest/wpimath.kinematics/ChassisSpeeds.html wpilibj source: https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/kinematics/ChassisSpeeds.java#L92

virtuald commented 12 months ago

It was added in the beta, and the docs were not updated yet. The doc site has moved, and you can see that function here: https://robotpy.readthedocs.io/projects/robotpy/en/latest/wpimath.kinematics/ChassisSpeeds.html#wpimath.kinematics.ChassisSpeeds.discretize

fletch3555 commented 11 months ago

It was added in the beta, and the docs were not updated yet. The doc site has moved, and you can see that function here: https://robotpy.readthedocs.io/projects/robotpy/en/latest/wpimath.kinematics/ChassisSpeeds.html#wpimath.kinematics.ChassisSpeeds.discretize

Good call. I didn't realize I wasn't running the 2024 beta version. Should be updated now