Added lock to ensure safety of odometry update

This commit is contained in:
thenetworkgrinch
2023-08-29 21:56:52 -05:00
parent 14f66bb679
commit 10a4b528a4
115 changed files with 574 additions and 341 deletions

View File

@@ -6,10 +6,14 @@ package swervelib.encoders;
public abstract class SwerveAbsoluteEncoder
{
/**
* The maximum amount of times the swerve encoder will attempt to configure itself if failures occur.
*/
public final int maximumRetries = 5;
/**
* Last angle reading was faulty.
*/
public boolean readingError = false;
public boolean readingError = false;
/**
* Reset the encoder to factory defaults.