Package com.revrobotics.jni
Class DetachedEncoderJNI
java.lang.Object
com.revrobotics.jni.DetachedEncoderJNI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclearFaults(long handle) static voidclose(long handle) static intstatic longcreate(int id, int model) static voiddestroy(long handle) static floatgetAngleConversionFactor(long handle) static intgetAverageDepth(long handle) static intgetDutyCycleAverageDepth(long handle) static floatgetDutyCycleOffset(long handle) static doublegetEncoderAngle(long handle) static intgetEncoderModel(long handle) static doublegetEncoderPosition(long handle) static doublegetEncoderRawAngle(long handle) static doublegetEncoderVelocity(long handle) static intgetFaultsBitfield(long handle) getFirmwareVersion(long handle) static intgetParameterType(int index) static floatgetPositionConversionFactor(long handle) getStatus0(long handle) getStatus1(long handle) getStatus2(long handle) getStatus3(long handle) getStatus4(long handle) static intgetStickyFaultsBitfield(long handle) static floatgetVelocityConversionFactor(long handle) static booleanisDutyCycleZeroCentered(long handle) static booleanisInverted(long handle) static intregisterId(int id) static intsetEncoderPosition(long handle, double position)
-
Constructor Details
-
DetachedEncoderJNI
public DetachedEncoderJNI()
-
-
Method Details
-
create
public static long create(int id, int model) -
registerId
public static int registerId(int id) -
clearFaults
public static void clearFaults(long handle) -
getEncoderModel
public static int getEncoderModel(long handle) -
getEncoderPosition
public static double getEncoderPosition(long handle) -
getEncoderVelocity
public static double getEncoderVelocity(long handle) -
getEncoderAngle
public static double getEncoderAngle(long handle) -
getEncoderRawAngle
public static double getEncoderRawAngle(long handle) -
setEncoderPosition
public static int setEncoderPosition(long handle, double position) -
getFaultsBitfield
public static int getFaultsBitfield(long handle) -
getStickyFaultsBitfield
public static int getStickyFaultsBitfield(long handle) -
getFirmwareVersion
-
getParameterType
public static int getParameterType(int index) -
configure
-
close
public static void close(long handle) -
destroy
public static void destroy(long handle) -
isInverted
public static boolean isInverted(long handle) -
getAverageDepth
public static int getAverageDepth(long handle) -
getPositionConversionFactor
public static float getPositionConversionFactor(long handle) -
getVelocityConversionFactor
public static float getVelocityConversionFactor(long handle) -
getAngleConversionFactor
public static float getAngleConversionFactor(long handle) -
isDutyCycleZeroCentered
public static boolean isDutyCycleZeroCentered(long handle) -
getDutyCycleAverageDepth
public static int getDutyCycleAverageDepth(long handle) -
getDutyCycleOffset
public static float getDutyCycleOffset(long handle) -
getStatus0
-
getStatus1
-
getStatus2
-
getStatus3
-
getStatus4
-