Open brettle opened 7 months ago
https://github.com/DeepBlueRobotics/RobotCode2024/blob/864bd307aef11cefdb3b42233551b75dce458c0b/src/main/java/org/carlmontrobotics/subsystems/Arm.java#L163
The kG portion of the feedforward should be based on the arm's current position (ie getArmPos()) and the kV portion should be based on the profiled velocity (ie setPoint.velocity). Neither should be based on goalState.
Fixed in 0dd661b57477b32a122efb3ee62512888f007e11
https://github.com/DeepBlueRobotics/RobotCode2024/blob/864bd307aef11cefdb3b42233551b75dce458c0b/src/main/java/org/carlmontrobotics/subsystems/Arm.java#L163
The kG portion of the feedforward should be based on the arm's current position (ie getArmPos()) and the kV portion should be based on the profiled velocity (ie setPoint.velocity). Neither should be based on goalState.