Package frc.team_8840_lib.IO.devices
Class IOCANCoder
java.lang.Object
frc.team_8840_lib.utils.IO.IOLayer
frc.team_8840_lib.IO.devices.IOCANCoder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigAllSettings(com.ctre.phoenix.sensors.CANCoderConfiguration config) Configures all settings of the CANCodervoiddoubleReturns in degrees the position of the encodervoidsetCache(double value) Sets the cahced position of the encoder
-
Constructor Details
-
IOCANCoder
-
-
Method Details
-
getAbsolutePosition
public double getAbsolutePosition()Returns in degrees the position of the encoder- Returns:
- The position of the encoder in degrees
-
setCache
public void setCache(double value) Sets the cahced position of the encoder- Parameters:
value- The degree amount to set the encoder to
-
configAllSettings
public void configAllSettings(com.ctre.phoenix.sensors.CANCoderConfiguration config) Configures all settings of the CANCoder- Parameters:
config- The configuration to set
-
configFactoryDefault
public void configFactoryDefault() -
getBaseName
- Overrides:
getBaseNamein classIOLayer
-