Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Commit

Permalink
arm sim
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaJenkins committed Nov 21, 2024
1 parent 9840e8b commit d118bf6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/java/com/frcteam3636/frc2024/subsystems/arm/ArmIO.kt
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ interface ArmIO{

inputs.absoluteEncoderPosition = Rotations.of(absoluteEncoder.absolutePosition)

inputs.leftPosition = Radians.of(leftMotor.position.value)
inputs.leftVelocity = RadiansPerSecond.of(leftMotor.velocity.value)
inputs.leftPosition = Rotations.of(leftMotor.position.value)
inputs.leftVelocity = RotationsPerSecond.of(leftMotor.velocity.value)


inputs.rightPosition = Radians.of(rightMotor.position.value)
inputs.rightVelocity = RadiansPerSecond.of(rightMotor.position.value)
inputs.rightPosition = Rotations.of(rightMotor.position.value)
inputs.rightVelocity = RotationsPerSecond.of(rightMotor.position.value)

inputs.rightCurrent = Volts.of(leftMotor.motorVoltage.value)

Expand Down Expand Up @@ -171,8 +171,8 @@ interface ArmIO{
class ArmIOSim : ArmIO {
val armSim = SingleJointedArmSim(
DCMotor.getKrakenX60(1),
1.0,
1.0,
3.0,
0.0301907551,
0.331414,
-0.142921,
2.32814365359,
Expand Down

0 comments on commit d118bf6

Please sign in to comment.