public class Potentiometer extends AnalogInput implements SensorModule, AngleSource
AnalogInput.AccumulatorResult, AnalogInput.AnalogTriggerTypeAnalogIO.AnalogChannel, AnalogIO.DirectionInterface.InterfaceTypem_tablem_channel, m_port, m_portPointerm_ifaceType, MAX_ANALOG_IN_CHANNELS, MAX_ANALOG_OUT_CHANNELS, MAX_DIGITAL_CHANNELS, MAX_PWM_CHANNELS, MAX_RELAY_CHANNELS| Constructor and Description |
|---|
Potentiometer(AnalogIO.AnalogChannel channel,
int avgBits,
int ovrBits)
Instantiates a new potentiometer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
disableModule()
Disable the module
|
void |
enableModule()
Enable the module
|
double |
getAngle() |
boolean |
getModuleEnabled() |
java.lang.String |
getSmartDashboardType()
Live Window code, only does anything if live window is activated.
|
createTriggerOutput, free, get, getAccumulatorCount, getAccumulatorOutput, getAccumulatorValue, getAverageBits, getAverageValue, getAverageVoltage, getGlobalSampleRate, getInWindow, getLSBWeight, getOffset, getOversampleBits, getTable, getTriggerIndex, getTriggerState, getValue, getVoltage, initAccumulator, initTable, initTrigger, isAccumulatorChannel, resetAccumulator, setAccumulatorCenter, setAccumulatorDeadband, setAccumulatorInitialValue, setAverageBits, setAveraged, setFiltered, setGlobalSampleRate, setLimitsRaw, setLimitsVoltage, setOversampleBits, startLiveWindowMode, stopLiveWindowMode, updateTablegetChannel, getChannelNumberallocateMXPPin, checkAnalogInputChannel, checkAnalogOutputChannel, checkDigitalChannel, checkPWMChannel, checkRelayChannel, freeMXPPin, getInterfaceTypepublic Potentiometer(AnalogIO.AnalogChannel channel, int avgBits, int ovrBits)
channel - AnalogIO Channel of the PotentiometeravgBits - Number of Averaging BitsovrBits - Number of Oversample Bitspublic double getAngle()
getAngle in interface AngleSourcepublic java.lang.String getSmartDashboardType()
getSmartDashboardType in interface SendablegetSmartDashboardType in class AnalogInputpublic void enableModule()
enableModule in interface Modulepublic void disableModule()
disableModule in interface Modulepublic boolean getModuleEnabled()
getModuleEnabled in interface Module