Package com.ctre.phoenix.sensors
Class WPI_CANCoder
java.lang.Object
com.ctre.phoenix.sensors.CANCoder
com.ctre.phoenix.sensors.WPI_CANCoder
- All Implemented Interfaces:
Sendable
,AutoCloseable
public class WPI_CANCoder extends CANCoder implements Sendable, AutoCloseable
-
Constructor Summary
Constructors Constructor Description WPI_CANCoder(int deviceNumber)
Constructor for CANCoderWPI_CANCoder(int deviceNumber, String canbus)
Constructor for CANCoder -
Method Summary
Modifier and Type Method Description void
close()
void
initSendable(SendableBuilder builder)
Methods inherited from class com.ctre.phoenix.sensors.CANCoder
clearStickyFaults, clearStickyFaults, configAbsoluteSensorRange, configAbsoluteSensorRange, configAllSettings, configAllSettings, configFactoryDefault, configFactoryDefault, configFeedbackCoefficient, configFeedbackCoefficient, configGetAbsoluteSensorRange, configGetAbsoluteSensorRange, configGetCustomParam, configGetCustomParam, configGetFeedbackCoefficient, configGetFeedbackCoefficient, configGetFeedbackTimeBase, configGetFeedbackTimeBase, configGetFeedbackUnitString, configGetFeedbackUnitString, configGetMagnetOffset, configGetMagnetOffset, configGetParameter, configGetParameter, configGetSensorDirection, configGetSensorDirection, configGetSensorInitializationStrategy, configGetSensorInitializationStrategy, configGetVelocityMeasurementPeriod, configGetVelocityMeasurementPeriod, configGetVelocityMeasurementWindow, configGetVelocityMeasurementWindow, configMagnetOffset, configMagnetOffset, configSensorDirection, configSensorDirection, configSensorInitializationStrategy, configSensorInitializationStrategy, configSetCustomParam, configSetCustomParam, configSetParameter, configSetParameter, configVelocityMeasurementPeriod, configVelocityMeasurementPeriod, configVelocityMeasurementWindow, configVelocityMeasurementWindow, DestroyObject, getAbsolutePosition, getAllConfigs, getAllConfigs, getBusVoltage, getDeviceID, getFaults, getFirmwareVersion, getLastError, getLastTimestamp, getLastUnitString, getMagnetFieldStrength, getPosition, getSimCollection, getStatusFramePeriod, getStatusFramePeriod, getStickyFaults, getVelocity, hasResetOccurred, setPosition, setPosition, setPositionToAbsolute, setPositionToAbsolute, setStatusFramePeriod, setStatusFramePeriod
-
Constructor Details
-
WPI_CANCoder
Constructor for CANCoder- Parameters:
deviceNumber
- device ID of CANCodercanbus
- Name of the CANbus; can be a CANivore device name or serial number. Pass in nothing or "rio" to use the roboRIO.
-
WPI_CANCoder
Constructor for CANCoder- Parameters:
deviceNumber
- device ID of CANCoder
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
-
initSendable
- Specified by:
initSendable
in interfaceSendable
-