Package | Description |
---|---|
edu.wpi.first.wpilibj |
The WPI Robotics library (WPILibJ) is a set of Java classes that interfaces to the hardware in the FRC
control system and your robot.
|
Modifier and Type | Field and Description |
---|---|
static CounterBase.EncodingType |
CounterBase.EncodingType.k1X
Count only the rising edge
|
static CounterBase.EncodingType |
CounterBase.EncodingType.k2X
Count both the rising and falling edge
|
static CounterBase.EncodingType |
CounterBase.EncodingType.k4X
Count rising and falling on both channels
|
Constructor and Description |
---|
Counter(CounterBase.EncodingType encodingType,
DigitalSource upSource,
DigitalSource downSource,
boolean inverted)
Create an instance of a Counter object.
|
Encoder(DigitalSource aSource,
DigitalSource bSource,
boolean reverseDirection,
CounterBase.EncodingType encodingType)
Encoder constructor.
|
Encoder(int aChannel,
int bChannel,
boolean reverseDirection,
CounterBase.EncodingType encodingType)
Encoder constructor.
|
Copyright © 2015. All rights reserved.