BroncBotz3481/YAGSL-Example

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

Closed this issue · 0 comments

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.