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
WPILib has various getPosition and getVelocity in specified units: https://github.wpilib.org/allwpilib/docs/development/java/edu/wpi/first/wpilibj/simulation/DCMotorSim.html#getAngularVelocity()
but RobotPy is missing getAngularPositionRotations, getAngularVelocityRotations, and maybe other functions: https://robotpy.readthedocs.io/projects/robotpy/en/stable/wpilib.simulation/DCMotorSim.html#wpilib.simulation.DCMotorSim.getAngularVelocity
getAngularPositionRotations
getAngularVelocityRotations
Windows, MacOS, Linux, RoboRIO, Raspbian
No response
The text was updated successfully, but these errors were encountered:
Those functions do not exist in C++: https://github.com/wpilibsuite/allwpilib/blob/28cb7cf757e8dce89aab6d8181203b665afca62a/wpilibc/src/main/native/include/frc/simulation/DCMotorSim.h#L60
My guess is it's just a unit conversion, so C++ doesn't need them? If you can provide which units you need we can add the corresponding functions.
Edit: I see, Java has the units specified. We can probably add those extra functions too.
Sorry, something went wrong.
No branches or pull requests
Problem description
WPILib has various getPosition and getVelocity in specified units: https://github.wpilib.org/allwpilib/docs/development/java/edu/wpi/first/wpilibj/simulation/DCMotorSim.html#getAngularVelocity()
but RobotPy is missing
getAngularPositionRotations
,getAngularVelocityRotations
, and maybe other functions: https://robotpy.readthedocs.io/projects/robotpy/en/stable/wpilib.simulation/DCMotorSim.html#wpilib.simulation.DCMotorSim.getAngularVelocityOperating System
Windows, MacOS, Linux, RoboRIO, Raspbian
Installed Python Packages
No response
Reproducible example code
No response
The text was updated successfully, but these errors were encountered: