mirror of
https://github.com/BroncBotz3481/YAGSL
synced 2026-06-21 06:31:40 +00:00
Added new SparkMAX analog encoder option, fixed 'none' absolute encoder type
This commit is contained in:
@@ -24,8 +24,8 @@ public class SwerveMath
|
||||
{
|
||||
|
||||
/**
|
||||
* Calculate the meters per rotation for the integrated encoder. Calculation: 4in diameter wheels * pi [circumfrence]
|
||||
* / gear ratio.
|
||||
* Calculate the meters per rotation for the integrated encoder. Calculation: (PI * WHEEL DIAMETER IN METERS) / (GEAR
|
||||
* RATIO * ENCODER RESOLUTION)
|
||||
*
|
||||
* @param wheelDiameter Wheel diameter in meters.
|
||||
* @param driveGearRatio The gear ratio of the drive motor.
|
||||
|
||||
Reference in New Issue
Block a user