Skip to content

Commit

Permalink
Added subsystem instances
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonisrailov committed Feb 10, 2018
1 parent 232fcde commit 918c523
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/org/usfirst/frc/team4737/robot/RobotMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,16 @@
public class RobotMap {

// Drivetrain

public static int DRIVE_LEFT_MASTER = 11;
public static int DRIVE_LEFT_SLAVE = 12;
public static int DRIVE_RIGHT_MASTER = 13;
public static int DRIVE_RIGHT_SLAVE = 14;

// Intake

public static final int INTAKE_LEFT = 15;
public static final int INTAKE_RIGHT = 16;

// Elevator

public static final int ELEVATOR_MOTOR_A = 17;
public static final int ELEVATOR_MOTOR_B = 18;

Expand Down
5 changes: 5 additions & 0 deletions src/org/usfirst/frc/team4737/robot/subsystems/Climber.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
*/
public class Climber extends Subsystem {

private static Climber instance = new Climber ();

public static Climber getInstance() {
return instance;
}
// Put methods for controlling this subsystem
// here. Call these from Commands.

Expand Down
6 changes: 6 additions & 0 deletions src/org/usfirst/frc/team4737/robot/subsystems/Drivetrain.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@
*
*/
public class Drivetrain extends Subsystem {

private static Drivetrain instance = new Drivetrain();

public static Drivetrain getInstance() {
return instance;
}

// Put methods for controlling this subsystem
// here. Call these from Commands.
Expand Down
6 changes: 6 additions & 0 deletions src/org/usfirst/frc/team4737/robot/subsystems/Elevator.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@
*
*/
public class Elevator extends Subsystem {

private static Elevator instance = new Elevator();

public static Elevator getInstance() {
return instance;
}

// Put methods for controlling this subsystem
// here. Call these from Commands.
Expand Down
5 changes: 5 additions & 0 deletions src/org/usfirst/frc/team4737/robot/subsystems/Intake.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
*/
public class Intake extends Subsystem {

private static Intake instance = new Intake();

public static Intake getInstance() {
return instance;
}
// Put methods for controlling this subsystem
// here. Call these from Commands.

Expand Down

0 comments on commit 918c523

Please sign in to comment.