projects
/
3501
/
2017steamworks
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix code to swap camera feed
[3501/2017steamworks]
/
src
/
org
/
usfirst
/
frc
/
team3501
/
robot
/
subsystems
/
Intake.java
diff --git
a/src/org/usfirst/frc/team3501/robot/subsystems/Intake.java
b/src/org/usfirst/frc/team3501/robot/subsystems/Intake.java
index ed47fa702a80446343a32362991cb40fa3e8e41a..b008518e5673897bfd6e33c0c6f6cca02c7cfef1 100644
(file)
--- a/
src/org/usfirst/frc/team3501/robot/subsystems/Intake.java
+++ b/
src/org/usfirst/frc/team3501/robot/subsystems/Intake.java
@@
-16,6
+16,8
@@
public class Intake extends Subsystem {
public static final double INTAKE_SPEED = 1;
public static final double REVERSE_SPEED = -1;
public static final double INTAKE_SPEED = 1;
public static final double REVERSE_SPEED = -1;
+ private int intakeCameraFeed = 1;
+
public Intake() {
intakeWheel = new CANTalon(Constants.Intake.INTAKE_ROLLER_PORT);
}
public Intake() {
intakeWheel = new CANTalon(Constants.Intake.INTAKE_ROLLER_PORT);
}
@@
-63,6
+65,14
@@
public class Intake extends Subsystem {
setSpeed(0);
}
setSpeed(0);
}
+ public int getIntakeCameraFeed() {
+ return this.intakeCameraFeed;
+ }
+
+ public void setIntakeCameraFeed(int intakeCamFeed) {
+ this.intakeCameraFeed = intakeCamFeed;
+ }
+
/***
* Purpose is to release all balls from the ball container to the outside of
* the robot. Reverses intake wheel by setting wheel speed to reverse speed.
/***
* Purpose is to release all balls from the ball container to the outside of
* the robot. Reverses intake wheel by setting wheel speed to reverse speed.