mirror of
https://github.com/BroncBotz3481/YAGSL
synced 2026-06-27 07:01:39 +00:00
Updated Javadocs, added ability to push offset to absolute encoders.
This commit is contained in:
@@ -96,4 +96,17 @@ public class PWMDutyCycleEncoderSwerve extends SwerveAbsoluteEncoder
|
||||
// Do nothing
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the offset of the Encoder in the WPILib Encoder Library.
|
||||
*
|
||||
* @param offset the offset the Absolute Encoder uses as the zero point.
|
||||
* @return Always true due to no external device commands.
|
||||
*/
|
||||
@Override
|
||||
public boolean setAbsoluteEncoderOffset(double offset)
|
||||
{
|
||||
encoder.setPositionOffset(offset);
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user