Skip to content

Commit

Permalink
Merge pull request #4 from SaintsRobotics/public-constructors
Browse files Browse the repository at this point in the history
Made all constructors public
  • Loading branch information
PrecociouslyDigital authored Jan 29, 2018
2 parents 716f782 + 79e2ae9 commit 07110ef
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public class LimitSwitch {
private final int pin;
private DigitalInput switchInput;

LimitSwitch(int pin) {
public LimitSwitch(int pin) {
this.pin = pin;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public class DoubleSolenoidWrapper {
private final int pin2;
private DoubleSolenoid doubleSolenoid;

DoubleSolenoidWrapper(int pin1, int pin2) {
public DoubleSolenoidWrapper(int pin1, int pin2) {
// TODO Generic this in some way.
this.pin1 = pin1;
this.pin2 = pin2;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/github/dozer/output/MotorRamping.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class MotorRamping implements Motor{

private SpeedController speedController;

MotorRamping(SpeedController speedController, boolean inverted) {
public MotorRamping(SpeedController speedController, boolean inverted) {
this.speedController = speedController;
this.speedController.setInverted(inverted);
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/github/dozer/output/MotorSimple.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
public class MotorSimple implements Motor {
private SpeedController speedController;

MotorSimple(SpeedController speedController, boolean inverted) {
public MotorSimple(SpeedController speedController, boolean inverted) {
this.speedController = speedController;
this.speedController.setInverted(inverted);
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/github/dozer/output/ServoWrapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ public class ServoWrapper implements Servo {

private edu.wpi.first.wpilibj.Servo servo;

ServoWrapper(int pin) {
public ServoWrapper(int pin) {
this.servo = new edu.wpi.first.wpilibj.Servo(pin);
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/github/dozer/output/SingleSolenoid.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
public class SingleSolenoid {
private Solenoid solenoid;

SingleSolenoid(int pin) {
public SingleSolenoid(int pin) {
this.solenoid = new Solenoid(pin);
}

Expand Down

0 comments on commit 07110ef

Please sign in to comment.