You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 17, 2020. It is now read-only.
The DriveEncoder class should extend Encoder. It needs to implement the constructor with two ints for ports, a boolean for direction, and an EncodingType.
In the constructor, it needs to call several methods:
setMaxPeriod()
setMinRate()
setDistancePerPulse()
These will have parameters that you will have to create in the ConstantsMap. For calculating encoder distance per pulse, you will need the wheel size and the pulses per revolution (1028).
You also need to run this method:
setPIDSourceType(PIDSourceType.kDisplacement)
Check out the ExampleRobot repository for an example.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The DriveEncoder class should extend Encoder. It needs to implement the constructor with two ints for ports, a boolean for direction, and an EncodingType.
In the constructor, it needs to call several methods:
These will have parameters that you will have to create in the ConstantsMap. For calculating encoder distance per pulse, you will need the wheel size and the pulses per revolution (1028).
You also need to run this method:
Check out the ExampleRobot repository for an example.
The text was updated successfully, but these errors were encountered: