Fixed some typos in the comments of MotorEncoderFixture.java, a method name in CANMotorEncoderFixture.java, and the README files

Change-Id: I87d982068f3e7cdcce6e5b06c34a7ef326f5eae0
This commit is contained in:
Tyler Veness
2015-11-23 00:35:34 -08:00
parent 75d1891a57
commit 5cee85f921
5 changed files with 11 additions and 11 deletions

View File

@@ -36,7 +36,7 @@ public abstract class CANMotorEncoderFixture extends MotorEncoderFixture<CANJagu
protected abstract DigitalOutput giveFakeReverseLimit();
protected abstract Relay givePoweCycleRelay();
protected abstract Relay givePowerCycleRelay();
public CANMotorEncoderFixture() {}
@@ -45,7 +45,7 @@ public abstract class CANMotorEncoderFixture extends MotorEncoderFixture<CANJagu
if (!initialized) {
initialized = true;// This ensures it is only initialized once
powerCycler = givePoweCycleRelay();
powerCycler = givePowerCycleRelay();
powerCycler.setDirection(Direction.kForward);
logger.fine("Turning on the power!");
powerCycler.set(Value.kForward);

View File

@@ -19,7 +19,7 @@ import edu.wpi.first.wpilibj.test.TestBench;
/**
* Represents a physically connected Motor and Encoder to allow for unit tests
* on these difrent pairs<br>
* on these different pairs<br>
* Designed to allow the user to easily setup and tear down the fixture to allow
* for reuse. This class should be explicitly instantiated in the TestBed class
* to allow any test to access this fixture. This allows tests to be mailable so
@@ -171,7 +171,7 @@ public abstract class MotorEncoderFixture<T extends SpeedController> implements
/**
* Safely tears down the MotorEncoder Fixture in a way that makes sure that
* even if an object fails to initialize the reset of the fixture can still be
* even if an object fails to initialize the rest of the fixture can still be
* torn down and the resources deallocated
*/
@Override

View File

@@ -218,11 +218,11 @@ public final class TestBench {
* (non-Javadoc)
*$
* @see
* edu.wpi.first.wpilibj.fixtures.CANMotorEncoderFixture#givePoweCycleRelay
* edu.wpi.first.wpilibj.fixtures.CANMotorEncoderFixture#givePowerCycleRelay
* ()
*/
@Override
protected Relay givePoweCycleRelay() {
protected Relay givePowerCycleRelay() {
return new Relay(kCANRelayPowerCycler);
}