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

Commit 8fa947f

Browse files
authored
Merge pull request #3 from lhmcgann/master
creating and preparing/setting up 4 subsystems and their interfaces
2 parents bb7201b + e2259e6 commit 8fa947f

12 files changed

Lines changed: 135 additions & 2 deletions

File tree

.DS_Store

6 KB
Binary file not shown.

Robot2018/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
/bin/
22
/build/
33
/dist/
4-
.DS_Store

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;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This package is for commands.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package org.usfirst.frc.team199.Robot2018.subsystems;
2+
3+
import edu.wpi.first.wpilibj.command.Subsystem;
4+
5+
/**
6+
*
7+
*/
8+
public class Climber extends Subsystem implements ClimberInterface {
9+
10+
// Put methods for controlling this subsystem
11+
// here. Call these from Commands.
12+
13+
/**
14+
* Set the default command for a subsystem here.
15+
* */
16+
public void initDefaultCommand() {
17+
// Set the default command for a subsystem here.
18+
//setDefaultCommand(new MySpecialCommand());
19+
}
20+
}
21+
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package org.usfirst.frc.team199.Robot2018.subsystems;
2+
3+
import edu.wpi.first.wpilibj.command.Subsystem;
4+
5+
/**
6+
*
7+
*/
8+
public class ClimberAssist extends Subsystem implements ClimberAssistInterface {
9+
10+
// Put methods for controlling this subsystem
11+
// here. Call these from Commands.
12+
13+
/**
14+
* Set the default command for a subsystem here.
15+
* */
16+
public void initDefaultCommand() {
17+
// Set the default command for a subsystem here.
18+
//setDefaultCommand(new MySpecialCommand());
19+
}
20+
}
21+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package org.usfirst.frc.team199.Robot2018.subsystems;
2+
3+
public interface ClimberAssistInterface {
4+
5+
/**
6+
* Set the default command for a subsystem here.
7+
* */
8+
public void initDefaultCommand();
9+
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package org.usfirst.frc.team199.Robot2018.subsystems;
2+
3+
public interface ClimberInterface {
4+
5+
/**
6+
* Set the default command for a subsystem here.
7+
* */
8+
public void initDefaultCommand();
9+
10+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package org.usfirst.frc.team199.Robot2018.subsystems;
2+
3+
import edu.wpi.first.wpilibj.command.Subsystem;
4+
5+
/**
6+
*
7+
*/
8+
public class IntakeEject extends Subsystem implements IntakeEjectInterface {
9+
10+
// Put methods for controlling this subsystem
11+
// here. Call these from Commands.
12+
13+
/**
14+
* Set the default command for a subsystem here.
15+
* */
16+
public void initDefaultCommand() {
17+
// Set the default command for a subsystem here.
18+
//setDefaultCommand(new MySpecialCommand());
19+
}
20+
}
21+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package org.usfirst.frc.team199.Robot2018.subsystems;
2+
3+
public interface IntakeEjectInterface {
4+
5+
/**
6+
* Set the default command for a subsystem here.
7+
* */
8+
public void initDefaultCommand();
9+
10+
}

0 commit comments

Comments
 (0)