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

Simple vs Advanced Motor/Gearbox Physics #90

Open
zhiquanyeo opened this issue Jun 23, 2020 · 0 comments
Open

Simple vs Advanced Motor/Gearbox Physics #90

zhiquanyeo opened this issue Jun 23, 2020 · 0 comments
Assignees
Labels
physics Physics improvements (outside of the physics engine)

Comments

@zhiquanyeo
Copy link
Collaborator

Refactor the robot drivetrain classes (SimMotor, SimRobotWheel, SimRobotDrivetrain) to support simple or advanced physics. This is an enhancement to #76

Simple physics:

  • The way it is set up now. Each SimMotor takes in a maximum output force, and the drivetrain distributes that force among the wheels

Advanced physics:

  • SimMotor takes in Free speed, stall torque, etc
  • Motor Groups act like gearboxes where reductions can be specified
  • Torque produced by wheels is calculated and converted into pushing force
  • Potential for SimMotor to calculate current draw

A first step will be to refactor the code to allow a swappable "drivetrain physics" module, and write a "SimpleDrivetrainPhysics" module that behaves the same way existing code does

@zhiquanyeo zhiquanyeo added the physics Physics improvements (outside of the physics engine) label Jun 23, 2020
@zhiquanyeo zhiquanyeo self-assigned this Jun 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
physics Physics improvements (outside of the physics engine)
Projects
None yet
Development

No branches or pull requests

1 participant