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.
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.
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.
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: