mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Update to 2018_v4 image and new build system. (#598)
* Revert "Force OpenCV to 3.1.0 (#602)"
This reverts commit 50ed55e8e2.
* Removes Simulation
* Removes old build system
* Removes old gtest
* Adds new gmock and gtest
* Updates to new ni-libraries
* removes MyRobot (to be replaced)
* moves files to new location
* Adds new sim backend and new test executables
* updates .styleguide and .gitignore
* Changes cpp WPILibVersion to a function
MSVC throws an AV with the old version.
* Disables USBCamera on all systems except for linux
* 2018 NI Libraries
* New build system
This commit is contained in:
committed by
Peter Johnson
parent
50ed55e8e2
commit
e1195e8b9d
@@ -133,11 +133,11 @@ public class PIDTest extends AbstractComsSetup {
|
||||
assertFalse("PID did not begin disabled", m_controller.isEnabled());
|
||||
assertEquals("PID.getError() did not start at " + setpoint, setpoint,
|
||||
m_controller.getError(), 0);
|
||||
assertEquals(k_p, m_table.getNumber("p"), 0);
|
||||
assertEquals(k_i, m_table.getNumber("i"), 0);
|
||||
assertEquals(k_d, m_table.getNumber("d"), 0);
|
||||
assertEquals(setpoint, m_table.getNumber("setpoint"), 0);
|
||||
assertFalse(m_table.getBoolean("enabled"));
|
||||
assertEquals(k_p, m_table.getNumber("p", 9999999), 0);
|
||||
assertEquals(k_i, m_table.getNumber("i", 9999999), 0);
|
||||
assertEquals(k_d, m_table.getNumber("d", 9999999), 0);
|
||||
assertEquals(setpoint, m_table.getNumber("setpoint", 9999999), 0);
|
||||
assertFalse(m_table.getBoolean("enabled", true));
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -148,11 +148,11 @@ public class PIDTest extends AbstractComsSetup {
|
||||
m_controller.setSetpoint(setpoint);
|
||||
m_controller.enable();
|
||||
Timer.delay(.5);
|
||||
assertTrue(m_table.getBoolean("enabled"));
|
||||
assertTrue(m_table.getBoolean("enabled", false));
|
||||
assertTrue(m_controller.isEnabled());
|
||||
assertThat(0.0, is(not(me.getMotor().get())));
|
||||
m_controller.reset();
|
||||
assertFalse(m_table.getBoolean("enabled"));
|
||||
assertFalse(m_table.getBoolean("enabled", true));
|
||||
assertFalse(m_controller.isEnabled());
|
||||
assertEquals(0, me.getMotor().get(), 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user