Rewrite CANTalon JNI layer.

Also update C++ and C functions from generator script output.

Change-Id: I55ce71c609ba5f5811db2ae78786ab7013a04b69
This commit is contained in:
Peter Johnson
2015-11-30 14:42:02 -05:00
parent cd5765559a
commit 1b03f818ad
22 changed files with 4067 additions and 8658 deletions

View File

@@ -18,8 +18,7 @@ import org.junit.Test;
import edu.wpi.first.wpilibj.fixtures.SampleFixture;
import edu.wpi.first.wpilibj.test.AbstractComsSetup;
import edu.wpi.first.wpilibj.hal.CanTalonSRX;
import edu.wpi.first.wpilibj.hal.SWIGTYPE_p_UINT8;
import edu.wpi.first.wpilibj.CANTalon;
/**
* Sample test for a sample PID controller. This demonstrates the general
@@ -63,10 +62,10 @@ public class SampleTest extends AbstractComsSetup {
*/
@Test
public void test() {
CanTalonSRX cantalon = new CanTalonSRX();
cantalon.Set(0.5);
CANTalon cantalon = new CANTalon(0);
cantalon.set(0.5);
Timer.delay(0.5);
cantalon.Set(0.0);
cantalon.set(0.0);
assertTrue(true);
}