Hermes
Toggle table of contents
0.2.1
androidJvm
Platform filter
androidJvm
Switch theme
Search in API
Hermes
ftc
/
com.acmerobotics.roadrunner.hardware
/
WrappingEncoder
Wrapping
Encoder
class
WrappingEncoder
(
val
encoder
:
Encoder
,
val
cpr
:
Int
)
:
Encoder
An encoder that wraps its position to [0, cpr). Useful for swerve pod rotations.
Members
Constructors
Wrapping
Encoder
Link copied to clipboard
constructor
(
encoder
:
Encoder
,
cpr
:
Int
)
Properties
cpr
Link copied to clipboard
val
cpr
:
Int
direction
Link copied to clipboard
open
override
var
direction
:
DcMotorSimple.Direction
encoder
Link copied to clipboard
val
encoder
:
Encoder
Functions
get
Position
And
Velocity
Link copied to clipboard
open
override
fun
getPositionAndVelocity
(
)
:
PositionVelocityPair