FRCTeam3044 / 2024SwerveBase

Swerve Code for 2024 - Crescendo
Other
1 stars 0 forks source link

Can't just use the angle as rotation target #31

Closed nab138 closed 8 months ago

nab138 commented 9 months ago

https://github.com/FRCTeam3044/2024SwerveBase/blob/56f8a70f2423883f509ddec04b475b67970e3ed8/src/main/java/frc/robot/subsystems/ElevatorSubsystem.java#L97

This needs to be adressed, we cannot just set the target rotations to the desired angle. We need to use the absolute encoder on the pivot point as a reset and scale the output of the elevator encoders to be able to be set to an angle