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

Commit 71ba09f

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 36456b0 + 568afbc commit 71ba09f

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
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)