Skip to content
This repository has been archived by the owner on Oct 27, 2021. It is now read-only.

Where do I adjust for encoder ticks? #113

Open
Plaba opened this issue Feb 7, 2020 · 1 comment
Open

Where do I adjust for encoder ticks? #113

Plaba opened this issue Feb 7, 2020 · 1 comment

Comments

@Plaba
Copy link

Plaba commented Feb 7, 2020

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:

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?

@Oblarg
Copy link
Contributor

Oblarg commented Feb 7, 2020

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants