Skip to content

Encoder.getRate() Polarity #249

@team2194

Description

@team2194

Describe the bug

MecanumDriveWheelSpeeds calls for encoder.getRate().

encoder.getRate() does not change polarity if encoder.setInverted(true) is called.

getRate() calls getVelocity() which returns ((DcMotorEx) motor).getVelocity();

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here. We would recommend telling us yout:

  • OS and version
  • Android Studio version
  • JDK version

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions