Skip to content

Commit 686cc8b

Browse files
committed
basic commands in dropper java and set uo other files
1 parent f141d42 commit 686cc8b

5 files changed

Lines changed: 30 additions & 2 deletions

File tree

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
package frc.robot.subsystems.dropper;
22

3-
public class Dropper {
3+
import org.littletonrobotics.junction.Logger;
4+
5+
import edu.wpi.first.wpilibj2.command.SubsystemBase;
6+
7+
public class Dropper extends SubsystemBase {
8+
private final DropperIO io;
9+
private final DropperIOInputsAutoLogged inputs = new DropperIOInputsAutoLogged();
10+
11+
public Dropper(DropperIO io) {
12+
this.io = io;
13+
}
14+
15+
@Override
16+
public void periodic() {
17+
io.updateInputs(inputs);
18+
Logger.processInputs("Dropper", inputs);
19+
}
20+
21+
public command stop(){
22+
return runOnce(() -> io.stop().withName("Dropper Stop"));
23+
}
424

25+
26+
27+
528
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
package frc.robot.subsystems.dropper;
22

3-
public class DropperIOSim {
3+
public class DropperIOSim extends DropperIO {
44

55
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package frc.robot.subsystems.dropper;
2+
3+
public class DropperIOSparkMax extends DropperIO {
4+
5+
}

0 commit comments

Comments
 (0)