public abstract class GyroBase extends SendableBase implements Gyro, PIDSource
Constructor and Description |
---|
GyroBase() |
Modifier and Type | Method and Description |
---|---|
PIDSourceType |
getPIDSourceType()
Get which parameter of the device you are using as a process control variable.
|
void |
initSendable(SendableBuilder builder)
Initializes this
Sendable object. |
double |
pidGet()
Get the output of the gyro for use with PIDControllers.
|
void |
setPIDSourceType(PIDSourceType pidSource)
Set which parameter of the gyro you are using as a process control variable.
|
addChild, close, free, getName, getSubsystem, setName, setName, setName, setSubsystem
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void setPIDSourceType(PIDSourceType pidSource)
setPIDSourceType
in interface PIDSource
pidSource
- An enum to select the parameter.public PIDSourceType getPIDSourceType()
PIDSource
getPIDSourceType
in interface PIDSource
public double pidGet()
public void initSendable(SendableBuilder builder)
Sendable
Sendable
object.initSendable
in interface Sendable
builder
- sendable builder