Adds several more tests to the PID Test Class

Adds Logger output to tests when they fail to allow the rest of the tests to run while you can follow the failure stack trace. This allows you to begin working on fixing the failure before the remainder of the tests have run.

Change-Id: I84adfad0b31b166f027d0bf9797a23856dd02f97
This commit is contained in:
Jonathan Leitschuh
2014-06-13 15:03:38 -04:00
parent fdfc33a380
commit aa3b24092a
20 changed files with 237 additions and 42 deletions

View File

@@ -126,7 +126,7 @@ TEST_P(MotorEncoderTest, PIDController) {
Reset();
PIDController pid(0.003f, 0.001f, 0.0f, m_encoder, m_speedController);
pid.SetAbsoluteTolerance(15.0f);
pid.SetAbsoluteTolerance(20.0f);
pid.SetOutputRange(-0.2f, 0.2f);
pid.SetSetpoint(2500);