CTRE_Phoenix 5.20.2
com.ctre.phoenix.sensors.CANCoderJNI Class Reference

Inherits com.ctre.phoenix.CTREJNIWrapper.

Static Public Member Functions

static native long Create (int deviceNumber, String canbus)
 
static native int Destroy (long handle)
 
static native int GetLastError (long handle)
 
static native String GetLastUnitString (long handle)
 
static native double GetLastTimestamp (long handle)
 
static native double GetBusVoltage (long handle)
 
static native int GetMagnetFieldStrength (long handle)
 
static native double GetPosition (long handle)
 
static native int SetPosition (long handle, double pos, int timeoutMs)
 
static native int SetPositionToAbsolute (long handle, int timeoutMs)
 
static native int ConfigSensorDirection (long handle, int bDirection, int timeoutMs)
 
static native double GetVelocity (long handle)
 
static native double GetAbsolutePosition (long handle)
 
static native int ConfigVelocityMeasurementPeriod (long handle, int period, int timeoutMs)
 
static native int ConfigVelocityMeasurementWindow (long handle, int window, int timeoutMs)
 
static native int ConfigAbsoluteSensorRange (long handle, int absoluteSensorRante, int timeoutMs)
 
static native int ConfigMagnetOffset (long handle, double offsetDegrees, int timeoutMs)
 
static native int ConfigSensorInitializationStrategy (long handle, int initStrategy, int timeoutMs)
 
static native int ConfigFeedbackCoefficient (long handle, double sensorCoefficient, String unitString, int sensorTimeBase, int timeoutMs)
 
static native int ConfigSetParameter (long handle, int param, double value, int subValue, int ordinal, int timeoutMs)
 
static native double ConfigGetParameter (long handle, int param, int ordinal, int timeoutMs)
 
static native int ConfigSetCustomParam (long handle, int newValue, int paramIndex, int timeoutMs)
 
static native int ConfigGetCustomParam (long handle, int paramIndex, int timoutMs)
 
static native int ConfigFactoryDefault (long handle, int timeoutMs)
 
static native int GetFaults (long handle)
 
static native int GetStickyFaults (long handle)
 
static native int ClearStickyFaults (long handle, int timeoutMs)
 
static native int GetFirmwareVersion (long handle)
 
static native boolean HasResetOccurred (long handle)
 
static native int SetStatusFramePeriod (long handle, int statusFrame, int periodMs, int timeoutMs)
 
static native int GetStatusFramePeriod (long handle, int frame, int timeoutMs)
 
static native int ConfigGetVelocityMeasurementPeriod (long handle, int timeoutMs)
 
static native int ConfigGetVelocityMeasurementWindow (long handle, int timeoutMs)
 
static native int ConfigGetAbsoluteSensorRange (long handle, int timeoutMs)
 
static native double ConfigGetMagnetOffset (long handle, int timeoutMs)
 
static native int ConfigGetSensorDirection (long handle, int timeoutMs)
 
static native int ConfigGetSensorInitializationStrategy (long handle, int timeoutMs)
 
static native double ConfigGetFeedbackCoefficient (long handle, int timeoutMs)
 
static native String ConfigGetFeedbackUnitString (long handle, int timeoutMs)
 
static native int ConfigGetFeedbackTimeBase (long handle, int timeoutMs)
 

The documentation for this class was generated from the following file: