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, setDefaultSolenoidModuleaddChild, free, getName, getSubsystem, setName, setName, setName, setSubsystemclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcalibrate, free, getAngle, getRate, resetgetName, getSubsystem, setName, setName, setSubsystempublic GyroBase()
public void setPIDSourceType(PIDSourceType pidSource)
setPIDSourceType in interface PIDSourcepidSource - An enum to select the parameter.public PIDSourceType getPIDSourceType()
PIDSourcegetPIDSourceType in interface PIDSourcepublic double pidGet()
public void initSendable(SendableBuilder builder)
SendableSendable object.initSendable in interface Sendablebuilder - sendable builder