Init HAL from WPILibJ to remove segfaults

Change-Id: I28980218ffab440cf17c5a6bb953f52a3458fa6a
This commit is contained in:
Brad Miller
2014-04-14 14:25:47 -04:00
parent e4be9eb098
commit a42a7943bc
2 changed files with 3 additions and 1 deletions

View File

@@ -238,6 +238,8 @@ public abstract class RobotBase {
// System.out.println("ByteBuffer2 as Int" + returnBuffer2.getInt(0));
/* End JNI Testing */
FRCNetworkCommunicationsLibrary.FRCNetworkCommunicationReserve();
FRCNetworkCommunicationsLibrary.FRCNetworkCommunicationObserveUserProgramStarting();
UsageReporting.report(tResourceType.kResourceType_Language, tInstances.kLanguage_Java);

View File

@@ -71,7 +71,7 @@ public class RobotDrive implements MotorSafety, IUtility {
protected SpeedController m_rearLeftMotor;
protected SpeedController m_rearRightMotor;
protected boolean m_allocatedSpeedControllers;
protected boolean m_isCANInitialized = true;
protected boolean m_isCANInitialized = false;//TODO: fix can
protected static boolean kArcadeRatioCurve_Reported = false;
protected static boolean kTank_Reported = false;
protected static boolean kArcadeStandard_Reported = false;