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:
edu.wpi.first.util.sendable.Sendable,AutoCloseable
public class WPI_CANCoder
extends CANCoder
implements edu.wpi.first.util.sendable.Sendable, AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionWPI_CANCoder(int deviceNumber) Constructor for CANCoderWPI_CANCoder(int deviceNumber, String canbus) Constructor for CANCoder -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidinitSendable(edu.wpi.first.util.sendable.SendableBuilder builder) Initializes thisSendableobject.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:
closein interfaceAutoCloseable
-
initSendable
Description copied from interface:edu.wpi.first.util.sendable.SendableInitializes thisSendableobject.- Specified by:
initSendablein interfaceedu.wpi.first.util.sendable.Sendable- Parameters:
builder- sendable builder
-