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

Support 'forward only' motor control mode #16

Open
Ezward opened this issue Oct 31, 2021 · 0 comments
Open

Support 'forward only' motor control mode #16

Ezward opened this issue Oct 31, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@Ezward
Copy link
Owner

Ezward commented Oct 31, 2021

Currently each wheel uses two pwm pins, one for forward and one for backward. This is good because it (a) allows us to backup (b) allows us to turn in place. However, if we only support a forward pwm pin on each motor, then we would have two free pins. This would then allow us to read the encoders with those pins. Then we could support use of the serial ports without having to disconnect that encoders.

  • support compile-time optional drive train mode where we only supply forward pwm to each wheel.
  • when the firmware is compiled in this mode, the Turtle Control web UI must hide the 'Reverse' button because the rover cannot drive in reverse.
  • when the firmware is compiled in forward-only mode the Go to goal must use a slightly different 'Turn to Angle' algorithm.
  • when the firmware is compiled in forward-only mode, the Game Controller support in the web UI must use a slightly different algorithm that does not allow for reverse. Perhaps simply setting any reverse value to zero is adequate.
  • when the firmware is compiled in forward-only mode, allow the serial port to be activated even if encoders are activated. The encoder pins will be reassigned to the former reverse pwm pins in this mode.
@Ezward Ezward added the enhancement New feature or request label Nov 10, 2021
@Ezward Ezward self-assigned this Nov 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant