mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
Rewrite CANTalon JNI layer.
Also update C++ and C functions from generator script output. Change-Id: I55ce71c609ba5f5811db2ae78786ab7013a04b69
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user