mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-28 02:11:43 +00:00
C++
Added Get/clear routine for IntegralAccumulator Added missing status check in GetFirmwareVersion(). I don't expect this to affect anything. JAVA Renamed getRampRate to getCloseLoopRampRate in java to match the set routines in java, and match all routines in cpp. Added GetFirmwareVersion to java to match cpp. Added Get/clear routine for IntegralAccumulator Retested all three routines in java. Change-Id: I4ce9d9c87a379b9d4a76aae226e2072876218688
This commit is contained in:
committed by
James Kuszmaul
parent
e3ac0b628c
commit
19a7243bfc
@@ -2049,6 +2049,30 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eQuadFilterEn_1get(JNIEnv *jenv, jclass jcls) {
|
||||
jint jresult = 0 ;
|
||||
CanTalonSRX::_param_t result;
|
||||
|
||||
(void)jenv;
|
||||
(void)jcls;
|
||||
result = (CanTalonSRX::_param_t)CanTalonSRX::eQuadFilterEn;
|
||||
jresult = (jint)result;
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1ePidIaccum_1get(JNIEnv *jenv, jclass jcls) {
|
||||
jint jresult = 0 ;
|
||||
CanTalonSRX::_param_t result;
|
||||
|
||||
(void)jenv;
|
||||
(void)jcls;
|
||||
result = (CanTalonSRX::_param_t)CanTalonSRX::ePidIaccum;
|
||||
jresult = (jint)result;
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1SetParam(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jdouble jarg3) {
|
||||
jlong jresult = 0 ;
|
||||
CanTalonSRX *arg1 = (CanTalonSRX *) 0 ;
|
||||
|
||||
Reference in New Issue
Block a user