Skip to content

Commit b7d6d75

Browse files
committed
feat: create placeholder sim io for generic roller subsystem
Signed-off-by: Dasun Abeykoon <[email protected]>
1 parent cbbfdcf commit b7d6d75

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

src/main/java/org/frc6423/lib/subsystems/RollerIO.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,20 @@
77
package org.frc6423.lib.subsystems;
88

99
import org.frc6423.lib.drivers.LoggedIO;
10+
import org.frc6423.monologue.Annotations.Log;
1011

1112
/** Represents generalized hardware methods for a roller subsystem */
1213
public interface RollerIO extends LoggedIO {
1314
/**
1415
* @return roller velocity in radians per second
1516
*/
17+
@Log
1618
public double velocity();
1719

1820
/**
1921
* @return roller stator current in amps
2022
*/
23+
@Log
2124
public double statorCurrent();
2225

2326
/**
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// Copyright (c) 2025 FRC 6423 - Ward Melville Iron Patriots
2+
// https://github.com/wmironpatriots
3+
//
4+
// Open Source Software; you can modify and/or share it under the terms of
5+
// MIT license file in the root directory of this project
6+
7+
package org.frc6423.lib.subsystems;
8+
9+
// TODO replace placeholder class
10+
public class RollerIOSim implements RollerIO {
11+
@Override
12+
public double velocity() {
13+
return 0.0;
14+
}
15+
16+
@Override
17+
public double statorCurrent() {
18+
return 0.0;
19+
}
20+
21+
@Override
22+
public void setVoltage(double volts) {}
23+
24+
@Override
25+
public void setVelocity(double velRadsPerSec) {}
26+
27+
@Override
28+
public void stop() {}
29+
30+
@Override
31+
public void close() throws Exception {}
32+
}

0 commit comments

Comments
 (0)