Skip to content
This repository was archived by the owner on Sep 14, 2019. It is now read-only.

Commit af8b25b

Browse files
committed
more subsystem/interface setup
put initDefaultCommand method in interfaces added javadocs for initDefaultCommand method in each subsystem declared and initialized subsystems in Robot
1 parent 1a0fee0 commit af8b25b

9 files changed

Lines changed: 50 additions & 9 deletions

File tree

Robot2018/src/org/usfirst/frc/team199/Robot2018/Robot.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11

22
package org.usfirst.frc.team199.Robot2018;
33

4+
import org.usfirst.frc.team199.Robot2018.subsystems.Climber;
5+
import org.usfirst.frc.team199.Robot2018.subsystems.ClimberAssist;
6+
import org.usfirst.frc.team199.Robot2018.subsystems.IntakeEject;
7+
import org.usfirst.frc.team199.Robot2018.subsystems.Lift;
8+
49
import edu.wpi.first.wpilibj.IterativeRobot;
510
import edu.wpi.first.wpilibj.command.Command;
611
import edu.wpi.first.wpilibj.command.Scheduler;
@@ -16,7 +21,11 @@
1621
* directory.
1722
*/
1823
public class Robot extends IterativeRobot {
19-
24+
25+
public static final Climber climber = new Climber();
26+
public static final ClimberAssist climberAssist = new ClimberAssist();
27+
public static final IntakeEject intakeEject = new IntakeEject();
28+
public static final Lift lift = new Lift();
2029
public static OI oi;
2130

2231
Command autonomousCommand;

Robot2018/src/org/usfirst/frc/team199/Robot2018/subsystems/Climber.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ public class Climber extends Subsystem implements ClimberInterface {
99

1010
// Put methods for controlling this subsystem
1111
// here. Call these from Commands.
12-
12+
13+
/**
14+
* Set the default command for a subsystem here.
15+
* */
1316
public void initDefaultCommand() {
1417
// Set the default command for a subsystem here.
1518
//setDefaultCommand(new MySpecialCommand());

Robot2018/src/org/usfirst/frc/team199/Robot2018/subsystems/ClimberAssist.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ public class ClimberAssist extends Subsystem implements ClimberAssistInterface {
99

1010
// Put methods for controlling this subsystem
1111
// here. Call these from Commands.
12-
12+
13+
/**
14+
* Set the default command for a subsystem here.
15+
* */
1316
public void initDefaultCommand() {
1417
// Set the default command for a subsystem here.
1518
//setDefaultCommand(new MySpecialCommand());
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
package org.usfirst.frc.team199.Robot2018.subsystems;
22

33
public interface ClimberAssistInterface {
4-
4+
5+
/**
6+
* Set the default command for a subsystem here.
7+
* */
8+
public void initDefaultCommand();
9+
510
}
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
package org.usfirst.frc.team199.Robot2018.subsystems;
22

33
public interface ClimberInterface {
4-
4+
5+
/**
6+
* Set the default command for a subsystem here.
7+
* */
8+
public void initDefaultCommand();
9+
510
}

Robot2018/src/org/usfirst/frc/team199/Robot2018/subsystems/IntakeEject.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ public class IntakeEject extends Subsystem implements IntakeEjectInterface {
99

1010
// Put methods for controlling this subsystem
1111
// here. Call these from Commands.
12-
12+
13+
/**
14+
* Set the default command for a subsystem here.
15+
* */
1316
public void initDefaultCommand() {
1417
// Set the default command for a subsystem here.
1518
//setDefaultCommand(new MySpecialCommand());
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
package org.usfirst.frc.team199.Robot2018.subsystems;
22

33
public interface IntakeEjectInterface {
4-
4+
5+
/**
6+
* Set the default command for a subsystem here.
7+
* */
8+
public void initDefaultCommand();
9+
510
}

Robot2018/src/org/usfirst/frc/team199/Robot2018/subsystems/Lift.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ public class Lift extends Subsystem implements LiftInterface {
99

1010
// Put methods for controlling this subsystem
1111
// here. Call these from Commands.
12-
12+
13+
/**
14+
* Set the default command for a subsystem here.
15+
* */
1316
public void initDefaultCommand() {
1417
// Set the default command for a subsystem here.
1518
//setDefaultCommand(new MySpecialCommand());
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
package org.usfirst.frc.team199.Robot2018.subsystems;
22

33
public interface LiftInterface {
4-
4+
5+
/**
6+
* Set the default command for a subsystem here.
7+
* */
8+
public void initDefaultCommand();
9+
510
}

0 commit comments

Comments
 (0)