mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01:42 +00:00
Merge changes I55ce71c6,I803680c1
* changes: Rewrite CANTalon JNI layer. Last feature addition for CANTalon java/C++ user-facing API.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,745 +0,0 @@
|
||||
/*
|
||||
* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org). Version
|
||||
* 2.0.11
|
||||
*$
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
* -----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
package edu.wpi.first.wpilibj.hal;
|
||||
|
||||
public class CanTalonSRX extends CtreCanNode {
|
||||
private long swigCPtr;
|
||||
|
||||
protected CanTalonSRX(long cPtr, boolean cMemoryOwn) {
|
||||
super(CanTalonJNI.CanTalonSRX_SWIGUpcast(cPtr), cMemoryOwn);
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(CanTalonSRX obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if (swigCPtr != 0) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
CanTalonJNI.delete_CanTalonSRX(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
}
|
||||
super.delete();
|
||||
}
|
||||
|
||||
public CanTalonSRX(int deviceNumber, int controlPeriodMs) {
|
||||
this(CanTalonJNI.new_CanTalonSRX__SWIG_0(deviceNumber, controlPeriodMs), true);
|
||||
}
|
||||
|
||||
public CanTalonSRX(int deviceNumber) {
|
||||
this(CanTalonJNI.new_CanTalonSRX__SWIG_1(deviceNumber), true);
|
||||
}
|
||||
|
||||
public CanTalonSRX() {
|
||||
this(CanTalonJNI.new_CanTalonSRX__SWIG_2(), true);
|
||||
}
|
||||
|
||||
public void Set(double value) {
|
||||
CanTalonJNI.CanTalonSRX_Set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code SetParam(CanTalonSRX.param_t paramEnum, double value) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_SetParam(swigCPtr, this,
|
||||
paramEnum.swigValue(), value), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code RequestParam(CanTalonSRX.param_t paramEnum) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_RequestParam(swigCPtr, this,
|
||||
paramEnum.swigValue()), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetParamResponse(CanTalonSRX.param_t paramEnum, SWIGTYPE_p_double value) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetParamResponse(swigCPtr, this,
|
||||
paramEnum.swigValue(), SWIGTYPE_p_double.getCPtr(value)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetParamResponseInt32(CanTalonSRX.param_t paramEnum,
|
||||
SWIGTYPE_p_int value) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetParamResponseInt32(swigCPtr, this,
|
||||
paramEnum.swigValue(), SWIGTYPE_p_int.getCPtr(value)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code SetPgain(long slotIdx, double gain) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_SetPgain(swigCPtr, this, slotIdx, gain),
|
||||
true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code SetIgain(long slotIdx, double gain) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_SetIgain(swigCPtr, this, slotIdx, gain),
|
||||
true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code SetDgain(long slotIdx, double gain) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_SetDgain(swigCPtr, this, slotIdx, gain),
|
||||
true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code SetFgain(long slotIdx, double gain) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_SetFgain(swigCPtr, this, slotIdx, gain),
|
||||
true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code SetIzone(long slotIdx, int zone) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_SetIzone(swigCPtr, this, slotIdx, zone),
|
||||
true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code SetCloseLoopRampRate(long slotIdx, int closeLoopRampRate) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_SetCloseLoopRampRate(swigCPtr, this,
|
||||
slotIdx, closeLoopRampRate), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code SetVoltageCompensationRate(double vpers) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_SetVoltageCompensationRate(swigCPtr, this,vpers), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code SetSensorPosition(int pos) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_SetSensorPosition(swigCPtr, this, pos),true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code SetForwardSoftLimit(int forwardLimit) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_SetForwardSoftLimit(swigCPtr, this,
|
||||
forwardLimit), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code SetReverseSoftLimit(int reverseLimit) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_SetReverseSoftLimit(swigCPtr, this,
|
||||
reverseLimit), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code SetForwardSoftEnable(int enable) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_SetForwardSoftEnable(swigCPtr, this,
|
||||
enable), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code SetReverseSoftEnable(int enable) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_SetReverseSoftEnable(swigCPtr, this,
|
||||
enable), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetPgain(long slotIdx, SWIGTYPE_p_double gain) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetPgain(swigCPtr, this, slotIdx,
|
||||
SWIGTYPE_p_double.getCPtr(gain)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetIgain(long slotIdx, SWIGTYPE_p_double gain) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetIgain(swigCPtr, this, slotIdx,
|
||||
SWIGTYPE_p_double.getCPtr(gain)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetDgain(long slotIdx, SWIGTYPE_p_double gain) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetDgain(swigCPtr, this, slotIdx,
|
||||
SWIGTYPE_p_double.getCPtr(gain)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetFgain(long slotIdx, SWIGTYPE_p_double gain) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetFgain(swigCPtr, this, slotIdx,
|
||||
SWIGTYPE_p_double.getCPtr(gain)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetIzone(long slotIdx, SWIGTYPE_p_int zone) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetIzone(swigCPtr, this, slotIdx,
|
||||
SWIGTYPE_p_int.getCPtr(zone)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetCloseLoopRampRate(long slotIdx, SWIGTYPE_p_int closeLoopRampRate) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetCloseLoopRampRate(swigCPtr, this,
|
||||
slotIdx, SWIGTYPE_p_int.getCPtr(closeLoopRampRate)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetVoltageCompensationRate(SWIGTYPE_p_double vpers) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetVoltageCompensationRate(swigCPtr, this,
|
||||
SWIGTYPE_p_double.getCPtr(vpers)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetForwardSoftLimit(SWIGTYPE_p_int forwardLimit) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetForwardSoftLimit(swigCPtr, this,
|
||||
SWIGTYPE_p_int.getCPtr(forwardLimit)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetReverseSoftLimit(SWIGTYPE_p_int reverseLimit) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetReverseSoftLimit(swigCPtr, this,
|
||||
SWIGTYPE_p_int.getCPtr(reverseLimit)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetForwardSoftEnable(SWIGTYPE_p_int enable) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetForwardSoftEnable(swigCPtr, this,
|
||||
SWIGTYPE_p_int.getCPtr(enable)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetReverseSoftEnable(SWIGTYPE_p_int enable) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetReverseSoftEnable(swigCPtr, this,
|
||||
SWIGTYPE_p_int.getCPtr(enable)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code SetStatusFrameRate(long frameEnum, long periodMs) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_SetStatusFrameRate(swigCPtr, this,
|
||||
frameEnum, periodMs), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code ClearStickyFaults() {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_ClearStickyFaults(swigCPtr, this), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetFault_OverTemp(SWIGTYPE_p_int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetFault_OverTemp(swigCPtr, this,
|
||||
SWIGTYPE_p_int.getCPtr(param)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetFault_UnderVoltage(SWIGTYPE_p_int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetFault_UnderVoltage(swigCPtr, this,
|
||||
SWIGTYPE_p_int.getCPtr(param)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetFault_ForLim(SWIGTYPE_p_int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetFault_ForLim(swigCPtr, this,
|
||||
SWIGTYPE_p_int.getCPtr(param)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetFault_RevLim(SWIGTYPE_p_int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetFault_RevLim(swigCPtr, this,
|
||||
SWIGTYPE_p_int.getCPtr(param)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetFault_HardwareFailure(SWIGTYPE_p_int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetFault_HardwareFailure(swigCPtr, this,
|
||||
SWIGTYPE_p_int.getCPtr(param)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetFault_ForSoftLim(SWIGTYPE_p_int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetFault_ForSoftLim(swigCPtr, this,
|
||||
SWIGTYPE_p_int.getCPtr(param)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetFault_RevSoftLim(SWIGTYPE_p_int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetFault_RevSoftLim(swigCPtr, this,
|
||||
SWIGTYPE_p_int.getCPtr(param)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetStckyFault_OverTemp(SWIGTYPE_p_int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetStckyFault_OverTemp(swigCPtr, this,
|
||||
SWIGTYPE_p_int.getCPtr(param)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetStckyFault_UnderVoltage(SWIGTYPE_p_int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetStckyFault_UnderVoltage(swigCPtr,
|
||||
this, SWIGTYPE_p_int.getCPtr(param)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetStckyFault_ForLim(SWIGTYPE_p_int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetStckyFault_ForLim(swigCPtr, this,
|
||||
SWIGTYPE_p_int.getCPtr(param)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetStckyFault_RevLim(SWIGTYPE_p_int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetStckyFault_RevLim(swigCPtr, this,
|
||||
SWIGTYPE_p_int.getCPtr(param)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetStckyFault_ForSoftLim(SWIGTYPE_p_int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetStckyFault_ForSoftLim(swigCPtr, this,
|
||||
SWIGTYPE_p_int.getCPtr(param)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetStckyFault_RevSoftLim(SWIGTYPE_p_int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetStckyFault_RevSoftLim(swigCPtr, this,
|
||||
SWIGTYPE_p_int.getCPtr(param)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetAppliedThrottle(SWIGTYPE_p_int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetAppliedThrottle(swigCPtr, this,
|
||||
SWIGTYPE_p_int.getCPtr(param)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetCloseLoopErr(SWIGTYPE_p_int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetCloseLoopErr(swigCPtr, this,
|
||||
SWIGTYPE_p_int.getCPtr(param)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetFeedbackDeviceSelect(SWIGTYPE_p_int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetFeedbackDeviceSelect(swigCPtr, this,
|
||||
SWIGTYPE_p_int.getCPtr(param)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetModeSelect(SWIGTYPE_p_int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetModeSelect(swigCPtr, this,
|
||||
SWIGTYPE_p_int.getCPtr(param)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetLimitSwitchEn(SWIGTYPE_p_int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetLimitSwitchEn(swigCPtr, this,
|
||||
SWIGTYPE_p_int.getCPtr(param)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetLimitSwitchClosedFor(SWIGTYPE_p_int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetLimitSwitchClosedFor(swigCPtr, this,
|
||||
SWIGTYPE_p_int.getCPtr(param)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetLimitSwitchClosedRev(SWIGTYPE_p_int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetLimitSwitchClosedRev(swigCPtr, this,
|
||||
SWIGTYPE_p_int.getCPtr(param)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetSensorPosition(SWIGTYPE_p_int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetSensorPosition(swigCPtr, this,
|
||||
SWIGTYPE_p_int.getCPtr(param)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetSensorVelocity(SWIGTYPE_p_int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetSensorVelocity(swigCPtr, this,
|
||||
SWIGTYPE_p_int.getCPtr(param)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetCurrent(SWIGTYPE_p_double param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetCurrent(swigCPtr, this,
|
||||
SWIGTYPE_p_double.getCPtr(param)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetBrakeIsEnabled(SWIGTYPE_p_int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetBrakeIsEnabled(swigCPtr, this,
|
||||
SWIGTYPE_p_int.getCPtr(param)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetEncPosition(SWIGTYPE_p_int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetEncPosition(swigCPtr, this,
|
||||
SWIGTYPE_p_int.getCPtr(param)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetEncVel(SWIGTYPE_p_int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetEncVel(swigCPtr, this,
|
||||
SWIGTYPE_p_int.getCPtr(param)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetEncIndexRiseEvents(SWIGTYPE_p_int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetEncIndexRiseEvents(swigCPtr, this,
|
||||
SWIGTYPE_p_int.getCPtr(param)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetQuadApin(SWIGTYPE_p_int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetQuadApin(swigCPtr, this,
|
||||
SWIGTYPE_p_int.getCPtr(param)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetQuadBpin(SWIGTYPE_p_int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetQuadBpin(swigCPtr, this,
|
||||
SWIGTYPE_p_int.getCPtr(param)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetQuadIdxpin(SWIGTYPE_p_int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetQuadIdxpin(swigCPtr, this,
|
||||
SWIGTYPE_p_int.getCPtr(param)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetAnalogInWithOv(SWIGTYPE_p_int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetAnalogInWithOv(swigCPtr, this,
|
||||
SWIGTYPE_p_int.getCPtr(param)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetAnalogInVel(SWIGTYPE_p_int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetAnalogInVel(swigCPtr, this,
|
||||
SWIGTYPE_p_int.getCPtr(param)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetTemp(SWIGTYPE_p_double param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetTemp(swigCPtr, this,
|
||||
SWIGTYPE_p_double.getCPtr(param)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetBatteryV(SWIGTYPE_p_double param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetBatteryV(swigCPtr, this,
|
||||
SWIGTYPE_p_double.getCPtr(param)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetResetCount(SWIGTYPE_p_int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetResetCount(swigCPtr, this,
|
||||
SWIGTYPE_p_int.getCPtr(param)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetResetFlags(SWIGTYPE_p_int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetResetFlags(swigCPtr, this,
|
||||
SWIGTYPE_p_int.getCPtr(param)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetFirmVers(SWIGTYPE_p_int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetFirmVers(swigCPtr, this,
|
||||
SWIGTYPE_p_int.getCPtr(param)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code SetDemand(int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_SetDemand(swigCPtr, this, param), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code SetOverrideLimitSwitchEn(int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_SetOverrideLimitSwitchEn(swigCPtr, this,
|
||||
param), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code SetFeedbackDeviceSelect(int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_SetFeedbackDeviceSelect(swigCPtr, this,
|
||||
param), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code SetRevMotDuringCloseLoopEn(int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_SetRevMotDuringCloseLoopEn(swigCPtr,
|
||||
this, param), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code SetOverrideBrakeType(int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_SetOverrideBrakeType(swigCPtr, this,
|
||||
param), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code SetModeSelect(int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_SetModeSelect(swigCPtr, this, param),
|
||||
true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code SetProfileSlotSelect(int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_SetProfileSlotSelect(swigCPtr, this,
|
||||
param), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code SetRampThrottle(int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_SetRampThrottle(swigCPtr, this, param),
|
||||
true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code SetRevFeedbackSensor(int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_SetRevFeedbackSensor(swigCPtr, this,
|
||||
param), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code GetPulseWidthPosition(SWIGTYPE_p_int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetPulseWidthPosition(swigCPtr, this,
|
||||
SWIGTYPE_p_int.getCPtr(param)), true);
|
||||
}
|
||||
public SWIGTYPE_p_CTR_Code GetPulseWidthVelocity(SWIGTYPE_p_int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetPulseWidthVelocity(swigCPtr, this,
|
||||
SWIGTYPE_p_int.getCPtr(param)), true);
|
||||
}
|
||||
public SWIGTYPE_p_CTR_Code GetPulseWidthRiseToFallUs(SWIGTYPE_p_int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetPulseWidthRiseToFallUs(swigCPtr, this,
|
||||
SWIGTYPE_p_int.getCPtr(param)), true);
|
||||
}
|
||||
public SWIGTYPE_p_CTR_Code GetPulseWidthRiseToRiseUs(SWIGTYPE_p_int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_GetPulseWidthRiseToRiseUs(swigCPtr, this,
|
||||
SWIGTYPE_p_int.getCPtr(param)), true);
|
||||
}
|
||||
public SWIGTYPE_p_CTR_Code IsPulseWidthSensorPresent(SWIGTYPE_p_int param) {
|
||||
return new SWIGTYPE_p_CTR_Code(CanTalonJNI.CanTalonSRX_IsPulseWidthSensorPresent(swigCPtr, this,
|
||||
SWIGTYPE_p_int.getCPtr(param)), true);
|
||||
}
|
||||
|
||||
public final static int kDefaultControlPeriodMs = CanTalonJNI
|
||||
.CanTalonSRX_kDefaultControlPeriodMs_get();
|
||||
public final static int kMode_DutyCycle = CanTalonJNI.CanTalonSRX_kMode_DutyCycle_get();
|
||||
public final static int kMode_PositionCloseLoop = CanTalonJNI
|
||||
.CanTalonSRX_kMode_PositionCloseLoop_get();
|
||||
public final static int kMode_VelocityCloseLoop = CanTalonJNI
|
||||
.CanTalonSRX_kMode_VelocityCloseLoop_get();
|
||||
public final static int kMode_CurrentCloseLoop = CanTalonJNI
|
||||
.CanTalonSRX_kMode_CurrentCloseLoop_get();
|
||||
public final static int kMode_VoltCompen = CanTalonJNI.CanTalonSRX_kMode_VoltCompen_get();
|
||||
public final static int kMode_SlaveFollower = CanTalonJNI.CanTalonSRX_kMode_SlaveFollower_get();
|
||||
public final static int kMode_NoDrive = CanTalonJNI.CanTalonSRX_kMode_NoDrive_get();
|
||||
public final static int kLimitSwitchOverride_UseDefaultsFromFlash = CanTalonJNI
|
||||
.CanTalonSRX_kLimitSwitchOverride_UseDefaultsFromFlash_get();
|
||||
public final static int kLimitSwitchOverride_DisableFwd_DisableRev = CanTalonJNI
|
||||
.CanTalonSRX_kLimitSwitchOverride_DisableFwd_DisableRev_get();
|
||||
public final static int kLimitSwitchOverride_DisableFwd_EnableRev = CanTalonJNI
|
||||
.CanTalonSRX_kLimitSwitchOverride_DisableFwd_EnableRev_get();
|
||||
public final static int kLimitSwitchOverride_EnableFwd_DisableRev = CanTalonJNI
|
||||
.CanTalonSRX_kLimitSwitchOverride_EnableFwd_DisableRev_get();
|
||||
public final static int kLimitSwitchOverride_EnableFwd_EnableRev = CanTalonJNI
|
||||
.CanTalonSRX_kLimitSwitchOverride_EnableFwd_EnableRev_get();
|
||||
public final static int kBrakeOverride_UseDefaultsFromFlash = CanTalonJNI
|
||||
.CanTalonSRX_kBrakeOverride_UseDefaultsFromFlash_get();
|
||||
public final static int kBrakeOverride_OverrideCoast = CanTalonJNI
|
||||
.CanTalonSRX_kBrakeOverride_OverrideCoast_get();
|
||||
public final static int kBrakeOverride_OverrideBrake = CanTalonJNI
|
||||
.CanTalonSRX_kBrakeOverride_OverrideBrake_get();
|
||||
public final static int kFeedbackDev_DigitalQuadEnc = CanTalonJNI
|
||||
.CanTalonSRX_kFeedbackDev_DigitalQuadEnc_get();
|
||||
public final static int kFeedbackDev_AnalogPot = CanTalonJNI
|
||||
.CanTalonSRX_kFeedbackDev_AnalogPot_get();
|
||||
public final static int kFeedbackDev_AnalogEncoder = CanTalonJNI
|
||||
.CanTalonSRX_kFeedbackDev_AnalogEncoder_get();
|
||||
public final static int kFeedbackDev_CountEveryRisingEdge = CanTalonJNI
|
||||
.CanTalonSRX_kFeedbackDev_CountEveryRisingEdge_get();
|
||||
public final static int kFeedbackDev_CountEveryFallingEdge = CanTalonJNI
|
||||
.CanTalonSRX_kFeedbackDev_CountEveryFallingEdge_get();
|
||||
public final static int kFeedbackDev_PosIsPulseWidth = CanTalonJNI
|
||||
.CanTalonSRX_kFeedbackDev_PosIsPulseWidth_get();
|
||||
public final static int kProfileSlotSelect_Slot0 = CanTalonJNI
|
||||
.CanTalonSRX_kProfileSlotSelect_Slot0_get();
|
||||
public final static int kProfileSlotSelect_Slot1 = CanTalonJNI
|
||||
.CanTalonSRX_kProfileSlotSelect_Slot1_get();
|
||||
public final static int kStatusFrame_General = CanTalonJNI.CanTalonSRX_kStatusFrame_General_get();
|
||||
public final static int kStatusFrame_Feedback = CanTalonJNI
|
||||
.CanTalonSRX_kStatusFrame_Feedback_get();
|
||||
public final static int kStatusFrame_Encoder = CanTalonJNI.CanTalonSRX_kStatusFrame_Encoder_get();
|
||||
public final static int kStatusFrame_AnalogTempVbat = CanTalonJNI
|
||||
.CanTalonSRX_kStatusFrame_AnalogTempVbat_get();
|
||||
public final static int kStatusFrame_PulseWidthMeas = CanTalonJNI
|
||||
.CanTalonSRX_kStatusFrame_PulseWidthMeas_get();
|
||||
|
||||
public final static class param_t {
|
||||
public final static CanTalonSRX.param_t eProfileParamSlot0_P = new CanTalonSRX.param_t(
|
||||
"eProfileParamSlot0_P", CanTalonJNI.CanTalonSRX_eProfileParamSlot0_P_get());
|
||||
public final static CanTalonSRX.param_t eProfileParamSlot0_I = new CanTalonSRX.param_t(
|
||||
"eProfileParamSlot0_I", CanTalonJNI.CanTalonSRX_eProfileParamSlot0_I_get());
|
||||
public final static CanTalonSRX.param_t eProfileParamSlot0_D = new CanTalonSRX.param_t(
|
||||
"eProfileParamSlot0_D", CanTalonJNI.CanTalonSRX_eProfileParamSlot0_D_get());
|
||||
public final static CanTalonSRX.param_t eProfileParamSlot0_F = new CanTalonSRX.param_t(
|
||||
"eProfileParamSlot0_F", CanTalonJNI.CanTalonSRX_eProfileParamSlot0_F_get());
|
||||
public final static CanTalonSRX.param_t eProfileParamSlot0_IZone = new CanTalonSRX.param_t(
|
||||
"eProfileParamSlot0_IZone", CanTalonJNI.CanTalonSRX_eProfileParamSlot0_IZone_get());
|
||||
public final static CanTalonSRX.param_t eProfileParamSlot0_CloseLoopRampRate =
|
||||
new CanTalonSRX.param_t("eProfileParamSlot0_CloseLoopRampRate",
|
||||
CanTalonJNI.CanTalonSRX_eProfileParamSlot0_CloseLoopRampRate_get());
|
||||
public final static CanTalonSRX.param_t eProfileParamSlot1_P = new CanTalonSRX.param_t(
|
||||
"eProfileParamSlot1_P", CanTalonJNI.CanTalonSRX_eProfileParamSlot1_P_get());
|
||||
public final static CanTalonSRX.param_t eProfileParamSlot1_I = new CanTalonSRX.param_t(
|
||||
"eProfileParamSlot1_I", CanTalonJNI.CanTalonSRX_eProfileParamSlot1_I_get());
|
||||
public final static CanTalonSRX.param_t eProfileParamSlot1_D = new CanTalonSRX.param_t(
|
||||
"eProfileParamSlot1_D", CanTalonJNI.CanTalonSRX_eProfileParamSlot1_D_get());
|
||||
public final static CanTalonSRX.param_t eProfileParamSlot1_F = new CanTalonSRX.param_t(
|
||||
"eProfileParamSlot1_F", CanTalonJNI.CanTalonSRX_eProfileParamSlot1_F_get());
|
||||
public final static CanTalonSRX.param_t eProfileParamSlot1_IZone = new CanTalonSRX.param_t(
|
||||
"eProfileParamSlot1_IZone", CanTalonJNI.CanTalonSRX_eProfileParamSlot1_IZone_get());
|
||||
public final static CanTalonSRX.param_t eProfileParamSlot1_CloseLoopRampRate =
|
||||
new CanTalonSRX.param_t("eProfileParamSlot1_CloseLoopRampRate",
|
||||
CanTalonJNI.CanTalonSRX_eProfileParamSlot1_CloseLoopRampRate_get());
|
||||
public final static CanTalonSRX.param_t eProfileParamSoftLimitForThreshold =
|
||||
new CanTalonSRX.param_t("eProfileParamSoftLimitForThreshold",
|
||||
CanTalonJNI.CanTalonSRX_eProfileParamSoftLimitForThreshold_get());
|
||||
public final static CanTalonSRX.param_t eProfileParamSoftLimitRevThreshold =
|
||||
new CanTalonSRX.param_t("eProfileParamSoftLimitRevThreshold",
|
||||
CanTalonJNI.CanTalonSRX_eProfileParamSoftLimitRevThreshold_get());
|
||||
public final static CanTalonSRX.param_t eProfileParamSoftLimitForEnable =
|
||||
new CanTalonSRX.param_t("eProfileParamSoftLimitForEnable",
|
||||
CanTalonJNI.CanTalonSRX_eProfileParamSoftLimitForEnable_get());
|
||||
public final static CanTalonSRX.param_t eProfileParamSoftLimitRevEnable =
|
||||
new CanTalonSRX.param_t("eProfileParamSoftLimitRevEnable",
|
||||
CanTalonJNI.CanTalonSRX_eProfileParamSoftLimitRevEnable_get());
|
||||
public final static CanTalonSRX.param_t eOnBoot_BrakeMode = new CanTalonSRX.param_t(
|
||||
"eOnBoot_BrakeMode", CanTalonJNI.CanTalonSRX_eOnBoot_BrakeMode_get());
|
||||
public final static CanTalonSRX.param_t eOnBoot_LimitSwitch_Forward_NormallyClosed =
|
||||
new CanTalonSRX.param_t("eOnBoot_LimitSwitch_Forward_NormallyClosed",
|
||||
CanTalonJNI.CanTalonSRX_eOnBoot_LimitSwitch_Forward_NormallyClosed_get());
|
||||
public final static CanTalonSRX.param_t eOnBoot_LimitSwitch_Reverse_NormallyClosed =
|
||||
new CanTalonSRX.param_t("eOnBoot_LimitSwitch_Reverse_NormallyClosed",
|
||||
CanTalonJNI.CanTalonSRX_eOnBoot_LimitSwitch_Reverse_NormallyClosed_get());
|
||||
public final static CanTalonSRX.param_t eOnBoot_LimitSwitch_Forward_Disable =
|
||||
new CanTalonSRX.param_t("eOnBoot_LimitSwitch_Forward_Disable",
|
||||
CanTalonJNI.CanTalonSRX_eOnBoot_LimitSwitch_Forward_Disable_get());
|
||||
public final static CanTalonSRX.param_t eOnBoot_LimitSwitch_Reverse_Disable =
|
||||
new CanTalonSRX.param_t("eOnBoot_LimitSwitch_Reverse_Disable",
|
||||
CanTalonJNI.CanTalonSRX_eOnBoot_LimitSwitch_Reverse_Disable_get());
|
||||
public final static CanTalonSRX.param_t eFault_OverTemp = new CanTalonSRX.param_t(
|
||||
"eFault_OverTemp", CanTalonJNI.CanTalonSRX_eFault_OverTemp_get());
|
||||
public final static CanTalonSRX.param_t eFault_UnderVoltage = new CanTalonSRX.param_t(
|
||||
"eFault_UnderVoltage", CanTalonJNI.CanTalonSRX_eFault_UnderVoltage_get());
|
||||
public final static CanTalonSRX.param_t eFault_ForLim = new CanTalonSRX.param_t(
|
||||
"eFault_ForLim", CanTalonJNI.CanTalonSRX_eFault_ForLim_get());
|
||||
public final static CanTalonSRX.param_t eFault_RevLim = new CanTalonSRX.param_t(
|
||||
"eFault_RevLim", CanTalonJNI.CanTalonSRX_eFault_RevLim_get());
|
||||
public final static CanTalonSRX.param_t eFault_HardwareFailure = new CanTalonSRX.param_t(
|
||||
"eFault_HardwareFailure", CanTalonJNI.CanTalonSRX_eFault_HardwareFailure_get());
|
||||
public final static CanTalonSRX.param_t eFault_ForSoftLim = new CanTalonSRX.param_t(
|
||||
"eFault_ForSoftLim", CanTalonJNI.CanTalonSRX_eFault_ForSoftLim_get());
|
||||
public final static CanTalonSRX.param_t eFault_RevSoftLim = new CanTalonSRX.param_t(
|
||||
"eFault_RevSoftLim", CanTalonJNI.CanTalonSRX_eFault_RevSoftLim_get());
|
||||
public final static CanTalonSRX.param_t eStckyFault_OverTemp = new CanTalonSRX.param_t(
|
||||
"eStckyFault_OverTemp", CanTalonJNI.CanTalonSRX_eStckyFault_OverTemp_get());
|
||||
public final static CanTalonSRX.param_t eStckyFault_UnderVoltage = new CanTalonSRX.param_t(
|
||||
"eStckyFault_UnderVoltage", CanTalonJNI.CanTalonSRX_eStckyFault_UnderVoltage_get());
|
||||
public final static CanTalonSRX.param_t eStckyFault_ForLim = new CanTalonSRX.param_t(
|
||||
"eStckyFault_ForLim", CanTalonJNI.CanTalonSRX_eStckyFault_ForLim_get());
|
||||
public final static CanTalonSRX.param_t eStckyFault_RevLim = new CanTalonSRX.param_t(
|
||||
"eStckyFault_RevLim", CanTalonJNI.CanTalonSRX_eStckyFault_RevLim_get());
|
||||
public final static CanTalonSRX.param_t eStckyFault_ForSoftLim = new CanTalonSRX.param_t(
|
||||
"eStckyFault_ForSoftLim", CanTalonJNI.CanTalonSRX_eStckyFault_ForSoftLim_get());
|
||||
public final static CanTalonSRX.param_t eStckyFault_RevSoftLim = new CanTalonSRX.param_t(
|
||||
"eStckyFault_RevSoftLim", CanTalonJNI.CanTalonSRX_eStckyFault_RevSoftLim_get());
|
||||
public final static CanTalonSRX.param_t eAppliedThrottle = new CanTalonSRX.param_t(
|
||||
"eAppliedThrottle", CanTalonJNI.CanTalonSRX_eAppliedThrottle_get());
|
||||
public final static CanTalonSRX.param_t eCloseLoopErr = new CanTalonSRX.param_t(
|
||||
"eCloseLoopErr", CanTalonJNI.CanTalonSRX_eCloseLoopErr_get());
|
||||
public final static CanTalonSRX.param_t eFeedbackDeviceSelect = new CanTalonSRX.param_t(
|
||||
"eFeedbackDeviceSelect", CanTalonJNI.CanTalonSRX_eFeedbackDeviceSelect_get());
|
||||
public final static CanTalonSRX.param_t eRevMotDuringCloseLoopEn = new CanTalonSRX.param_t(
|
||||
"eRevMotDuringCloseLoopEn", CanTalonJNI.CanTalonSRX_eRevMotDuringCloseLoopEn_get());
|
||||
public final static CanTalonSRX.param_t eModeSelect = new CanTalonSRX.param_t("eModeSelect",
|
||||
CanTalonJNI.CanTalonSRX_eModeSelect_get());
|
||||
public final static CanTalonSRX.param_t eProfileSlotSelect = new CanTalonSRX.param_t(
|
||||
"eProfileSlotSelect", CanTalonJNI.CanTalonSRX_eProfileSlotSelect_get());
|
||||
public final static CanTalonSRX.param_t eRampThrottle = new CanTalonSRX.param_t(
|
||||
"eRampThrottle", CanTalonJNI.CanTalonSRX_eRampThrottle_get());
|
||||
public final static CanTalonSRX.param_t eRevFeedbackSensor = new CanTalonSRX.param_t(
|
||||
"eRevFeedbackSensor", CanTalonJNI.CanTalonSRX_eRevFeedbackSensor_get());
|
||||
public final static CanTalonSRX.param_t eLimitSwitchEn = new CanTalonSRX.param_t(
|
||||
"eLimitSwitchEn", CanTalonJNI.CanTalonSRX_eLimitSwitchEn_get());
|
||||
public final static CanTalonSRX.param_t eLimitSwitchClosedFor = new CanTalonSRX.param_t(
|
||||
"eLimitSwitchClosedFor", CanTalonJNI.CanTalonSRX_eLimitSwitchClosedFor_get());
|
||||
public final static CanTalonSRX.param_t eLimitSwitchClosedRev = new CanTalonSRX.param_t(
|
||||
"eLimitSwitchClosedRev", CanTalonJNI.CanTalonSRX_eLimitSwitchClosedRev_get());
|
||||
public final static CanTalonSRX.param_t eSensorPosition = new CanTalonSRX.param_t(
|
||||
"eSensorPosition", CanTalonJNI.CanTalonSRX_eSensorPosition_get());
|
||||
public final static CanTalonSRX.param_t eSensorVelocity = new CanTalonSRX.param_t(
|
||||
"eSensorVelocity", CanTalonJNI.CanTalonSRX_eSensorVelocity_get());
|
||||
public final static CanTalonSRX.param_t eCurrent = new CanTalonSRX.param_t("eCurrent",
|
||||
CanTalonJNI.CanTalonSRX_eCurrent_get());
|
||||
public final static CanTalonSRX.param_t eBrakeIsEnabled = new CanTalonSRX.param_t(
|
||||
"eBrakeIsEnabled", CanTalonJNI.CanTalonSRX_eBrakeIsEnabled_get());
|
||||
public final static CanTalonSRX.param_t eEncPosition = new CanTalonSRX.param_t("eEncPosition",
|
||||
CanTalonJNI.CanTalonSRX_eEncPosition_get());
|
||||
public final static CanTalonSRX.param_t eEncVel = new CanTalonSRX.param_t("eEncVel",
|
||||
CanTalonJNI.CanTalonSRX_eEncVel_get());
|
||||
public final static CanTalonSRX.param_t eEncIndexRiseEvents = new CanTalonSRX.param_t(
|
||||
"eEncIndexRiseEvents", CanTalonJNI.CanTalonSRX_eEncIndexRiseEvents_get());
|
||||
public final static CanTalonSRX.param_t eQuadApin = new CanTalonSRX.param_t("eQuadApin",
|
||||
CanTalonJNI.CanTalonSRX_eQuadApin_get());
|
||||
public final static CanTalonSRX.param_t eQuadBpin = new CanTalonSRX.param_t("eQuadBpin",
|
||||
CanTalonJNI.CanTalonSRX_eQuadBpin_get());
|
||||
public final static CanTalonSRX.param_t eQuadIdxpin = new CanTalonSRX.param_t("eQuadIdxpin",
|
||||
CanTalonJNI.CanTalonSRX_eQuadIdxpin_get());
|
||||
public final static CanTalonSRX.param_t eAnalogInWithOv = new CanTalonSRX.param_t(
|
||||
"eAnalogInWithOv", CanTalonJNI.CanTalonSRX_eAnalogInWithOv_get());
|
||||
public final static CanTalonSRX.param_t eAnalogInVel = new CanTalonSRX.param_t("eAnalogInVel",
|
||||
CanTalonJNI.CanTalonSRX_eAnalogInVel_get());
|
||||
public final static CanTalonSRX.param_t eTemp = new CanTalonSRX.param_t("eTemp",
|
||||
CanTalonJNI.CanTalonSRX_eTemp_get());
|
||||
public final static CanTalonSRX.param_t eBatteryV = new CanTalonSRX.param_t("eBatteryV",
|
||||
CanTalonJNI.CanTalonSRX_eBatteryV_get());
|
||||
public final static CanTalonSRX.param_t eResetCount = new CanTalonSRX.param_t("eResetCount",
|
||||
CanTalonJNI.CanTalonSRX_eResetCount_get());
|
||||
public final static CanTalonSRX.param_t eResetFlags = new CanTalonSRX.param_t("eResetFlags",
|
||||
CanTalonJNI.CanTalonSRX_eResetFlags_get());
|
||||
public final static CanTalonSRX.param_t eFirmVers = new CanTalonSRX.param_t("eFirmVers",
|
||||
CanTalonJNI.CanTalonSRX_eFirmVers_get());
|
||||
public final static CanTalonSRX.param_t eSettingsChanged = new CanTalonSRX.param_t(
|
||||
"eSettingsChanged", CanTalonJNI.CanTalonSRX_eSettingsChanged_get());
|
||||
public final static CanTalonSRX.param_t eQuadFilterEn = new CanTalonSRX.param_t(
|
||||
"eQuadFilterEn", CanTalonJNI.CanTalonSRX_eQuadFilterEn_get());
|
||||
public final static CanTalonSRX.param_t ePidIaccum = new CanTalonSRX.param_t("ePidIaccum",
|
||||
CanTalonJNI.CanTalonSRX_ePidIaccum_get());
|
||||
|
||||
public final static CanTalonSRX.param_t eStatus1FrameRate = new CanTalonSRX.param_t("eStatus1FrameRate",
|
||||
CanTalonJNI.CanTalonSRX_eStatus1FrameRate_get());
|
||||
public final static CanTalonSRX.param_t eStatus2FrameRate = new CanTalonSRX.param_t("eStatus2FrameRate",
|
||||
CanTalonJNI.CanTalonSRX_eStatus2FrameRate_get());
|
||||
public final static CanTalonSRX.param_t eStatus3FrameRate = new CanTalonSRX.param_t("eStatus3FrameRate",
|
||||
CanTalonJNI.CanTalonSRX_eStatus3FrameRate_get());
|
||||
public final static CanTalonSRX.param_t eStatus4FrameRate = new CanTalonSRX.param_t("eStatus4FrameRate",
|
||||
CanTalonJNI.CanTalonSRX_eStatus4FrameRate_get());
|
||||
public final static CanTalonSRX.param_t eStatus6FrameRate = new CanTalonSRX.param_t("eStatus6FrameRate",
|
||||
CanTalonJNI.CanTalonSRX_eStatus6FrameRate_get());
|
||||
public final static CanTalonSRX.param_t eStatus7FrameRate = new CanTalonSRX.param_t("eStatus7FrameRate",
|
||||
CanTalonJNI.CanTalonSRX_eStatus7FrameRate_get());
|
||||
public final static CanTalonSRX.param_t eClearPositionOnIdx = new CanTalonSRX.param_t("eClearPositionOnIdx",
|
||||
CanTalonJNI.CanTalonSRX_eClearPositionOnIdx_get());
|
||||
public final static CanTalonSRX.param_t ePeakPosOutput = new CanTalonSRX.param_t("ePeakPosOutput",
|
||||
CanTalonJNI.CanTalonSRX_ePeakPosOutput_get());
|
||||
public final static CanTalonSRX.param_t eNominalPosOutput = new CanTalonSRX.param_t("eNominalPosOutput",
|
||||
CanTalonJNI.CanTalonSRX_eNominalPosOutput_get());
|
||||
public final static CanTalonSRX.param_t ePeakNegOutput = new CanTalonSRX.param_t("ePeakNegOutput",
|
||||
CanTalonJNI.CanTalonSRX_ePeakNegOutput_get());
|
||||
public final static CanTalonSRX.param_t eNominalNegOutput = new CanTalonSRX.param_t("eNominalNegOutput",
|
||||
CanTalonJNI.CanTalonSRX_eNominalNegOutput_get());
|
||||
public final static CanTalonSRX.param_t eQuadIdxPolarity = new CanTalonSRX.param_t("eQuadIdxPolarity",
|
||||
CanTalonJNI.CanTalonSRX_eQuadIdxPolarity_get());
|
||||
public final static CanTalonSRX.param_t eStatus8FrameRate = new CanTalonSRX.param_t("eStatus8FrameRate",
|
||||
CanTalonJNI.CanTalonSRX_eStatus8FrameRate_get());
|
||||
public final static CanTalonSRX.param_t eAllowPosOverflow = new CanTalonSRX.param_t("eAllowPosOverflow",
|
||||
CanTalonJNI.CanTalonSRX_eAllowPosOverflow_get());
|
||||
public final static CanTalonSRX.param_t eProfileParamSlot0_AllowableClosedLoopErr = new CanTalonSRX.param_t("eProfileParamSlot0_AllowableClosedLoopErr",
|
||||
CanTalonJNI.CanTalonSRX_eProfileParamSlot0_AllowableClosedLoopErr_get());
|
||||
public final static CanTalonSRX.param_t eNumberPotTurns = new CanTalonSRX.param_t("eNumberPotTurns",
|
||||
CanTalonJNI.CanTalonSRX_eNumberPotTurns_get());
|
||||
public final static CanTalonSRX.param_t eNumberEncoderCPR = new CanTalonSRX.param_t("eNumberEncoderCPR",
|
||||
CanTalonJNI.CanTalonSRX_eNumberEncoderCPR_get());
|
||||
public final static CanTalonSRX.param_t ePwdPosition = new CanTalonSRX.param_t("ePwdPosition",
|
||||
CanTalonJNI.CanTalonSRX_ePwdPosition_get());
|
||||
public final static CanTalonSRX.param_t eAinPosition = new CanTalonSRX.param_t("eAinPosition",
|
||||
CanTalonJNI.CanTalonSRX_eAinPosition_get());
|
||||
public final static CanTalonSRX.param_t eProfileParamVcompRate = new CanTalonSRX.param_t("eProfileParamVcompRate",
|
||||
CanTalonJNI.CanTalonSRX_eProfileParamVcompRate_get());
|
||||
public final static CanTalonSRX.param_t eProfileParamSlot1_AllowableClosedLoopErr = new CanTalonSRX.param_t("eProfileParamSlot1_AllowableClosedLoopErr",
|
||||
CanTalonJNI.CanTalonSRX_eProfileParamSlot1_AllowableClosedLoopErr_get());
|
||||
|
||||
public final int swigValue() {
|
||||
return swigValue;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return swigName;
|
||||
}
|
||||
|
||||
public static param_t swigToEnum(int swigValue) {
|
||||
if (swigValue < swigValues.length && swigValue >= 0
|
||||
&& swigValues[swigValue].swigValue == swigValue)
|
||||
return swigValues[swigValue];
|
||||
for (int i = 0; i < swigValues.length; i++)
|
||||
if (swigValues[i].swigValue == swigValue)
|
||||
return swigValues[i];
|
||||
throw new IllegalArgumentException("No enum " + param_t.class + " with value " + swigValue);
|
||||
}
|
||||
|
||||
private param_t(String swigName) {
|
||||
this.swigName = swigName;
|
||||
this.swigValue = swigNext++;
|
||||
}
|
||||
|
||||
private param_t(String swigName, int swigValue) {
|
||||
this.swigName = swigName;
|
||||
this.swigValue = swigValue;
|
||||
swigNext = swigValue + 1;
|
||||
}
|
||||
|
||||
private param_t(String swigName, param_t swigEnum) {
|
||||
this.swigName = swigName;
|
||||
this.swigValue = swigEnum.swigValue;
|
||||
swigNext = this.swigValue + 1;
|
||||
}
|
||||
|
||||
private static param_t[] swigValues = {eProfileParamSlot0_P, eProfileParamSlot0_I,
|
||||
eProfileParamSlot0_D, eProfileParamSlot0_F, eProfileParamSlot0_IZone,
|
||||
eProfileParamSlot0_CloseLoopRampRate, eProfileParamSlot1_P, eProfileParamSlot1_I,
|
||||
eProfileParamSlot1_D, eProfileParamSlot1_F, eProfileParamSlot1_IZone,
|
||||
eProfileParamSlot1_CloseLoopRampRate, eProfileParamSoftLimitForThreshold,
|
||||
eProfileParamSoftLimitRevThreshold, eProfileParamSoftLimitForEnable,
|
||||
eProfileParamSoftLimitRevEnable, eOnBoot_BrakeMode,
|
||||
eOnBoot_LimitSwitch_Forward_NormallyClosed, eOnBoot_LimitSwitch_Reverse_NormallyClosed,
|
||||
eOnBoot_LimitSwitch_Forward_Disable, eOnBoot_LimitSwitch_Reverse_Disable, eFault_OverTemp,
|
||||
eFault_UnderVoltage, eFault_ForLim, eFault_RevLim, eFault_HardwareFailure,
|
||||
eFault_ForSoftLim, eFault_RevSoftLim, eStckyFault_OverTemp, eStckyFault_UnderVoltage,
|
||||
eStckyFault_ForLim, eStckyFault_RevLim, eStckyFault_ForSoftLim, eStckyFault_RevSoftLim,
|
||||
eAppliedThrottle, eCloseLoopErr, eFeedbackDeviceSelect, eRevMotDuringCloseLoopEn,
|
||||
eModeSelect, eProfileSlotSelect, eRampThrottle, eRevFeedbackSensor, eLimitSwitchEn,
|
||||
eLimitSwitchClosedFor, eLimitSwitchClosedRev, eSensorPosition, eSensorVelocity, eCurrent,
|
||||
eBrakeIsEnabled, eEncPosition, eEncVel, eEncIndexRiseEvents, eQuadApin, eQuadBpin,
|
||||
eQuadIdxpin, eAnalogInWithOv, eAnalogInVel, eTemp, eBatteryV, eResetCount, eResetFlags,
|
||||
eFirmVers, eSettingsChanged, eQuadFilterEn, ePidIaccum};
|
||||
private static int swigNext = 0;
|
||||
private final int swigValue;
|
||||
private final String swigName;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,48 +0,0 @@
|
||||
/*
|
||||
* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org). Version
|
||||
* 2.0.11
|
||||
*$
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
* -----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
package edu.wpi.first.wpilibj.hal;
|
||||
|
||||
public class CtreCanNode {
|
||||
private long swigCPtr;
|
||||
protected boolean swigCMemOwn;
|
||||
|
||||
protected CtreCanNode(long cPtr, boolean cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(CtreCanNode obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if (swigCPtr != 0) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
CanTalonJNI.delete_CtreCanNode(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
}
|
||||
}
|
||||
|
||||
public CtreCanNode(SWIGTYPE_p_UINT8 deviceNumber) {
|
||||
this(CanTalonJNI.new_CtreCanNode(SWIGTYPE_p_UINT8.getCPtr(deviceNumber)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_UINT8 GetDeviceNumber() {
|
||||
return new SWIGTYPE_p_UINT8(CanTalonJNI.CtreCanNode_GetDeviceNumber(swigCPtr, this), true);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
/*
|
||||
* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org). Version
|
||||
* 2.0.11
|
||||
*$
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
* -----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
package edu.wpi.first.wpilibj.hal;
|
||||
|
||||
public class SWIGTYPE_p_CTR_Code {
|
||||
private long swigCPtr;
|
||||
|
||||
public SWIGTYPE_p_CTR_Code(long cPtr, boolean futureUse) {
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_CTR_Code() {
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
public static long getCPtr(SWIGTYPE_p_CTR_Code obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
/*
|
||||
* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org). Version
|
||||
* 2.0.11
|
||||
*$
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
* -----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
package edu.wpi.first.wpilibj.hal;
|
||||
|
||||
public class SWIGTYPE_p_UINT8 {
|
||||
private long swigCPtr;
|
||||
|
||||
public SWIGTYPE_p_UINT8(long cPtr, boolean futureUse) {
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_UINT8() {
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
public static long getCPtr(SWIGTYPE_p_UINT8 obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
/*
|
||||
* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org). Version
|
||||
* 2.0.11
|
||||
*$
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
* -----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
package edu.wpi.first.wpilibj.hal;
|
||||
|
||||
public class SWIGTYPE_p_double {
|
||||
private long swigCPtr;
|
||||
|
||||
public SWIGTYPE_p_double(long cPtr, boolean futureUse) {
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_double() {
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
public static long getCPtr(SWIGTYPE_p_double obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
/*
|
||||
* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org). Version
|
||||
* 2.0.11
|
||||
*$
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
* -----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
package edu.wpi.first.wpilibj.hal;
|
||||
|
||||
public class SWIGTYPE_p_float {
|
||||
private long swigCPtr;
|
||||
|
||||
public SWIGTYPE_p_float(long cPtr, boolean futureUse) {
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_float() {
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
public static long getCPtr(SWIGTYPE_p_float obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
/*
|
||||
* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org). Version
|
||||
* 2.0.11
|
||||
*$
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
* -----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
package edu.wpi.first.wpilibj.hal;
|
||||
|
||||
public class SWIGTYPE_p_int {
|
||||
private long swigCPtr;
|
||||
|
||||
public SWIGTYPE_p_int(long cPtr, boolean futureUse) {
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_int() {
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
public static long getCPtr(SWIGTYPE_p_int obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
/*
|
||||
* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org). Version
|
||||
* 2.0.11
|
||||
*$
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
* -----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
package edu.wpi.first.wpilibj.hal;
|
||||
|
||||
public class SWIGTYPE_p_int32_t {
|
||||
private long swigCPtr;
|
||||
|
||||
public SWIGTYPE_p_int32_t(long cPtr, boolean futureUse) {
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_int32_t() {
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
public static long getCPtr(SWIGTYPE_p_int32_t obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
/*
|
||||
* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org). Version
|
||||
* 2.0.11
|
||||
*$
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
* -----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
package edu.wpi.first.wpilibj.hal;
|
||||
|
||||
public class SWIGTYPE_p_uint32_t {
|
||||
private long swigCPtr;
|
||||
|
||||
public SWIGTYPE_p_uint32_t(long cPtr, boolean futureUse) {
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_uint32_t() {
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
public static long getCPtr(SWIGTYPE_p_uint32_t obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
/*
|
||||
* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org). Version
|
||||
* 2.0.11
|
||||
*$
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
* -----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
package edu.wpi.first.wpilibj.hal;
|
||||
|
||||
public class SWIGTYPE_p_uint8_t {
|
||||
private long swigCPtr;
|
||||
|
||||
public SWIGTYPE_p_uint8_t(long cPtr, boolean futureUse) {
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_uint8_t() {
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
public static long getCPtr(SWIGTYPE_p_uint8_t obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
@@ -1,556 +1,225 @@
|
||||
/*
|
||||
* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org). Version
|
||||
* 2.0.11
|
||||
*$
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
* -----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
package edu.wpi.first.wpilibj.hal;
|
||||
|
||||
public class CanTalonJNI {
|
||||
public final static native long new_doublep();
|
||||
|
||||
public final static native long copy_doublep(double jarg1);
|
||||
|
||||
public final static native void delete_doublep(long jarg1);
|
||||
|
||||
public final static native void doublep_assign(long jarg1, double jarg2);
|
||||
|
||||
public final static native double doublep_value(long jarg1);
|
||||
|
||||
public final static native long new_intp();
|
||||
|
||||
public final static native long copy_intp(int jarg1);
|
||||
|
||||
public final static native void delete_intp(long jarg1);
|
||||
|
||||
public final static native void intp_assign(long jarg1, int jarg2);
|
||||
|
||||
public final static native int intp_value(long jarg1);
|
||||
|
||||
public final static native long new_uint32_tp();
|
||||
|
||||
public final static native long copy_uint32_tp(long jarg1);
|
||||
|
||||
public final static native void delete_uint32_tp(long jarg1);
|
||||
|
||||
public final static native void uint32_tp_assign(long jarg1, long jarg2);
|
||||
|
||||
public final static native long uint32_tp_value(long jarg1);
|
||||
|
||||
public final static native long new_int32_tp();
|
||||
|
||||
public final static native long copy_int32_tp(long jarg1);
|
||||
|
||||
public final static native void delete_int32_tp(long jarg1);
|
||||
|
||||
public final static native void int32_tp_assign(long jarg1, long jarg2);
|
||||
|
||||
public final static native long int32_tp_value(long jarg1);
|
||||
|
||||
public final static native long new_uint8_tp();
|
||||
|
||||
public final static native long copy_uint8_tp(long jarg1);
|
||||
|
||||
public final static native void delete_uint8_tp(long jarg1);
|
||||
|
||||
public final static native void uint8_tp_assign(long jarg1, long jarg2);
|
||||
|
||||
public final static native long uint8_tp_value(long jarg1);
|
||||
|
||||
public final static native long new_CTR_Codep();
|
||||
|
||||
public final static native long copy_CTR_Codep(long jarg1);
|
||||
|
||||
public final static native void delete_CTR_Codep(long jarg1);
|
||||
|
||||
public final static native void CTR_Codep_assign(long jarg1, long jarg2);
|
||||
|
||||
public final static native long CTR_Codep_value(long jarg1);
|
||||
|
||||
public final static native long new_floatp();
|
||||
|
||||
public final static native long copy_floatp(float jarg1);
|
||||
|
||||
public final static native void delete_floatp(long jarg1);
|
||||
|
||||
public final static native void floatp_assign(long jarg1, float jarg2);
|
||||
|
||||
public final static native float floatp_value(long jarg1);
|
||||
|
||||
public final static native long new_CtreCanNode(long jarg1);
|
||||
|
||||
public final static native void delete_CtreCanNode(long jarg1);
|
||||
|
||||
public final static native long CtreCanNode_GetDeviceNumber(long jarg1, CtreCanNode jarg1_);
|
||||
|
||||
public final static native int CanTalonSRX_kDefaultControlPeriodMs_get();
|
||||
|
||||
public final static native long new_CanTalonSRX__SWIG_0(int jarg1, int jarg2);
|
||||
|
||||
public final static native long new_CanTalonSRX__SWIG_1(int jarg1);
|
||||
|
||||
public final static native long new_CanTalonSRX__SWIG_2();
|
||||
|
||||
public final static native void delete_CanTalonSRX(long jarg1);
|
||||
|
||||
public final static native void CanTalonSRX_Set(long jarg1, CanTalonSRX jarg1_, double jarg2);
|
||||
|
||||
public final static native int CanTalonSRX_kMode_DutyCycle_get();
|
||||
|
||||
public final static native int CanTalonSRX_kMode_PositionCloseLoop_get();
|
||||
|
||||
public final static native int CanTalonSRX_kMode_VelocityCloseLoop_get();
|
||||
|
||||
public final static native int CanTalonSRX_kMode_CurrentCloseLoop_get();
|
||||
|
||||
public final static native int CanTalonSRX_kMode_VoltCompen_get();
|
||||
|
||||
public final static native int CanTalonSRX_kMode_SlaveFollower_get();
|
||||
|
||||
public final static native int CanTalonSRX_kMode_NoDrive_get();
|
||||
|
||||
public final static native int CanTalonSRX_kLimitSwitchOverride_UseDefaultsFromFlash_get();
|
||||
|
||||
public final static native int CanTalonSRX_kLimitSwitchOverride_DisableFwd_DisableRev_get();
|
||||
|
||||
public final static native int CanTalonSRX_kLimitSwitchOverride_DisableFwd_EnableRev_get();
|
||||
|
||||
public final static native int CanTalonSRX_kLimitSwitchOverride_EnableFwd_DisableRev_get();
|
||||
|
||||
public final static native int CanTalonSRX_kLimitSwitchOverride_EnableFwd_EnableRev_get();
|
||||
|
||||
public final static native int CanTalonSRX_kBrakeOverride_UseDefaultsFromFlash_get();
|
||||
|
||||
public final static native int CanTalonSRX_kBrakeOverride_OverrideCoast_get();
|
||||
|
||||
public final static native int CanTalonSRX_kBrakeOverride_OverrideBrake_get();
|
||||
|
||||
public final static native int CanTalonSRX_kFeedbackDev_DigitalQuadEnc_get();
|
||||
|
||||
public final static native int CanTalonSRX_kFeedbackDev_AnalogPot_get();
|
||||
|
||||
public final static native int CanTalonSRX_kFeedbackDev_AnalogEncoder_get();
|
||||
|
||||
public final static native int CanTalonSRX_kFeedbackDev_CountEveryRisingEdge_get();
|
||||
|
||||
public final static native int CanTalonSRX_kFeedbackDev_CountEveryFallingEdge_get();
|
||||
|
||||
public final static native int CanTalonSRX_kFeedbackDev_PosIsPulseWidth_get();
|
||||
|
||||
public final static native int CanTalonSRX_kProfileSlotSelect_Slot0_get();
|
||||
|
||||
public final static native int CanTalonSRX_kProfileSlotSelect_Slot1_get();
|
||||
|
||||
public final static native int CanTalonSRX_kStatusFrame_General_get();
|
||||
|
||||
public final static native int CanTalonSRX_kStatusFrame_Feedback_get();
|
||||
|
||||
public final static native int CanTalonSRX_kStatusFrame_Encoder_get();
|
||||
|
||||
public final static native int CanTalonSRX_kStatusFrame_AnalogTempVbat_get();
|
||||
|
||||
public final static native int CanTalonSRX_kStatusFrame_PulseWidthMeas_get();
|
||||
|
||||
public final static native int CanTalonSRX_eProfileParamSlot0_P_get();
|
||||
|
||||
public final static native int CanTalonSRX_eProfileParamSlot0_I_get();
|
||||
|
||||
public final static native int CanTalonSRX_eProfileParamSlot0_D_get();
|
||||
|
||||
public final static native int CanTalonSRX_eProfileParamSlot0_F_get();
|
||||
|
||||
public final static native int CanTalonSRX_eProfileParamSlot0_IZone_get();
|
||||
|
||||
public final static native int CanTalonSRX_eProfileParamSlot0_CloseLoopRampRate_get();
|
||||
|
||||
public final static native int CanTalonSRX_eProfileParamSlot1_P_get();
|
||||
|
||||
public final static native int CanTalonSRX_eProfileParamSlot1_I_get();
|
||||
|
||||
public final static native int CanTalonSRX_eProfileParamSlot1_D_get();
|
||||
|
||||
public final static native int CanTalonSRX_eProfileParamSlot1_F_get();
|
||||
|
||||
public final static native int CanTalonSRX_eProfileParamSlot1_IZone_get();
|
||||
|
||||
public final static native int CanTalonSRX_eProfileParamSlot1_CloseLoopRampRate_get();
|
||||
|
||||
public final static native int CanTalonSRX_eProfileParamSoftLimitForThreshold_get();
|
||||
|
||||
public final static native int CanTalonSRX_eProfileParamSoftLimitRevThreshold_get();
|
||||
|
||||
public final static native int CanTalonSRX_eProfileParamSoftLimitForEnable_get();
|
||||
|
||||
public final static native int CanTalonSRX_eProfileParamSoftLimitRevEnable_get();
|
||||
|
||||
public final static native int CanTalonSRX_eOnBoot_BrakeMode_get();
|
||||
|
||||
public final static native int CanTalonSRX_eOnBoot_LimitSwitch_Forward_NormallyClosed_get();
|
||||
|
||||
public final static native int CanTalonSRX_eOnBoot_LimitSwitch_Reverse_NormallyClosed_get();
|
||||
|
||||
public final static native int CanTalonSRX_eOnBoot_LimitSwitch_Forward_Disable_get();
|
||||
|
||||
public final static native int CanTalonSRX_eOnBoot_LimitSwitch_Reverse_Disable_get();
|
||||
|
||||
public final static native int CanTalonSRX_eFault_OverTemp_get();
|
||||
|
||||
public final static native int CanTalonSRX_eFault_UnderVoltage_get();
|
||||
|
||||
public final static native int CanTalonSRX_eFault_ForLim_get();
|
||||
|
||||
public final static native int CanTalonSRX_eFault_RevLim_get();
|
||||
|
||||
public final static native int CanTalonSRX_eFault_HardwareFailure_get();
|
||||
|
||||
public final static native int CanTalonSRX_eFault_ForSoftLim_get();
|
||||
|
||||
public final static native int CanTalonSRX_eFault_RevSoftLim_get();
|
||||
|
||||
public final static native int CanTalonSRX_eStckyFault_OverTemp_get();
|
||||
|
||||
public final static native int CanTalonSRX_eStckyFault_UnderVoltage_get();
|
||||
|
||||
public final static native int CanTalonSRX_eStckyFault_ForLim_get();
|
||||
|
||||
public final static native int CanTalonSRX_eStckyFault_RevLim_get();
|
||||
|
||||
public final static native int CanTalonSRX_eStckyFault_ForSoftLim_get();
|
||||
|
||||
public final static native int CanTalonSRX_eStckyFault_RevSoftLim_get();
|
||||
|
||||
public final static native int CanTalonSRX_eAppliedThrottle_get();
|
||||
|
||||
public final static native int CanTalonSRX_eCloseLoopErr_get();
|
||||
|
||||
public final static native int CanTalonSRX_eFeedbackDeviceSelect_get();
|
||||
|
||||
public final static native int CanTalonSRX_eRevMotDuringCloseLoopEn_get();
|
||||
|
||||
public final static native int CanTalonSRX_eModeSelect_get();
|
||||
|
||||
public final static native int CanTalonSRX_eProfileSlotSelect_get();
|
||||
|
||||
public final static native int CanTalonSRX_eRampThrottle_get();
|
||||
|
||||
public final static native int CanTalonSRX_eRevFeedbackSensor_get();
|
||||
|
||||
public final static native int CanTalonSRX_eLimitSwitchEn_get();
|
||||
|
||||
public final static native int CanTalonSRX_eLimitSwitchClosedFor_get();
|
||||
|
||||
public final static native int CanTalonSRX_eLimitSwitchClosedRev_get();
|
||||
|
||||
public final static native int CanTalonSRX_eSensorPosition_get();
|
||||
|
||||
public final static native int CanTalonSRX_eSensorVelocity_get();
|
||||
|
||||
public final static native int CanTalonSRX_eCurrent_get();
|
||||
|
||||
public final static native int CanTalonSRX_eBrakeIsEnabled_get();
|
||||
|
||||
public final static native int CanTalonSRX_eEncPosition_get();
|
||||
|
||||
public final static native int CanTalonSRX_eEncVel_get();
|
||||
|
||||
public final static native int CanTalonSRX_eEncIndexRiseEvents_get();
|
||||
|
||||
public final static native int CanTalonSRX_eQuadApin_get();
|
||||
|
||||
public final static native int CanTalonSRX_eQuadBpin_get();
|
||||
|
||||
public final static native int CanTalonSRX_eQuadIdxpin_get();
|
||||
|
||||
public final static native int CanTalonSRX_eAnalogInWithOv_get();
|
||||
|
||||
public final static native int CanTalonSRX_eAnalogInVel_get();
|
||||
|
||||
public final static native int CanTalonSRX_eTemp_get();
|
||||
|
||||
public final static native int CanTalonSRX_eBatteryV_get();
|
||||
|
||||
public final static native int CanTalonSRX_eResetCount_get();
|
||||
|
||||
public final static native int CanTalonSRX_eResetFlags_get();
|
||||
|
||||
public final static native int CanTalonSRX_eFirmVers_get();
|
||||
|
||||
public final static native int CanTalonSRX_eSettingsChanged_get();
|
||||
|
||||
public final static native int CanTalonSRX_eQuadFilterEn_get();
|
||||
|
||||
public final static native int CanTalonSRX_ePidIaccum_get();
|
||||
|
||||
public final static native int CanTalonSRX_eStatus1FrameRate_get();
|
||||
|
||||
public final static native int CanTalonSRX_eStatus2FrameRate_get();
|
||||
|
||||
public final static native int CanTalonSRX_eStatus3FrameRate_get();
|
||||
|
||||
public final static native int CanTalonSRX_eStatus4FrameRate_get();
|
||||
|
||||
public final static native int CanTalonSRX_eStatus6FrameRate_get();
|
||||
|
||||
public final static native int CanTalonSRX_eStatus7FrameRate_get();
|
||||
|
||||
public final static native int CanTalonSRX_eClearPositionOnIdx_get();
|
||||
|
||||
public final static native int CanTalonSRX_ePeakPosOutput_get();
|
||||
|
||||
public final static native int CanTalonSRX_eNominalPosOutput_get();
|
||||
|
||||
public final static native int CanTalonSRX_ePeakNegOutput_get();
|
||||
|
||||
public final static native int CanTalonSRX_eNominalNegOutput_get();
|
||||
|
||||
public final static native int CanTalonSRX_eQuadIdxPolarity_get();
|
||||
|
||||
public final static native int CanTalonSRX_eStatus8FrameRate_get();
|
||||
|
||||
public final static native int CanTalonSRX_eAllowPosOverflow_get();
|
||||
|
||||
public final static native int CanTalonSRX_eProfileParamSlot0_AllowableClosedLoopErr_get();
|
||||
|
||||
public final static native int CanTalonSRX_eNumberPotTurns_get();
|
||||
|
||||
public final static native int CanTalonSRX_eNumberEncoderCPR_get();
|
||||
|
||||
public final static native int CanTalonSRX_ePwdPosition_get();
|
||||
|
||||
public final static native int CanTalonSRX_eAinPosition_get();
|
||||
|
||||
public final static native int CanTalonSRX_eProfileParamVcompRate_get();
|
||||
|
||||
public final static native int CanTalonSRX_eProfileParamSlot1_AllowableClosedLoopErr_get();
|
||||
|
||||
public final static native long CanTalonSRX_SetParam(long jarg1, CanTalonSRX jarg1_, int jarg2,
|
||||
double jarg3);
|
||||
|
||||
public final static native long CanTalonSRX_RequestParam(long jarg1, CanTalonSRX jarg1_, int jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_GetParamResponse(long jarg1, CanTalonSRX jarg1_,
|
||||
int jarg2, long jarg3);
|
||||
|
||||
public final static native long CanTalonSRX_GetParamResponseInt32(long jarg1, CanTalonSRX jarg1_,
|
||||
int jarg2, long jarg3);
|
||||
|
||||
public final static native long CanTalonSRX_SetPgain(long jarg1, CanTalonSRX jarg1_, long jarg2,
|
||||
double jarg3);
|
||||
|
||||
public final static native long CanTalonSRX_SetIgain(long jarg1, CanTalonSRX jarg1_, long jarg2,
|
||||
double jarg3);
|
||||
|
||||
public final static native long CanTalonSRX_SetDgain(long jarg1, CanTalonSRX jarg1_, long jarg2,
|
||||
double jarg3);
|
||||
|
||||
public final static native long CanTalonSRX_SetFgain(long jarg1, CanTalonSRX jarg1_, long jarg2,
|
||||
double jarg3);
|
||||
|
||||
public final static native long CanTalonSRX_SetIzone(long jarg1, CanTalonSRX jarg1_, long jarg2,
|
||||
int jarg3);
|
||||
|
||||
public final static native long CanTalonSRX_SetCloseLoopRampRate(long jarg1, CanTalonSRX jarg1_,
|
||||
long jarg2, int jarg3);
|
||||
|
||||
public final static native long CanTalonSRX_SetSensorPosition(long jarg1, CanTalonSRX jarg1_,
|
||||
int jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_SetForwardSoftLimit(long jarg1, CanTalonSRX jarg1_,
|
||||
int jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_SetReverseSoftLimit(long jarg1, CanTalonSRX jarg1_,
|
||||
int jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_SetForwardSoftEnable(long jarg1, CanTalonSRX jarg1_,
|
||||
int jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_SetReverseSoftEnable(long jarg1, CanTalonSRX jarg1_,
|
||||
int jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_GetPgain(long jarg1, CanTalonSRX jarg1_, long jarg2,
|
||||
long jarg3);
|
||||
|
||||
public final static native long CanTalonSRX_GetIgain(long jarg1, CanTalonSRX jarg1_, long jarg2,
|
||||
long jarg3);
|
||||
|
||||
public final static native long CanTalonSRX_GetDgain(long jarg1, CanTalonSRX jarg1_, long jarg2,
|
||||
long jarg3);
|
||||
|
||||
public final static native long CanTalonSRX_GetFgain(long jarg1, CanTalonSRX jarg1_, long jarg2,
|
||||
long jarg3);
|
||||
|
||||
public final static native long CanTalonSRX_GetIzone(long jarg1, CanTalonSRX jarg1_, long jarg2,
|
||||
long jarg3);
|
||||
|
||||
public final static native long CanTalonSRX_GetCloseLoopRampRate(long jarg1, CanTalonSRX jarg1_,
|
||||
long jarg2, long jarg3);
|
||||
|
||||
public final static native long CanTalonSRX_GetVoltageCompensationRate(long jarg1,
|
||||
CanTalonSRX jarg1_, long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_GetForwardSoftLimit(long jarg1, CanTalonSRX jarg1_,
|
||||
long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_GetReverseSoftLimit(long jarg1, CanTalonSRX jarg1_,
|
||||
long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_GetForwardSoftEnable(long jarg1, CanTalonSRX jarg1_,
|
||||
long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_GetReverseSoftEnable(long jarg1, CanTalonSRX jarg1_,
|
||||
long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_SetStatusFrameRate(long jarg1, CanTalonSRX jarg1_,
|
||||
long jarg2, long jarg3);
|
||||
|
||||
public final static native long CanTalonSRX_ClearStickyFaults(long jarg1, CanTalonSRX jarg1_);
|
||||
|
||||
public final static native long CanTalonSRX_GetFault_OverTemp(long jarg1, CanTalonSRX jarg1_,
|
||||
long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_GetFault_UnderVoltage(long jarg1, CanTalonSRX jarg1_,
|
||||
long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_GetFault_ForLim(long jarg1, CanTalonSRX jarg1_,
|
||||
long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_GetFault_RevLim(long jarg1, CanTalonSRX jarg1_,
|
||||
long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_GetFault_HardwareFailure(long jarg1,
|
||||
CanTalonSRX jarg1_, long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_GetFault_ForSoftLim(long jarg1, CanTalonSRX jarg1_,
|
||||
long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_GetFault_RevSoftLim(long jarg1, CanTalonSRX jarg1_,
|
||||
long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_GetStckyFault_OverTemp(long jarg1,
|
||||
CanTalonSRX jarg1_, long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_GetStckyFault_UnderVoltage(long jarg1,
|
||||
CanTalonSRX jarg1_, long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_GetStckyFault_ForLim(long jarg1, CanTalonSRX jarg1_,
|
||||
long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_GetStckyFault_RevLim(long jarg1, CanTalonSRX jarg1_,
|
||||
long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_GetStckyFault_ForSoftLim(long jarg1,
|
||||
CanTalonSRX jarg1_, long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_GetStckyFault_RevSoftLim(long jarg1,
|
||||
CanTalonSRX jarg1_, long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_GetAppliedThrottle(long jarg1, CanTalonSRX jarg1_,
|
||||
long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_GetCloseLoopErr(long jarg1, CanTalonSRX jarg1_,
|
||||
long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_GetFeedbackDeviceSelect(long jarg1,
|
||||
CanTalonSRX jarg1_, long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_GetModeSelect(long jarg1, CanTalonSRX jarg1_,
|
||||
long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_GetLimitSwitchEn(long jarg1, CanTalonSRX jarg1_,
|
||||
long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_GetLimitSwitchClosedFor(long jarg1,
|
||||
CanTalonSRX jarg1_, long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_GetLimitSwitchClosedRev(long jarg1,
|
||||
CanTalonSRX jarg1_, long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_GetSensorPosition(long jarg1, CanTalonSRX jarg1_,
|
||||
long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_GetSensorVelocity(long jarg1, CanTalonSRX jarg1_,
|
||||
long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_GetCurrent(long jarg1, CanTalonSRX jarg1_, long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_GetBrakeIsEnabled(long jarg1, CanTalonSRX jarg1_,
|
||||
long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_GetEncPosition(long jarg1, CanTalonSRX jarg1_,
|
||||
long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_GetEncVel(long jarg1, CanTalonSRX jarg1_, long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_GetEncIndexRiseEvents(long jarg1, CanTalonSRX jarg1_,
|
||||
long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_GetQuadApin(long jarg1, CanTalonSRX jarg1_, long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_GetQuadBpin(long jarg1, CanTalonSRX jarg1_, long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_GetQuadIdxpin(long jarg1, CanTalonSRX jarg1_,
|
||||
long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_GetAnalogInWithOv(long jarg1, CanTalonSRX jarg1_,
|
||||
long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_GetAnalogInVel(long jarg1, CanTalonSRX jarg1_,
|
||||
long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_GetTemp(long jarg1, CanTalonSRX jarg1_, long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_GetBatteryV(long jarg1, CanTalonSRX jarg1_, long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_GetResetCount(long jarg1, CanTalonSRX jarg1_,
|
||||
long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_GetResetFlags(long jarg1, CanTalonSRX jarg1_,
|
||||
long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_GetFirmVers(long jarg1, CanTalonSRX jarg1_, long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_SetDemand(long jarg1, CanTalonSRX jarg1_, int jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_SetOverrideLimitSwitchEn(long jarg1,
|
||||
CanTalonSRX jarg1_, int jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_SetFeedbackDeviceSelect(long jarg1,
|
||||
CanTalonSRX jarg1_, int jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_SetRevMotDuringCloseLoopEn(long jarg1,
|
||||
CanTalonSRX jarg1_, int jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_SetOverrideBrakeType(long jarg1, CanTalonSRX jarg1_,
|
||||
int jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_SetModeSelect(long jarg1, CanTalonSRX jarg1_,
|
||||
int jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_SetProfileSlotSelect(long jarg1, CanTalonSRX jarg1_,
|
||||
int jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_SetRampThrottle(long jarg1, CanTalonSRX jarg1_,
|
||||
int jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_SetVoltageCompensationRate(long jarg1, CanTalonSRX jarg1_,
|
||||
double jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_SetRevFeedbackSensor(long jarg1, CanTalonSRX jarg1_,
|
||||
int jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_GetPulseWidthPosition(long jarg1, CanTalonSRX jarg1_, long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_GetPulseWidthVelocity(long jarg1, CanTalonSRX jarg1_, long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_GetPulseWidthRiseToFallUs(long jarg1, CanTalonSRX jarg1_, long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_GetPulseWidthRiseToRiseUs(long jarg1, CanTalonSRX jarg1_, long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_IsPulseWidthSensorPresent(long jarg1, CanTalonSRX jarg1_, long jarg2);
|
||||
|
||||
public final static native long CanTalonSRX_SWIGUpcast(long jarg1);
|
||||
public class CanTalonJNI extends JNIWrapper {
|
||||
// Motion Profile status bits
|
||||
public static final int kMotionProfileFlag_ActTraj_IsValid = 0x1;
|
||||
public static final int kMotionProfileFlag_HasUnderrun = 0x2;
|
||||
public static final int kMotionProfileFlag_IsUnderrun = 0x4;
|
||||
public static final int kMotionProfileFlag_ActTraj_IsLast = 0x8;
|
||||
public static final int kMotionProfileFlag_ActTraj_VelOnly = 0x10;
|
||||
|
||||
/**
|
||||
* Signal enumeration for generic signal access.
|
||||
* Although every signal is enumerated, only use this for traffic that must be solicited.
|
||||
* Use the auto generated getters/setters at bottom of this header as much as possible.
|
||||
*/
|
||||
public enum param_t {
|
||||
eProfileParamSlot0_P(1),
|
||||
eProfileParamSlot0_I(2),
|
||||
eProfileParamSlot0_D(3),
|
||||
eProfileParamSlot0_F(4),
|
||||
eProfileParamSlot0_IZone(5),
|
||||
eProfileParamSlot0_CloseLoopRampRate(6),
|
||||
eProfileParamSlot1_P(11),
|
||||
eProfileParamSlot1_I(12),
|
||||
eProfileParamSlot1_D(13),
|
||||
eProfileParamSlot1_F(14),
|
||||
eProfileParamSlot1_IZone(15),
|
||||
eProfileParamSlot1_CloseLoopRampRate(16),
|
||||
eProfileParamSoftLimitForThreshold(21),
|
||||
eProfileParamSoftLimitRevThreshold(22),
|
||||
eProfileParamSoftLimitForEnable(23),
|
||||
eProfileParamSoftLimitRevEnable(24),
|
||||
eOnBoot_BrakeMode(31),
|
||||
eOnBoot_LimitSwitch_Forward_NormallyClosed(32),
|
||||
eOnBoot_LimitSwitch_Reverse_NormallyClosed(33),
|
||||
eOnBoot_LimitSwitch_Forward_Disable(34),
|
||||
eOnBoot_LimitSwitch_Reverse_Disable(35),
|
||||
eFault_OverTemp(41),
|
||||
eFault_UnderVoltage(42),
|
||||
eFault_ForLim(43),
|
||||
eFault_RevLim(44),
|
||||
eFault_HardwareFailure(45),
|
||||
eFault_ForSoftLim(46),
|
||||
eFault_RevSoftLim(47),
|
||||
eStckyFault_OverTemp(48),
|
||||
eStckyFault_UnderVoltage(49),
|
||||
eStckyFault_ForLim(50),
|
||||
eStckyFault_RevLim(51),
|
||||
eStckyFault_ForSoftLim(52),
|
||||
eStckyFault_RevSoftLim(53),
|
||||
eAppliedThrottle(61),
|
||||
eCloseLoopErr(62),
|
||||
eFeedbackDeviceSelect(63),
|
||||
eRevMotDuringCloseLoopEn(64),
|
||||
eModeSelect(65),
|
||||
eProfileSlotSelect(66),
|
||||
eRampThrottle(67),
|
||||
eRevFeedbackSensor(68),
|
||||
eLimitSwitchEn(69),
|
||||
eLimitSwitchClosedFor(70),
|
||||
eLimitSwitchClosedRev(71),
|
||||
eSensorPosition(73),
|
||||
eSensorVelocity(74),
|
||||
eCurrent(75),
|
||||
eBrakeIsEnabled(76),
|
||||
eEncPosition(77),
|
||||
eEncVel(78),
|
||||
eEncIndexRiseEvents(79),
|
||||
eQuadApin(80),
|
||||
eQuadBpin(81),
|
||||
eQuadIdxpin(82),
|
||||
eAnalogInWithOv(83),
|
||||
eAnalogInVel(84),
|
||||
eTemp(85),
|
||||
eBatteryV(86),
|
||||
eResetCount(87),
|
||||
eResetFlags(88),
|
||||
eFirmVers(89),
|
||||
eSettingsChanged(90),
|
||||
eQuadFilterEn(91),
|
||||
ePidIaccum(93),
|
||||
eStatus1FrameRate(94), // TALON_Status_1_General_10ms_t
|
||||
eStatus2FrameRate(95), // TALON_Status_2_Feedback_20ms_t
|
||||
eStatus3FrameRate(96), // TALON_Status_3_Enc_100ms_t
|
||||
eStatus4FrameRate(97), // TALON_Status_4_AinTempVbat_100ms_t
|
||||
eStatus6FrameRate(98), // TALON_Status_6_Eol_t
|
||||
eStatus7FrameRate(99), // TALON_Status_7_Debug_200ms_t
|
||||
eClearPositionOnIdx(100),
|
||||
//reserved
|
||||
//reserved
|
||||
//reserved
|
||||
ePeakPosOutput(104),
|
||||
eNominalPosOutput(105),
|
||||
ePeakNegOutput(106),
|
||||
eNominalNegOutput(107),
|
||||
eQuadIdxPolarity(108),
|
||||
eStatus8FrameRate(109), // TALON_Status_8_PulseWid_100ms_t
|
||||
eAllowPosOverflow(110),
|
||||
eProfileParamSlot0_AllowableClosedLoopErr(111),
|
||||
eNumberPotTurns(112),
|
||||
eNumberEncoderCPR(113),
|
||||
ePwdPosition(114),
|
||||
eAinPosition(115),
|
||||
eProfileParamVcompRate(116),
|
||||
eProfileParamSlot1_AllowableClosedLoopErr(117),
|
||||
eStatus9FrameRate(118), // TALON_Status_9_MotProfBuffer_100ms_t
|
||||
eMotionProfileHasUnderrunErr(119),
|
||||
eReserved120(120),
|
||||
eLegacyControlMode(121);
|
||||
|
||||
public final int value;
|
||||
private param_t(int value) {
|
||||
this.value = value;
|
||||
}
|
||||
}
|
||||
|
||||
public static native long new_CanTalonSRX(int deviceNumber, int controlPeriodMs, int enablePeriodMs);
|
||||
public static native long new_CanTalonSRX(int deviceNumber, int controlPeriodMs);
|
||||
public static native long new_CanTalonSRX(int deviceNumber);
|
||||
public static native long new_CanTalonSRX();
|
||||
public static native void delete_CanTalonSRX(long handle);
|
||||
|
||||
public static native void GetMotionProfileStatus(long handle, Object canTalon, Object motionProfileStatus);
|
||||
|
||||
public static native void Set(long handle, double value);
|
||||
public static native void SetParam(long handle, int paramEnum, double value);
|
||||
public static native void RequestParam(long handle, int paramEnum);
|
||||
public static native double GetParamResponse(long handle, int paramEnum);
|
||||
public static native int GetParamResponseInt32(long handle, int paramEnum);
|
||||
public static native void SetPgain(long handle, int slotIdx, double gain);
|
||||
public static native void SetIgain(long handle, int slotIdx, double gain);
|
||||
public static native void SetDgain(long handle, int slotIdx, double gain);
|
||||
public static native void SetFgain(long handle, int slotIdx, double gain);
|
||||
public static native void SetIzone(long handle, int slotIdx, int zone);
|
||||
public static native void SetCloseLoopRampRate(long handle, int slotIdx, int closeLoopRampRate);
|
||||
public static native void SetVoltageCompensationRate(long handle, double voltagePerMs);
|
||||
public static native void SetSensorPosition(long handle, int pos);
|
||||
public static native void SetForwardSoftLimit(long handle, int forwardLimit);
|
||||
public static native void SetReverseSoftLimit(long handle, int reverseLimit);
|
||||
public static native void SetForwardSoftEnable(long handle, int enable);
|
||||
public static native void SetReverseSoftEnable(long handle, int enable);
|
||||
public static native double GetPgain(long handle, int slotIdx);
|
||||
public static native double GetIgain(long handle, int slotIdx);
|
||||
public static native double GetDgain(long handle, int slotIdx);
|
||||
public static native double GetFgain(long handle, int slotIdx);
|
||||
public static native int GetIzone(long handle, int slotIdx);
|
||||
public static native int GetCloseLoopRampRate(long handle, int slotIdx);
|
||||
public static native double GetVoltageCompensationRate(long handle);
|
||||
public static native int GetForwardSoftLimit(long handle);
|
||||
public static native int GetReverseSoftLimit(long handle);
|
||||
public static native int GetForwardSoftEnable(long handle);
|
||||
public static native int GetReverseSoftEnable(long handle);
|
||||
public static native int GetPulseWidthRiseToFallUs(long handle);
|
||||
public static native int IsPulseWidthSensorPresent(long handle);
|
||||
public static native void SetModeSelect2(long handle, int modeSelect, int demand);
|
||||
public static native void SetStatusFrameRate(long handle, int frameEnum, int periodMs);
|
||||
public static native void ClearStickyFaults(long handle);
|
||||
public static native void ChangeMotionControlFramePeriod(long handle, int periodMs);
|
||||
public static native void ClearMotionProfileTrajectories(long handle);
|
||||
public static native int GetMotionProfileTopLevelBufferCount(long handle);
|
||||
public static native boolean IsMotionProfileTopLevelBufferFull(long handle);
|
||||
public static native void PushMotionProfileTrajectory(long handle, int targPos, int targVel, int profileSlotSelect, int timeDurMs, int velOnly, int isLastPoint, int zeroPos);
|
||||
public static native void ProcessMotionProfileBuffer(long handle);
|
||||
public static native int GetFault_OverTemp(long handle);
|
||||
public static native int GetFault_UnderVoltage(long handle);
|
||||
public static native int GetFault_ForLim(long handle);
|
||||
public static native int GetFault_RevLim(long handle);
|
||||
public static native int GetFault_HardwareFailure(long handle);
|
||||
public static native int GetFault_ForSoftLim(long handle);
|
||||
public static native int GetFault_RevSoftLim(long handle);
|
||||
public static native int GetStckyFault_OverTemp(long handle);
|
||||
public static native int GetStckyFault_UnderVoltage(long handle);
|
||||
public static native int GetStckyFault_ForLim(long handle);
|
||||
public static native int GetStckyFault_RevLim(long handle);
|
||||
public static native int GetStckyFault_ForSoftLim(long handle);
|
||||
public static native int GetStckyFault_RevSoftLim(long handle);
|
||||
public static native int GetAppliedThrottle(long handle);
|
||||
public static native int GetCloseLoopErr(long handle);
|
||||
public static native int GetFeedbackDeviceSelect(long handle);
|
||||
public static native int GetModeSelect(long handle);
|
||||
public static native int GetLimitSwitchEn(long handle);
|
||||
public static native int GetLimitSwitchClosedFor(long handle);
|
||||
public static native int GetLimitSwitchClosedRev(long handle);
|
||||
public static native int GetSensorPosition(long handle);
|
||||
public static native int GetSensorVelocity(long handle);
|
||||
public static native double GetCurrent(long handle);
|
||||
public static native int GetBrakeIsEnabled(long handle);
|
||||
public static native int GetEncPosition(long handle);
|
||||
public static native int GetEncVel(long handle);
|
||||
public static native int GetEncIndexRiseEvents(long handle);
|
||||
public static native int GetQuadApin(long handle);
|
||||
public static native int GetQuadBpin(long handle);
|
||||
public static native int GetQuadIdxpin(long handle);
|
||||
public static native int GetAnalogInWithOv(long handle);
|
||||
public static native int GetAnalogInVel(long handle);
|
||||
public static native double GetTemp(long handle);
|
||||
public static native double GetBatteryV(long handle);
|
||||
public static native int GetResetCount(long handle);
|
||||
public static native int GetResetFlags(long handle);
|
||||
public static native int GetFirmVers(long handle);
|
||||
public static native int GetPulseWidthPosition(long handle);
|
||||
public static native int GetPulseWidthVelocity(long handle);
|
||||
public static native int GetPulseWidthRiseToRiseUs(long handle);
|
||||
public static native int GetActTraj_IsValid(long handle);
|
||||
public static native int GetActTraj_ProfileSlotSelect(long handle);
|
||||
public static native int GetActTraj_VelOnly(long handle);
|
||||
public static native int GetActTraj_IsLast(long handle);
|
||||
public static native int GetOutputType(long handle);
|
||||
public static native int GetHasUnderrun(long handle);
|
||||
public static native int GetIsUnderrun(long handle);
|
||||
public static native int GetNextID(long handle);
|
||||
public static native int GetBufferIsFull(long handle);
|
||||
public static native int GetCount(long handle);
|
||||
public static native int GetActTraj_Velocity(long handle);
|
||||
public static native int GetActTraj_Position(long handle);
|
||||
public static native void SetDemand(long handle, int param);
|
||||
public static native void SetOverrideLimitSwitchEn(long handle, int param);
|
||||
public static native void SetFeedbackDeviceSelect(long handle, int param);
|
||||
public static native void SetRevMotDuringCloseLoopEn(long handle, int param);
|
||||
public static native void SetOverrideBrakeType(long handle, int param);
|
||||
public static native void SetModeSelect(long handle, int param);
|
||||
public static native void SetProfileSlotSelect(long handle, int param);
|
||||
public static native void SetRampThrottle(long handle, int param);
|
||||
public static native void SetRevFeedbackSensor(long handle, int param);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user