projects
/
3501
/
2015-FRC-Spark
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Created get arm angle method inside Arm class
[3501/2015-FRC-Spark]
/
src
/
org
/
usfirst
/
frc3501
/
RiceCatRobot
/
subsystems
/
Arm.java
diff --git
a/src/org/usfirst/frc3501/RiceCatRobot/subsystems/Arm.java
b/src/org/usfirst/frc3501/RiceCatRobot/subsystems/Arm.java
index c425370a3867bd6a45ae593077cf6fe1f81cee11..e3f5f9a866f5d979136a9eac653603c23bd1b0d7 100644
(file)
--- a/
src/org/usfirst/frc3501/RiceCatRobot/subsystems/Arm.java
+++ b/
src/org/usfirst/frc3501/RiceCatRobot/subsystems/Arm.java
@@
-20,6
+20,10
@@
public class Arm extends Subsystem {
analogPotentiometer = new AnalogPotentiometer(analogInput, ANGLE_RANGE, INITIAL_ANGLE);
}
+ public double getArmAngle() {
+ return analogPotentiometer.get();
+ }
+
public void initDefaultCommand() {
}