diff --git a/wpilibj/src/athena/cpp/lib/FRCNetworkCommunicationsLibrary.cpp b/wpilibj/src/athena/cpp/lib/FRCNetworkCommunicationsLibrary.cpp
index 4a163bd061..3c1eae67a4 100644
--- a/wpilibj/src/athena/cpp/lib/FRCNetworkCommunicationsLibrary.cpp
+++ b/wpilibj/src/athena/cpp/lib/FRCNetworkCommunicationsLibrary.cpp
@@ -17,70 +17,6 @@ TLogLevel netCommLogLevel = logWARNING;
extern "C" {
-/*
- * Class: edu_wpi_first_wpilibj_communication_FRC_NetworkCommunicationsLibrary
- * Method: FRC_NetworkCommunication_nAICalibration_getLSBWeight
- * Signature: (IILjava/lang/Integer;)I
- */
-JNIEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_communication_FRCNetworkCommunicationsLibrary_FRCNetworkCommunicationAICalibrationGetLSBWeight
- (JNIEnv *, jclass, jint, jint, jobject)
-{
- assert(false);
- return 0;
-}
-/*
- * Class: edu_wpi_first_wpilibj_communication_FRC_NetworkCommunicationsLibrary
- * Method: FRC_NetworkCommunication_nAICalibration_getOffset
- * Signature: (IILjava/lang/Integer;)I
- */
-JNIEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_communication_FRCNetworkCommunicationsLibrary_FRCNetworkCommunicationAICalibrationGetOffset
- (JNIEnv *, jclass, jint, jint, jobject)
-{
- assert(false);
- return 0;
-}
-/*
- * Class: edu_wpi_first_wpilibj_communication_FRC_NetworkCommunicationsLibrary
- * Method: getTargetClass
- * Signature: ()I
- */
-JNIEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_communication_FRCNetworkCommunicationsLibrary_getTargetClass
- (JNIEnv *, jclass)
-{
- assert(false);
- return 0;
-}
-/*
- * Class: edu_wpi_first_wpilibj_communication_FRC_NetworkCommunicationsLibrary
- * Method: FRC_NetworkCommunication_nLoadOut_getModulePresence
- * Signature: (IB)I
- */
-JNIEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_communication_FRCNetworkCommunicationsLibrary_FRCNetworkCommunicationLoadOutGetModulePresence
- (JNIEnv *, jclass, jint, jbyte)
-{
- assert(false);
- return 0;
-}
-/*
- * Class: edu_wpi_first_wpilibj_communication_FRC_NetworkCommunicationsLibrary
- * Method: FRC_NetworkCommunication_nLoadOut_getTargetClass
- * Signature: ()I
- */
-JNIEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_communication_FRCNetworkCommunicationsLibrary_FRCNetworkCommunicationLoadOutGetTargetClass
- (JNIEnv *, jclass)
-{
- assert(false);
-}
-/*
- * Class: edu_wpi_first_wpilibj_communication_FRC_NetworkCommunicationsLibrary
- * Method: report
- * Signature: (IBBLjava/lang/String;)I
- */
-JNIEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_communication_FRCNetworkCommunicationsLibrary_report
- (JNIEnv *, jclass, jint, jbyte, jbyte, jstring)
-{
- assert(false);
-}
/*
* Class: edu_wpi_first_wpilibj_communication_FRC_NetworkCommunicationsLibrary
* Method: FRC_NetworkCommunication_nUsageReporting_report
@@ -95,106 +31,6 @@ JNIEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_communication_FRCNetworkCommun
paramEnv->ReleaseStringUTFChars(paramFeature,featureStr);
return returnValue;
}
-/*
- * Class: edu_wpi_first_wpilibj_communication_FRC_NetworkCommunicationsLibrary
- * Method: getFPGAHardwareVersion
- * Signature: (Ljava/nio/ShortBuffer;Ljava/nio/IntBuffer;)V
- */
-JNIEXPORT void JNICALL Java_edu_wpi_first_wpilibj_communication_FRCNetworkCommunicationsLibrary_getFPGAHardwareVersion
- (JNIEnv *, jclass, jobject, jobject)
-{
- assert(false);
-}
-
-//
-// field ids
-//
-bool initializeComplete = false;
-jclass dataClass;
-jfieldID packetIndexFieldID;
-jfieldID controlFieldID;
-jfieldID dsDigitalInFieldID;
-jfieldID teamIDFieldID;
-jfieldID dsID_AllianceFieldID;
-jfieldID dsID_PositionFieldID;
-jfieldID stick0AxesFieldID;
-jfieldID stick0ButtonsFieldID;
-jfieldID stick1AxesFieldID;
-jfieldID stick1ButtonsFieldID;
-jfieldID stick2AxesFieldID;
-jfieldID stick2ButtonsFieldID;
-jfieldID stick3AxesFieldID;
-jfieldID stick3ButtonsFieldID;
-jfieldID analog1FieldID;
-jfieldID analog2FieldID;
-jfieldID analog3FieldID;
-jfieldID analog4FieldID;
-jfieldID cRIOChecksumFieldID;
-jfieldID FPGAChecksum0FieldID;
-jfieldID FPGAChecksum1FieldID;
-jfieldID FPGAChecksum2FieldID;
-jfieldID FPGAChecksum3FieldID;
-jfieldID versionDataFieldID;
-/*
- * Class: edu_wpi_first_wpilibj_communication_FRC_NetworkCommunicationsLibrary
- * Method: setErrorData
- * Signature: (Ljava/lang/String;II)I
- */
-JNIEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_communication_FRCNetworkCommunicationsLibrary_setErrorData
- (JNIEnv *, jclass, jstring, jint, jint)
-{
- assert(false);
-}
-/*
- * Class: edu_wpi_first_wpilibj_communication_FRC_NetworkCommunicationsLibrary
- * Method: overrideIOConfig
- * Signature: (Ljava/lang/String;I)I
- */
-JNIEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_communication_FRCNetworkCommunicationsLibrary_overrideIOConfig
- (JNIEnv *, jclass, jstring, jint)
-{
- assert(false);
-}
-/*
- * Class: edu_wpi_first_wpilibj_communication_FRC_NetworkCommunicationsLibrary
- * Method: signalResyncActionDone
- * Signature: ()V
- */
-JNIEXPORT void JNICALL Java_edu_wpi_first_wpilibj_communication_FRCNetworkCommunicationsLibrary_signalResyncActionDone
- (JNIEnv *, jclass)
-{
- assert(false);
-}
-/*
- * Class: edu_wpi_first_wpilibj_communication_FRC_NetworkCommunicationsLibrary
- * Method: setNewDataOccurRef
- * Signature: (I)V
- */
-JNIEXPORT void JNICALL Java_edu_wpi_first_wpilibj_communication_FRCNetworkCommunicationsLibrary_setNewDataOccurRef
- (JNIEnv *, jclass, jint)
-{
- assert(false);
-}
-/*
- * Class: edu_wpi_first_wpilibj_communication_FRC_NetworkCommunicationsLibrary
- * Method: setResyncOccurRef
- * Signature: (I)V
- */
-JNIEXPORT void JNICALL Java_edu_wpi_first_wpilibj_communication_FRCNetworkCommunicationsLibrary_setResyncOccurRef
- (JNIEnv *, jclass, jint)
-{
- assert(false);
-}
-/*
- * Class: edu_wpi_first_wpilibj_communication_FRC_NetworkCommunicationsLibrary
- * Method: FRC_NetworkCommunication_getVersionString
- * Signature: (Ljava/nio/ByteBuffer;)V
- */
-JNIEXPORT void JNICALL Java_edu_wpi_first_wpilibj_communication_FRCNetworkCommunicationsLibrary_FRCNetworkCommunicationGetVersionString
- (JNIEnv *, jclass, jobject)
-{
- assert(false);
-}
/*
* Class: edu_wpi_first_wpilibj_communication_FRC_NetworkCommunicationsLibrary
* Method: FRC_NetworkCommunication_observeUserProgramStarting
@@ -396,6 +232,18 @@ JNIEXPORT jstring JNICALL Java_edu_wpi_first_wpilibj_communication_FRCNetworkCom
return str;
}
+/*
+ * Class: edu_wpi_first_wpilibj_communication_FRCNetworkCommunicationsLibrary
+ * Method: HALGetJoystickAxisType
+ * Signature: (BB)I
+ */
+JNIEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_communication_FRCNetworkCommunicationsLibrary_HALGetJoystickAxisType
+ (JNIEnv *, jclass, jbyte joystickNum, jbyte axis)
+{
+ NETCOMM_LOG(logDEBUG) << "Calling HALGetJoystickAxisType";
+ return HALGetJoystickAxisType(joystickNum, axis);
+}
+
/*
* Class: edu_wpi_first_wpilibj_communication_FRCNetworkCommunicationsLibrary
* Method: setNewDataSem
@@ -408,194 +256,6 @@ JNIEXPORT void JNICALL Java_edu_wpi_first_wpilibj_communication_FRCNetworkCommun
HALSetNewDataSem((MULTIWAIT_ID)id);
}
-/*
- * Class: edu_wpi_first_wpilibj_communication_FRCNetworkCommunicationsLibrary
- * Method: JNIValueParameterTest
- * Signature: (ZBCSIJFD)V
- */
-JNIEXPORT void JNICALL Java_edu_wpi_first_wpilibj_communication_FRCNetworkCommunicationsLibrary_JNIValueParameterTest
- (JNIEnv *, jclass, jboolean booleanParam, jbyte byteParam, jchar charParam, jshort shortParam, jint intParam, jlong longParam, jfloat floatParam, jdouble doubleParam)
-{
- NETCOMM_LOG(logDEBUG) << "Boolean: " << booleanParam;
- NETCOMM_LOG(logDEBUG) << "Byte : " << byteParam;
- NETCOMM_LOG(logDEBUG) << "Char : " << charParam;
- NETCOMM_LOG(logDEBUG) << "Short : " << shortParam;
- NETCOMM_LOG(logDEBUG) << "Int : " << intParam;
- NETCOMM_LOG(logDEBUG) << "Long : " << longParam;
- NETCOMM_LOG(logDEBUG) << "Float : " << floatParam;
- NETCOMM_LOG(logDEBUG) << "Double : " << doubleParam;
-}
-
-/*
- * Class: edu_wpi_first_wpilibj_communication_FRCNetworkCommunicationsLibrary
- * Method: JNIValueReturnBooleanTest
- * Signature: (Z)Z
- */
-JNIEXPORT jboolean JNICALL Java_edu_wpi_first_wpilibj_communication_FRCNetworkCommunicationsLibrary_JNIValueReturnBooleanTest
- (JNIEnv *, jclass, jboolean booleanParam )
-{
- NETCOMM_LOG(logDEBUG) << "Boolean: " << booleanParam;
- return !booleanParam;
-}
-
-/*
- * Class: edu_wpi_first_wpilibj_communication_FRCNetworkCommunicationsLibrary
- * Method: JNIValueReturnByteTest
- * Signature: (B)B
- */
-JNIEXPORT jbyte JNICALL Java_edu_wpi_first_wpilibj_communication_FRCNetworkCommunicationsLibrary_JNIValueReturnByteTest
- (JNIEnv *, jclass, jbyte byteParam)
-{
- NETCOMM_LOG(logDEBUG) << "Byte: " << byteParam;
- return byteParam+1;
-}
-
-/*
- * Class: edu_wpi_first_wpilibj_communication_FRCNetworkCommunicationsLibrary
- * Method: JNIValueReturnCharTest
- * Signature: (C)C
- */
-JNIEXPORT jchar JNICALL Java_edu_wpi_first_wpilibj_communication_FRCNetworkCommunicationsLibrary_JNIValueReturnCharTest
- (JNIEnv *, jclass, jchar charParam)
-{
- NETCOMM_LOG(logDEBUG) << "Char: " << charParam;
- return charParam+1;
-}
-
-/*
- * Class: edu_wpi_first_wpilibj_communication_FRCNetworkCommunicationsLibrary
- * Method: JNIValueReturnShortTest
- * Signature: (S)S
- */
-JNIEXPORT jshort JNICALL Java_edu_wpi_first_wpilibj_communication_FRCNetworkCommunicationsLibrary_JNIValueReturnShortTest
- (JNIEnv *, jclass, jshort shortParam)
-{
- NETCOMM_LOG(logDEBUG) << "Short: " << shortParam;
- return shortParam+1;
-}
-
-/*
- * Class: edu_wpi_first_wpilibj_communication_FRCNetworkCommunicationsLibrary
- * Method: JNIValueReturnIntTest
- * Signature: (I)I
- */
-JNIEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_communication_FRCNetworkCommunicationsLibrary_JNIValueReturnIntTest
- (JNIEnv *, jclass, jint intParam)
-{
- NETCOMM_LOG(logDEBUG) << "Int: " << intParam;
- return intParam+1;
-}
-
-/*
- * Class: edu_wpi_first_wpilibj_communication_FRCNetworkCommunicationsLibrary
- * Method: JNIValueReturnLongTest
- * Signature: (J)J
- */
-JNIEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_communication_FRCNetworkCommunicationsLibrary_JNIValueReturnLongTest
- (JNIEnv *, jclass, jlong longParam)
-{
- NETCOMM_LOG(logDEBUG) << "Long: " << longParam;
- return longParam+1;
-}
-
-/*
- * Class: edu_wpi_first_wpilibj_communication_FRCNetworkCommunicationsLibrary
- * Method: JNIValueReturnFloatTest
- * Signature: (F)F
- */
-JNIEXPORT jfloat JNICALL Java_edu_wpi_first_wpilibj_communication_FRCNetworkCommunicationsLibrary_JNIValueReturnFloatTest
- (JNIEnv *, jclass, jfloat floatParam)
-{
- NETCOMM_LOG(logDEBUG) << "Float: " << floatParam;
- return floatParam/100.0f;
-}
-
-/*
- * Class: edu_wpi_first_wpilibj_communication_FRCNetworkCommunicationsLibrary
- * Method: JNIValueReturnDoubleTest
- * Signature: (D)D
- */
-JNIEXPORT jdouble JNICALL Java_edu_wpi_first_wpilibj_communication_FRCNetworkCommunicationsLibrary_JNIValueReturnDoubleTest
- (JNIEnv *, jclass, jdouble doubleParam)
-{
- NETCOMM_LOG(logDEBUG) << "Double: " << doubleParam;
- return doubleParam * 100.0;
-}
-
-/*
- * Class: edu_wpi_first_wpilibj_communication_FRCNetworkCommunicationsLibrary
- * Method: JNIObjectReturnString
- * Signature: (Ljava/lang/String;)Ljava/lang/String;
- */
-JNIEXPORT jstring JNICALL Java_edu_wpi_first_wpilibj_communication_FRCNetworkCommunicationsLibrary_JNIObjectReturnStringTest
- (JNIEnv * env, jclass, jstring stringParam)
-{
- const char * stringParamLocal = env->GetStringUTFChars(stringParam, NULL);
- NETCOMM_LOG(logDEBUG) << "String: " << stringParamLocal;
- env->ReleaseStringUTFChars(stringParam,stringParamLocal);
-
- char returnStringLocal[] = "this is the return string";
-
- return env->NewStringUTF(returnStringLocal);
-}
-
-/*
- * Class: edu_wpi_first_wpilibj_communication_FRCNetworkCommunicationsLibrary
- * Method: JNIObjectReturnByteBufferTest
- * Signature: (Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
- */
-JNIEXPORT jobject JNICALL Java_edu_wpi_first_wpilibj_communication_FRCNetworkCommunicationsLibrary_JNIObjectReturnByteBufferTest
- (JNIEnv * env, jclass, jobject byteArrayIn )
-{
- jbyte * byteArray = (jbyte*)env->GetDirectBufferAddress(byteArrayIn);
- NETCOMM_LOG(logDEBUG) << "Ptr: " << (long)byteArray;
- jlong byteArrayLength = env->GetDirectBufferCapacity(byteArrayIn);
- NETCOMM_LOG(logDEBUG) << "Capacity: " << byteArrayLength;
- NETCOMM_LOG(logDEBUG) << "Byte0: " << (short)byteArray[0];
- NETCOMM_LOG(logDEBUG) << "Byte1: " << (short)byteArray[1];
- NETCOMM_LOG(logDEBUG) << "Byte2: " << (short)byteArray[2];
- NETCOMM_LOG(logDEBUG) << "Byte3: " << (short)byteArray[3];
-
- jbyte * returnByteArray = new jbyte[4];
- returnByteArray[0] = byteArray[0];
- returnByteArray[1] = byteArray[1];
- returnByteArray[2] = byteArray[2];
- returnByteArray[3] = byteArray[3];
-
- return env->NewDirectByteBuffer(returnByteArray, 4);
-}
-
-/*
- * Class: edu_wpi_first_wpilibj_communication_FRCNetworkCommunicationsLibrary
- * Method: JNIObjectAndParamReturnIntBufferTest
- * Signature: (Ljava/nio/IntBuffer;)Ljava/nio/ByteBuffer;
- */
-JNIEXPORT jobject JNICALL Java_edu_wpi_first_wpilibj_communication_FRCNetworkCommunicationsLibrary_JNIObjectAndParamReturnIntBufferTest
- (JNIEnv * env, jclass, jobject intArrayIn)
-{
- jint * intArray = (jint*)env->GetDirectBufferAddress(intArrayIn);
- jbyte * byteArray = (jbyte*)env->GetDirectBufferAddress(intArrayIn);
- NETCOMM_LOG(logDEBUG) << "Ptr: " << (long)intArray;
- jlong byteArrayLength = env->GetDirectBufferCapacity(intArrayIn);
- NETCOMM_LOG(logDEBUG) << "Capacity: " << byteArrayLength;
- NETCOMM_LOG(logDEBUG) << "Int0: " << intArray[0];
- NETCOMM_LOG(logDEBUG) << "Byte0: " << (short)byteArray[0];
- NETCOMM_LOG(logDEBUG) << "Byte1: " << (short)byteArray[1];
- NETCOMM_LOG(logDEBUG) << "Byte2: " << (short)byteArray[2];
- NETCOMM_LOG(logDEBUG) << "Byte3: " << (short)byteArray[3];
-
- // increment the param
- intArray[0]++;
-
- jbyte * returnByteArray = new jbyte[4];
- returnByteArray[0] = byteArray[0];
- returnByteArray[1] = byteArray[1];
- returnByteArray[2] = byteArray[2];
- returnByteArray[3] = byteArray[3];
-
- return env->NewDirectByteBuffer(returnByteArray, 4);
-}
-
/*
* Class: edu_wpi_first_wpilibj_communication_FRCNetworkCommunicationsLibrary
diff --git a/wpilibj/src/athena/java/edu/wpi/first/wpilibj/communication/FRCNetworkCommunicationsLibrary.java b/wpilibj/src/athena/java/edu/wpi/first/wpilibj/communication/FRCNetworkCommunicationsLibrary.java
index 4a1769e6a2..abb3b06728 100644
--- a/wpilibj/src/athena/java/edu/wpi/first/wpilibj/communication/FRCNetworkCommunicationsLibrary.java
+++ b/wpilibj/src/athena/java/edu/wpi/first/wpilibj/communication/FRCNetworkCommunicationsLibrary.java
@@ -7,746 +7,136 @@ import java.nio.ShortBuffer;
import edu.wpi.first.wpilibj.hal.JNIWrapper;
/**
- * JNA Wrapper for library FRC_NetworkCommunications
- * This file was autogenerated by JNAerator,
- * a tool written by Olivier Chafik that uses a few
- * opensource projects..
- * For help, please visit NativeLibs4Java , Rococoa, or JNA.
+ * JNI Wrapper for library FRC_NetworkCommunications
*/
public class FRCNetworkCommunicationsLibrary extends JNIWrapper {
- // public static final String JNA_LIBRARY_NAME =
- // LibraryExtractor.getLibraryPath("FRC_NetworkCommunications", true,
- // FRC_NetworkCommunicationsLibrary.class);
- // public static final NativeLibrary JNA_NATIVE_LIB =
- // NativeLibrary.getInstance(FRC_NetworkCommunicationsLibrary.JNA_LIBRARY_NAME,
- // MangledFunctionMapper.DEFAULT_OPTIONS);
- // static {
- // System.loadLibrary("JNIWrappers");
- // Native.register(FRC_NetworkCommunicationsLibrary.class,
- // FRC_NetworkCommunicationsLibrary.JNA_NATIVE_LIB);
- // }
- /**
- * native declaration : src\main\include\NetworkCommunication\LoadOut.h
- * enum values
- */
+ /** Module type from LoadOut.h */
public static interface tModuleType {
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\LoadOut.h:9
- */
public static final int kModuleType_Unknown = 0x00;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\LoadOut.h:10
- */
public static final int kModuleType_Analog = 0x01;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\LoadOut.h:11
- */
public static final int kModuleType_Digital = 0x02;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\LoadOut.h:12
- */
public static final int kModuleType_Solenoid = 0x03;
};
- /**
- * native declaration : src\main\include\NetworkCommunication\LoadOut.h
- * enum values
- */
+ /** Target class from LoadOut.h */
public static interface tTargetClass {
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\LoadOut.h:16
- */
public static final int kTargetClass_Unknown = 0x00;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\LoadOut.h:17
- */
public static final int kTargetClass_FRC1 = 0x10;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\LoadOut.h:18
- */
public static final int kTargetClass_FRC2 = 0x20;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\LoadOut.h:19
- */
public static final int kTargetClass_FRC2_Analog =
- (int) FRCNetworkCommunicationsLibrary.tTargetClass.kTargetClass_FRC2
- | (int) FRCNetworkCommunicationsLibrary.tModuleType.kModuleType_Analog;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\LoadOut.h:20
- */
+ kTargetClass_FRC2 | FRCNetworkCommunicationsLibrary.tModuleType.kModuleType_Analog;
public static final int kTargetClass_FRC2_Digital =
- (int) FRCNetworkCommunicationsLibrary.tTargetClass.kTargetClass_FRC2
- | (int) FRCNetworkCommunicationsLibrary.tModuleType.kModuleType_Digital;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\LoadOut.h:21
- */
+ kTargetClass_FRC2 | FRCNetworkCommunicationsLibrary.tModuleType.kModuleType_Digital;
public static final int kTargetClass_FRC2_Solenoid =
- (int) FRCNetworkCommunicationsLibrary.tTargetClass.kTargetClass_FRC2
- | (int) FRCNetworkCommunicationsLibrary.tModuleType.kModuleType_Solenoid;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\LoadOut.h:22
- */
+ kTargetClass_FRC2 | FRCNetworkCommunicationsLibrary.tModuleType.kModuleType_Solenoid;
public static final int kTargetClass_FamilyMask = 0xF0;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\LoadOut.h:23
- */
public static final int kTargetClass_ModuleMask = 0x0F;
};
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h
- * enum values
- */
+ /** Resource types from UsageReporting.h */
public static interface tResourceType {
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:10
- */
public static final int kResourceType_Controller = 0;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:11
- */
public static final int kResourceType_Module = 1;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:12
- */
public static final int kResourceType_Language = 2;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:13
- */
public static final int kResourceType_CANPlugin = 3;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:14
- */
public static final int kResourceType_Accelerometer = 4;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:15
- */
public static final int kResourceType_ADXL345 = 5;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:16
- */
public static final int kResourceType_AnalogChannel = 6;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:17
- */
public static final int kResourceType_AnalogTrigger = 7;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:18
- */
public static final int kResourceType_AnalogTriggerOutput = 8;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:19
- */
public static final int kResourceType_CANJaguar = 9;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:20
- */
public static final int kResourceType_Compressor = 10;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:21
- */
public static final int kResourceType_Counter = 11;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:22
- */
public static final int kResourceType_Dashboard = 12;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:23
- */
public static final int kResourceType_DigitalInput = 13;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:24
- */
public static final int kResourceType_DigitalOutput = 14;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:25
- */
public static final int kResourceType_DriverStationCIO = 15;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:26
- */
public static final int kResourceType_DriverStationEIO = 16;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:27
- */
public static final int kResourceType_DriverStationLCD = 17;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:28
- */
public static final int kResourceType_Encoder = 18;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:29
- */
public static final int kResourceType_GearTooth = 19;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:30
- */
public static final int kResourceType_Gyro = 20;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:31
- */
public static final int kResourceType_I2C = 21;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:32
- */
public static final int kResourceType_Framework = 22;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:33
- */
public static final int kResourceType_Jaguar = 23;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:34
- */
public static final int kResourceType_Joystick = 24;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:35
- */
public static final int kResourceType_Kinect = 25;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:36
- */
public static final int kResourceType_KinectStick = 26;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:37
- */
public static final int kResourceType_PIDController = 27;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:38
- */
public static final int kResourceType_Preferences = 28;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:39
- */
public static final int kResourceType_PWM = 29;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:40
- */
public static final int kResourceType_Relay = 30;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:41
- */
public static final int kResourceType_RobotDrive = 31;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:42
- */
public static final int kResourceType_SerialPort = 32;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:43
- */
public static final int kResourceType_Servo = 33;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:44
- */
public static final int kResourceType_Solenoid = 34;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:45
- */
public static final int kResourceType_SPI = 35;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:46
- */
public static final int kResourceType_Task = 36;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:47
- */
public static final int kResourceType_Ultrasonic = 37;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:48
- */
public static final int kResourceType_Victor = 38;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:49
- */
public static final int kResourceType_Button = 39;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:50
- */
public static final int kResourceType_Command = 40;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:51
- */
public static final int kResourceType_AxisCamera = 41;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:52
- */
public static final int kResourceType_PCVideoServer = 42;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:53
- */
public static final int kResourceType_SmartDashboard = 43;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:54
- */
public static final int kResourceType_Talon = 44;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:55
- */
public static final int kResourceType_HiTechnicColorSensor = 45;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:56
- */
public static final int kResourceType_HiTechnicAccel = 46;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:57
- */
public static final int kResourceType_HiTechnicCompass = 47;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:58
- */
public static final int kResourceType_SRF08 = 48;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:59
- */
public static final int kResourceType_AnalogOutput = 49;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:60
- */
public static final int kResourceType_VictorSP = 50;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:61
- */
public static final int kResourceType_TalonSRX = 51;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:62
- */
public static final int kResourceType_CANTalonSRX = 52;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:63
- */
public static final int kResourceType_ADXL362 = 53;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:64
- */
public static final int kResourceType_ADXRS450 = 54;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:65
- */
public static final int kResourceType_RevSPARK = 55;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:66
- */
public static final int kResourceType_MindsensorsSD540 = 56;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:67
- */
public static final int kResourceType_DigitalFilter = 57;
};
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h
- * enum values
- */
+ /** Instances from UsageReporting.h */
public static interface tInstances {
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:63
- */
public static final int kLanguage_LabVIEW = 1;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:64
- */
public static final int kLanguage_CPlusPlus = 2;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:65
- */
public static final int kLanguage_Java = 3;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:66
- */
public static final int kLanguage_Python = 4;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:68
- */
+
public static final int kCANPlugin_BlackJagBridge = 1;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:69
- */
public static final int kCANPlugin_2CAN = 2;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:71
- */
+
public static final int kFramework_Iterative = 1;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:72
- */
public static final int kFramework_Sample = 2;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:73
- */
public static final int kFramework_CommandControl = 3;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:74
- */
+
public static final int kRobotDrive_ArcadeStandard = 1;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:75
- */
public static final int kRobotDrive_ArcadeButtonSpin = 2;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:76
- */
public static final int kRobotDrive_ArcadeRatioCurve = 3;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:77
- */
public static final int kRobotDrive_Tank = 4;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:78
- */
public static final int kRobotDrive_MecanumPolar = 5;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:79
- */
public static final int kRobotDrive_MecanumCartesian = 6;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:81
- */
+
public static final int kDriverStationCIO_Analog = 1;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:82
- */
public static final int kDriverStationCIO_DigitalIn = 2;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:83
- */
public static final int kDriverStationCIO_DigitalOut = 3;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:85
- */
+
public static final int kDriverStationEIO_Acceleration = 1;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:86
- */
public static final int kDriverStationEIO_AnalogIn = 2;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:87
- */
public static final int kDriverStationEIO_AnalogOut = 3;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:88
- */
public static final int kDriverStationEIO_Button = 4;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:89
- */
public static final int kDriverStationEIO_LED = 5;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:90
- */
public static final int kDriverStationEIO_DigitalIn = 6;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:91
- */
public static final int kDriverStationEIO_DigitalOut = 7;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:92
- */
public static final int kDriverStationEIO_FixedDigitalOut = 8;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:93
- */
public static final int kDriverStationEIO_PWM = 9;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:94
- */
public static final int kDriverStationEIO_Encoder = 10;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:95
- */
public static final int kDriverStationEIO_TouchSlider = 11;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:97
- */
+
public static final int kADXL345_SPI = 1;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:98
- */
public static final int kADXL345_I2C = 2;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:100
- */
+
public static final int kCommand_Scheduler = 1;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:102
- */
+
public static final int kSmartDashboard_Instance = 1;
};
- /**
- * native declaration : src\main\include\NetworkCommunication\FRCComm.h
- */
- public static final int kFRC_NetworkCommunication_DynamicType_DSEnhancedIO_Input = 17;
- /**
- * native declaration : src\main\include\NetworkCommunication\FRCComm.h
- */
- public static final int kFRC_NetworkCommunication_DynamicType_Kinect_Vertices1 = 21;
- /**
- * native declaration : src\main\include\NetworkCommunication\FRCComm.h
- */
- public static final int SYS_STATUS_DATA_SIZE = 44;
- /**
- * native declaration : src\main\include\NetworkCommunication\FRCComm.h
- */
- public static final int kFRC_NetworkCommunication_DynamicType_Kinect_Custom = 25;
- /**
- * native declaration : src\main\include\NetworkCommunication\FRCComm.h
- */
- public static final int kFRC_NetworkCommunication_DynamicType_Kinect_Vertices2 = 23;
- /**
- * native declaration : src\main\include\NetworkCommunication\FRCComm.h
- */
- public static final int kFRC_NetworkCommunication_DynamicType_Kinect_Header = 19;
- /**
- * native declaration : src\main\include\NetworkCommunication\FRCComm.h
- */
- public static final int kFRC_NetworkCommunication_DynamicType_Kinect_Joystick = 24;
- /**
- * native declaration : src\main\include\NetworkCommunication\FRCComm.h
- */
- public static final int IO_CONFIG_DATA_SIZE = 32;
- /**
- * native declaration : src\main\include\NetworkCommunication\LoadOut.h
- */
- public static final int kMaxModuleNumber = 2;
- /**
- * native declaration : src\main\include\NetworkCommunication\FRCComm.h
- */
- public static final int kFRC_NetworkCommunication_DynamicType_DSEnhancedIO_Output = 18;
- /**
- * native declaration : src\main\include\NetworkCommunication\FRCComm.h
- */
- public static final int kFRC_NetworkCommunication_DynamicType_Kinect_Extra2 = 22;
- /**
- * native declaration : src\main\include\NetworkCommunication\FRCComm.h
- */
- public static final int kFRC_NetworkCommunication_DynamicType_Kinect_Extra1 = 20;
- /**
- * native declaration : src\main\include\NetworkCommunication\FRCComm.h
- */
- public static final int USER_DS_LCD_DATA_SIZE = 128;
- /**
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h
- */
- public static final int kUsageReporting_version = 1;
- /**
- * native declaration : src\main\include\NetworkCommunication\FRCComm.h
- */
- public static final int USER_STATUS_DATA_SIZE = (984 - 32 - 44);
-
- /**
- * Original signature :
- * uint32_t FRC_NetworkCommunication_nAICalibration_getLSBWeight(const uint32_t, const uint32_t, int32_t*)
- *
- * native declaration :
- * src\main\include\NetworkCommunication\AICalibration.h:7
- *$
- * @deprecated use the safer methods
- * {@link #FRC_NetworkCommunication_nAICalibration_getLSBWeight(int, int, java.nio.IntBuffer)}
- * and
- * {@link #FRC_NetworkCommunication_nAICalibration_getLSBWeight(int, int, com.sun.jna.ptr.IntByReference)}
- * instead
- */
- // @Deprecated
- // public static native int
- // FRC_NetworkCommunication_nAICalibration_getLSBWeight(int aiSystemIndex, int
- // channel, Integer status);
- /**
- * Original signature :
- * uint32_t FRC_NetworkCommunication_nAICalibration_getLSBWeight(const uint32_t, const uint32_t, int32_t*)
- *
- * native declaration :
- * src\main\include\NetworkCommunication\AICalibration.h:7
- */
- public static native int FRCNetworkCommunicationAICalibrationGetLSBWeight(int aiSystemIndex,
- int channel, Integer status);
-
- /**
- * Original signature :
- * int32_t FRC_NetworkCommunication_nAICalibration_getOffset(const uint32_t, const uint32_t, int32_t*)
- *
- * native declaration :
- * src\main\include\NetworkCommunication\AICalibration.h:8
- *$
- * @deprecated use the safer methods
- * {@link #FRC_NetworkCommunication_nAICalibration_getOffset(int, int, java.nio.IntBuffer)}
- * and
- * {@link #FRC_NetworkCommunication_nAICalibration_getOffset(int, int, com.sun.jna.ptr.IntByReference)}
- * instead
- */
- // @Deprecated
- // public static native int
- // FRC_NetworkCommunication_nAICalibration_getOffset(int aiSystemIndex, int
- // channel, Integer status);
- /**
- * Original signature :
- * int32_t FRC_NetworkCommunication_nAICalibration_getOffset(const uint32_t, const uint32_t, int32_t*)
- *
- * native declaration :
- * src\main\include\NetworkCommunication\AICalibration.h:8
- */
- public static native int FRCNetworkCommunicationAICalibrationGetOffset(int aiSystemIndex,
- int channel, Integer status);
-
- /**
- * Original signature : tTargetClass getTargetClass()
- * native declaration :
- * src\main\include\NetworkCommunication\LoadOut.h:25
- */
- public static native int getTargetClass();
-
- /**
- * Original signature :
- * uint32_t FRC_NetworkCommunication_nLoadOut_getModulePresence(uint32_t, uint8_t)
- *
- * native declaration :
- * src\main\include\NetworkCommunication\LoadOut.h:32
- */
- public static native int FRCNetworkCommunicationLoadOutGetModulePresence(int moduleType,
- byte moduleNumber);
-
- /**
- * Original signature :
- * uint32_t FRC_NetworkCommunication_nLoadOut_getTargetClass()
- * native declaration :
- * src\main\include\NetworkCommunication\LoadOut.h:33
- */
- public static native int FRCNetworkCommunicationLoadOutGetTargetClass();
-
- /**
- * Original signature :
- * STATUS moduleNameFindBySymbolName(const char*, char*)
- *$
- * @param symbol symbol name to look for
- * @param module where to return module name
- * native declaration :
- * src\main\include\NetworkCommunication\symModuleLink.h:6
- * @deprecated use the safer methods
- * {@link #moduleNameFindBySymbolName(java.lang.String, java.nio.ByteBuffer)}
- * and
- * {@link #moduleNameFindBySymbolName(com.sun.jna.Pointer, com.sun.jna.Pointer)}
- * instead
- */
- // @Deprecated
- // public static native FRC_NetworkCommunicationsLibrary.STATUS
- // moduleNameFindBySymbolName(Pointer symbol, Pointer module);
- /**
- * Original signature :
- * STATUS moduleNameFindBySymbolName(const char*, char*)
- *$
- * @param symbol symbol name to look for
- * @param module where to return module name
- * native declaration :
- * src\main\include\NetworkCommunication\symModuleLink.h:6
- */
- // public static native FRC_NetworkCommunicationsLibrary.STATUS
- // moduleNameFindBySymbolName(String symbol, ByteBuffer module);
/**
* Report the usage of a resource of interest.
*
@@ -762,184 +152,12 @@ public class FRCNetworkCommunicationsLibrary extends JNIWrapper {
* you to change the feature string.
* Original signature :
* uint32_t report(tResourceType, uint8_t, uint8_t, const char*)
- *
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:113
- * @deprecated use the safer methods
- * {@link #report(int, byte, byte, java.lang.String)} and
- * {@link #report(int, byte, byte, com.sun.jna.Pointer)} instead
- */
- // @Deprecated
- // public static native int report(int resource, byte instanceNumber, byte
- // context, Pointer feature);
- /**
- * Report the usage of a resource of interest.
- *
- *
- *$
- * @param resource one of the values in the tResourceType above (max value
- * 51).
- * @param instanceNumber an index that identifies the resource instance.
- * @param context an optional additional context number for some cases (such
- * as module number). Set to 0 to omit.
- * @param feature a string to be included describing features in use on a
- * specific resource. Setting the same resource more than once allows
- * you to change the feature string.
- * Original signature :
- * uint32_t report(tResourceType, uint8_t, uint8_t, const char*)
- *
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:113
- */
- public static native int report(int resource, byte instanceNumber, byte context, String feature);
-
- /**
- * Original signature :
- * uint32_t FRC_NetworkCommunication_nUsageReporting_report(uint8_t, uint8_t, uint8_t, const char*)
- *
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:120
- *$
- * @deprecated use the safer methods
- * {@link #FRC_NetworkCommunication_nUsageReporting_report(byte, byte, byte, java.lang.String)}
- * and
- * {@link #FRC_NetworkCommunication_nUsageReporting_report(byte, byte, byte, com.sun.jna.Pointer)}
- * instead
- */
- // @Deprecated
- // public static native int
- // FRC_NetworkCommunication_nUsageReporting_report(byte resource, byte
- // instanceNumber, byte context, Pointer feature);
- /**
- * Original signature :
- * uint32_t FRC_NetworkCommunication_nUsageReporting_report(uint8_t, uint8_t, uint8_t, const char*)
- *
- * native declaration :
- * src\main\include\NetworkCommunication\UsageReporting.h:120
*/
public static native int FRCNetworkCommunicationUsageReportingReport(byte resource,
byte instanceNumber, byte context, String feature);
- /**
- * Original signature :
- * void getFPGAHardwareVersion(uint16_t*, uint32_t*)
- * native declaration :
- * src\main\include\NetworkCommunication\FRCComm.h:124
- *$
- * @deprecated use the safer methods
- * {@link #getFPGAHardwareVersion(java.nio.ShortBuffer, java.nio.IntBuffer)}
- * and
- * {@link #getFPGAHardwareVersion(com.sun.jna.ptr.ShortByReference, com.sun.jna.ptr.IntByReference)}
- * instead
- */
- // @Deprecated
- // public static native void getFPGAHardwareVersion(ShortByReference
- // fpgaVersion, IntByReference fpgaRevision);
- /**
- * Original signature :
- * void getFPGAHardwareVersion(uint16_t*, uint32_t*)
- * native declaration :
- * src\main\include\NetworkCommunication\FRCComm.h:124
- */
- public static native void getFPGAHardwareVersion(ShortBuffer fpgaVersion, IntBuffer fpgaRevision);
-
- /**
- * Original signature : int setErrorData(const char*, int, int)
- * native declaration :
- * src\main\include\NetworkCommunication\FRCComm.h:136
- *$
- * @deprecated use the safer methods
- * {@link #setErrorData(java.lang.String, int, int)} and
- * {@link #setErrorData(com.sun.jna.Pointer, int, int)} instead
- */
- // @Deprecated
- // public static native int setErrorData(Pointer errors, int errorsLength, int
- // wait_ms);
- /**
- * Original signature : int setErrorData(const char*, int, int)
- * native declaration :
- * src\main\include\NetworkCommunication\FRCComm.h:136
- */
- public static native int setErrorData(String errors, int errorsLength, int wait_ms);
-
- /**
- * Original signature : int overrideIOConfig(const char*, int)
- * native declaration :
- * src\main\include\NetworkCommunication\FRCComm.h:138
- *$
- * @deprecated use the safer methods
- * {@link #overrideIOConfig(java.lang.String, int)} and
- * {@link #overrideIOConfig(com.sun.jna.Pointer, int)} instead
- */
- // @Deprecated
- // public static native int overrideIOConfig(String ioConfig, int wait_ms);
- /**
- * Original signature : int overrideIOConfig(const char*, int)
- * native declaration :
- * src\main\include\NetworkCommunication\FRCComm.h:138
- */
- public static native int overrideIOConfig(String ioConfig, int wait_ms);
-
- /**
- * Original signature : void setNewDataSem(pthread_mutex_t*)
- * native declaration :
- * src\main\include\NetworkCommunication\FRCComm.h:147
- */
public static native void setNewDataSem(long mutexId);
- /**
- * Original signature : void setResyncSem(pthread_mutex_t*)
- * native declaration :
- * src\main\include\NetworkCommunication\FRCComm.h:148
- */
- // public static native void
- // setResyncSem(FRC_NetworkCommunicationsLibrary.pthread_mutex_t
- // pthread_mutex_tPtr1);
- /**
- * Original signature : void signalResyncActionDone()
- * native declaration :
- * src\main\include\NetworkCommunication\FRCComm.h:150
- */
- public static native void signalResyncActionDone();
-
- /**
- * this uint32_t is really a LVRefNum
- * Original signature : void setNewDataOccurRef(uint32_t)
- * native declaration :
- * src\main\include\NetworkCommunication\FRCComm.h:154
- */
- public static native void setNewDataOccurRef(int refnum);
-
- /**
- * Original signature : void setResyncOccurRef(uint32_t)
- * native declaration :
- * src\main\include\NetworkCommunication\FRCComm.h:156
- */
- public static native void setResyncOccurRef(int refnum);
-
- /**
- * Original signature :
- * void FRC_NetworkCommunication_getVersionString(char*)
- * native declaration :
- * src\main\include\NetworkCommunication\FRCComm.h:159
- *$
- * @deprecated use the safer methods
- * {@link #FRC_NetworkCommunication_getVersionString(java.nio.ByteBuffer)}
- * and
- * {@link #FRC_NetworkCommunication_getVersionString(com.sun.jna.Pointer)}
- * instead
- */
- // @Deprecated
- // public static native void FRC_NetworkCommunication_getVersionString(Pointer
- // version);
- /**
- * Original signature :
- * void FRC_NetworkCommunication_getVersionString(char*)
- * native declaration :
- * src\main\include\NetworkCommunication\FRCComm.h:159
- */
- public static native void FRCNetworkCommunicationGetVersionString(ByteBuffer version);
-
public static native void FRCNetworkCommunicationObserveUserProgramStarting();
public static native void FRCNetworkCommunicationObserveUserProgramDisabled();
@@ -999,6 +217,8 @@ public class FRCNetworkCommunicationsLibrary extends JNIWrapper {
public static native String HALGetJoystickName(byte joystickNum);
+ public static native int HALGetJoystickAxisType(byte joystickNum, byte axis);
+
public static native float HALGetMatchTime();
public static native boolean HALGetSystemActive();