frc-characterization
frc-characterization copied to clipboard
Where do I adjust for encoder ticks?
Hello, I created a new brushless Spark Max/Neo project. After running a test, it reported the left and right encoder ticks. It then said, "If that seems wrong, you should change the encoder calibration in the robot program or fix your encoders!" I then changed Robot.java in the generated project to report in meters.
After running the tests again and getting satisfactory results of about three meters, I then opened the analyzer program and got the attached error:

I think the error is occurring because it expects numbers that haven't been adjusted for encoder ticks. I don't want to re-run the characterization program.
Is there any way to tell the GUI that it doesn't need to convert the data it's received? Or alternatively, can I easily convert the data to something the analyzer can use?
The GUI does no unit conversion at all for the feedforward analysis. The units are whatever your characterization code reported.
Generally, it is expected that you'll specify your encoder resolution correctly in the config file.