Skip to content

Commit b788069

Browse files
committed
feat: create the io interface for arm subsystem's pivoting component
Signed-off-by: Dasun Abeykoon <[email protected]>
1 parent bd40e57 commit b788069

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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.robot.subsystems.arm;
8+
9+
/** Represents generalized hardware methods for {@link Arm} Subsystem's pivoting component */
10+
public interface ArmPivotIO extends AutoCloseable {
11+
/**
12+
* @return pivot motor angle in radians
13+
*/
14+
public double angle();
15+
16+
/**
17+
* Set pivot motor voltage setpoint
18+
*
19+
* @param volts desired voltage
20+
*/
21+
public void setVoltage(double volts);
22+
23+
/**
24+
* Set pivot motor angle goal for on board closed-loop control
25+
*
26+
* @param angleRads desired angle in radians
27+
*/
28+
public void setAngle(double angleRads);
29+
}

0 commit comments

Comments
 (0)