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 Ultrasonic.Unit |
Ultrasonic.Unit.kInches
Use inches for PIDGet
|
static Ultrasonic.Unit |
Ultrasonic.Unit.kMillimeter
Use millimeters for PIDGet
|
Modifier and Type | Method and Description |
---|---|
Ultrasonic.Unit |
Ultrasonic.getDistanceUnits()
Get the current DistanceUnit that is used for the PIDSource base object.
|
Modifier and Type | Method and Description |
---|---|
void |
Ultrasonic.setDistanceUnits(Ultrasonic.Unit units)
Set the current DistanceUnit that should be used for the PIDSource base
object.
|
Constructor and Description |
---|
Ultrasonic(DigitalOutput pingChannel,
DigitalInput echoChannel,
Ultrasonic.Unit units)
Create an instance of an Ultrasonic Sensor from a DigitalInput for the
echo channel and a DigitalOutput for the ping channel.
|
Ultrasonic(int pingChannel,
int echoChannel,
Ultrasonic.Unit units)
Create an instance of the Ultrasonic Sensor.
|
Copyright © 2015. All rights reserved.