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

Commit 568afbc

Browse files
committed
did arm subsystem
1 parent 9742528 commit 568afbc

File tree

3 files changed

+29
-13
lines changed

3 files changed

+29
-13
lines changed

.idea/misc.xml

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations.xml

Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
package org.firstinspires.ftc.teamcode.subsystems;
2+
3+
import com.technototes.library.hardware.servo.Servo;
4+
import com.technototes.library.subsystem.Subsystem;
5+
6+
import java.util.function.Supplier;
7+
8+
public class ArmSubsystem implements Subsystem, Supplier<Double> {
9+
public Servo armServo;
10+
public ArmSubsystem(Servo a){
11+
armServo = a;
12+
}
13+
public void fullyIn(){
14+
armServo.setPosition(0);
15+
}
16+
public void fullyOut(){
17+
armServo.setPosition(1);
18+
}
19+
public void setPosition(double v){
20+
armServo.setPosition(v);
21+
}
22+
23+
@Override
24+
public Double get() {
25+
return armServo.getPosition();
26+
}
27+
}

0 commit comments

Comments
 (0)