File tree Expand file tree Collapse file tree 2 files changed +35
-0
lines changed
src/main/java/org/frc6423/lib/subsystems Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change 77package org .frc6423 .lib .subsystems ;
88
99import org .frc6423 .lib .drivers .LoggedIO ;
10+ import org .frc6423 .monologue .Annotations .Log ;
1011
1112/** Represents generalized hardware methods for a roller subsystem */
1213public 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 /**
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments