mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +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:
@@ -123,7 +123,7 @@ public class DriverStation implements RobotState.Interface {
|
||||
private void task() {
|
||||
int safetyCounter = 0;
|
||||
while (m_thread_keepalive) {
|
||||
HALUtil.takeMultiWait(m_packetDataAvailableSem, m_packetDataAvailableMutex, 0);
|
||||
HALUtil.takeMultiWait(m_packetDataAvailableSem, m_packetDataAvailableMutex);
|
||||
synchronized (this) {
|
||||
getData();
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ public class HALUtil extends JNIWrapper {
|
||||
|
||||
public static native void deleteMultiWait(ByteBuffer sem);
|
||||
|
||||
public static native byte takeMultiWait(ByteBuffer sem, ByteBuffer m, int timeOut);
|
||||
public static native byte takeMultiWait(ByteBuffer sem, ByteBuffer m);
|
||||
|
||||
public static native short getFPGAVersion(IntBuffer status);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user