Quasistatic test trimming removed all data error

image
We are currently running into this error constantly and are unsure as to why it is happening.

Our code:

note: our robot runs super fast so we have to run it at very low voltages to be safe. This current settings our robot goes the full length of the field safely.

any help would be appreciated

We had this happen when we were first running tests.
The post below got us started but our results weren’t quite right. Our robot would drive to 1.2 meters when told to drive a meter.

I would still recommend the advantage kit example I linked to you in an earlier thread. Or at least borrow their logging method.

You have been like a guardian Angel to me during this testing period LOL thanks for all your help.

Our next meet is Wednesday so I will let you know how this goes then.

And yea, I just implemented a advantage kit version of sys I’d logging. How did you go about sifting through all of the information it gives you to find the specific motors needed ?

It is organized weird. I believe our sysid state data was under console/drive with position and velocity. We had to pull voltage from the drive applied voltage. We are considering adding URCL to see if we can get better results for true measured voltage on the spark max.

1 Like

Hi, I have no experience with this, but I took a dive into the code to see if I could offer you any breadcrumbs.

That error message is generated by this WPILIB code:
allwpilib/sysid/src/main/native/cpp/analysis/FilteringUtils.cpp at v2024.2.1 · wpilibsuite/allwpilib · GitHub

There are two possible reasons for that error. One would be if the values for voltage or velocity reported by the log callback are confusing to the code; that is, your code on this line:

To probe that, I’d print or write to network tables or somehow inspect what you’re returning at that point in the code and see if the values look rational. I looked at your code for converting velocity and distance and didn’t see anything obvious.

The second reason could be that the velocity threshold is too low. I think that’s something you set in the characterization program itself. My naive google hunt returned this page:

I hope that helps.

1 Like

I was having a very similar issue yesterday. Not sure if it’s the same root cause though.

4 Likes

this appeared to have worked. THANKS!

2 Likes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.