frc78 / FRC78_2024

Software repository for FRC Team 78's robot code for the 2024 FRC game Crescendo
Other
5 stars 1 forks source link

Change elevator profile constraints to use raw doubles instead of measurements #198

Open ArchdukeTim opened 4 months ago

ArchdukeTim commented 4 months ago

The trapezoidal constraint class accepts measurements and double parameters. By using measurements, it converts the units to base units (meters for inches), and so we then have to convert all the measurements when calculating the output to meters as well. If we just use raw units, we won't have to do the conversion of encoder readings.