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:
@@ -73,7 +73,8 @@ public class SwerveModuleSimulation
|
||||
*/
|
||||
public SwerveModulePosition getPosition()
|
||||
{
|
||||
return new SwerveModulePosition(fakePos, state.angle.plus(new Rotation2d(state.omegaRadPerSecond * dt)));
|
||||
return new SwerveModulePosition(
|
||||
fakePos, state.angle.plus(new Rotation2d(state.omegaRadPerSecond * dt)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user