mirror of
https://github.com/BroncBotz3481/YAGSL
synced 2026-06-19 06:21:40 +00:00
Addressing issue #7 by reading CANCoder values until successful with 10ms delay between readings. Fall back to reading relative encoder.
This commit is contained in:
@@ -36,7 +36,8 @@ public class SwerveModuleState2 extends SwerveModuleState
|
||||
* @param angle The angle of the module.
|
||||
* @param omegaRadPerSecond The angular velocity of the module.
|
||||
*/
|
||||
public SwerveModuleState2(double speedMetersPerSecond, Rotation2d angle, double omegaRadPerSecond)
|
||||
public SwerveModuleState2(
|
||||
double speedMetersPerSecond, Rotation2d angle, double omegaRadPerSecond)
|
||||
{
|
||||
this.speedMetersPerSecond = speedMetersPerSecond;
|
||||
this.angle = angle;
|
||||
|
||||
Reference in New Issue
Block a user