public abstract class GyroBase extends SensorBase implements Gyro, PIDSource, Sendable
kAnalogInputChannels, kAnalogOutputChannels, kDigitalChannels, kPCMModules, kPDPChannels, kPDPModules, kPwmChannels, kRelayChannels, kSolenoidChannels, kSystemClockTicksPerMicrosecond
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.
|
checkAnalogInputChannel, checkAnalogOutputChannel, checkDigitalChannel, checkPDPChannel, checkPDPModule, checkPWMChannel, checkRelayChannel, checkSolenoidChannel, checkSolenoidModule, getDefaultSolenoidModule, setDefaultSolenoidModule
addChild, free, getName, getSubsystem, setName, setName, setName, setSubsystem
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
calibrate, free, getAngle, getRate, reset
getName, getSubsystem, setName, setName, setSubsystem
public GyroBase()
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