BroncBotz3481 / YAGSL-Example

Yet Another General Swerve Library Example Project
Apache License 2.0
58 stars 143 forks source link

Expand on conversion factors to provide for the ability to pass in params, rather than pre-calculated values. #212

Closed thenetworkgrinch closed 3 months ago

thenetworkgrinch commented 5 months ago

The module configs will go from

"conversionFactors": {
"drive": 0,
"angle": 0
}

to

"conversionFactor": {
"drive": {"gearRatio": 0, "diameter": 4, "factor": 0},
"angle": {"gearRatio": 0, "factor": 0}
}

factor is optional. The original method will stay for a year then be removed per standard deprecation policies, anyone using the old JSON format WILL see a deprecation warning.

factor will be autogenerated based off of the given elements of the decomposed conversion factor. An error will occur if you define factor while also defining the decomposed value's.

There will be an undocumented parameter ticks to aid in very far EDGE cases.