mirror of
https://github.com/Team4388/2022NoWayHome.git
synced 2026-06-09 08:48:07 -06:00
gAtEkEePiNg
This commit is contained in:
@@ -128,8 +128,8 @@ public class ClimberRewrite extends SubsystemBase {
|
||||
}
|
||||
|
||||
public void setMotors(double shoulderOutput, double elbowOutput) {
|
||||
m_shoulder.set(shoulderOutput);
|
||||
m_elbow.set(elbowOutput);
|
||||
m_shoulder.set(shoulderOutput * ClimberConstants.INPUT_MULTIPLIER);
|
||||
m_elbow.set(elbowOutput * ClimberConstants.INPUT_MULTIPLIER);
|
||||
}
|
||||
|
||||
public double[] getJointAngles() {
|
||||
@@ -282,4 +282,8 @@ public class ClimberRewrite extends SubsystemBase {
|
||||
public static Point getClimberPosition(double[] jointAngles) {
|
||||
return getClimberPosition(jointAngles[0], jointAngles[1]);
|
||||
}
|
||||
|
||||
public double getCurrent() {
|
||||
return (this.m_elbow.getSupplyCurrent() + this.m_shoulder.getSupplyCurrent());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user