mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
refactored HAL library
builds two libraries, Athena and Desktop. Simulation should use Desktop, Robots should use Athena Also: - copied Driverstation and Joystick from Devices into Sim - Descreased dependency of pthreads in JNI. - removed Simulation ifdef from non simulation - added missing decprecated attribute for msvc - removed usage reporting from sim - removed unused pom.xml and constexpr Change-Id: If8eb540f9434dce17c77a245fda6985713e80b2d
This commit is contained in:
@@ -399,9 +399,9 @@ JNIEXPORT jstring JNICALL Java_edu_wpi_first_wpilibj_communication_FRCNetworkCom
|
||||
JNIEXPORT void JNICALL Java_edu_wpi_first_wpilibj_communication_FRCNetworkCommunicationsLibrary_setNewDataSem
|
||||
(JNIEnv * env, jclass, jobject id )
|
||||
{
|
||||
MULTIWAIT_ID* javaId = (MULTIWAIT_ID*)env->GetDirectBufferAddress(id);
|
||||
NETCOMM_LOG(logDEBUG) << "Mutex Ptr = " << *javaId;
|
||||
HALSetNewDataSem(*javaId);
|
||||
MULTIWAIT_ID javaId = (MULTIWAIT_ID)env->GetDirectBufferAddress(id);
|
||||
NETCOMM_LOG(logDEBUG) << "Mutex Ptr = " << javaId;
|
||||
HALSetNewDataSem(javaId->native_handle());
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -640,11 +640,11 @@ JNIEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_communication_FRCNetworkCommun
|
||||
{
|
||||
const char * errorStr = env->GetStringUTFChars(error, NULL);
|
||||
jsize length = env->GetStringUTFLength(error);
|
||||
|
||||
|
||||
NETCOMM_LOG(logDEBUG) << "Set Error: " << errorStr;
|
||||
NETCOMM_LOG(logDEBUG) << "Length: " << length;
|
||||
jint returnValue = HALSetErrorData(errorStr, (jint) length, 0);
|
||||
env->ReleaseStringUTFChars(error,errorStr);
|
||||
return returnValue;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user