generated from StuyPulse/Phil
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathClimber.java
39 lines (27 loc) · 923 Bytes
/
Climber.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package com.stuypulse.robot.subsystems.climber;
import com.stuypulse.stuylib.network.SmartNumber;
import edu.wpi.first.wpilibj2.command.SubsystemBase;
public abstract class Climber extends SubsystemBase {
private static final Climber instance;
private final SmartNumber targetHeight;
static {
instance = new ClimberImpl();
}
public static Climber getInstance() {
return instance;
}
public Climber() {
targetHeight = new SmartNumber("Climber/Target Height", 0.0);
}
public void setTargetHeight(double height) {
targetHeight.set(height);
}
public double getTargetHeight() {
return targetHeight.get();
}
public abstract double getHeight();
public abstract double getVelocity();
public abstract void setVoltage(double voltage);
public abstract boolean atTop();
public abstract boolean atBottom();
}