Me and my teammate are having an argument over what the best way to code autonomous is and I think it is PID and for some reason he thinks time is the best what do you guys think( I made this to prove to my teammates that time is the worst)
Anything but time.
Time is the wrost way but is there anything even worse?
Time should only be used for aligning with walls and parking
For a more serious answer, I use encoders, but PID works if you know how to use it. (I don’t)
You could measure by rounding to the nearest 10,000 rotations and would always travel a distance of 0 because how rounding works, that would be worse.
Unless you want to travel really far. Then it works great.
using vex coding studio.
When you say you use encoders but not pid do you mean you use v5 built-in pid.
We use a combination of a gyro and encoders. It works great but is hard to set up. But really anything is better than time
You just have to measure the field in time. Then using time works perfectly. (Don’t think about it or it might not make sense.)
Time is fine if you don’t want your auton to work
what does PID mean?
Its stand for Proportion-Integral-Derivative control. It is a type of control that can move your robot to to a certain distance precisely and quickly. However, often times, not all terms are needed(You can get away with just proportion).
Time is fine if you have the robot move at like 50% max speed. But simple P-loop or PID will make your robot much more consistent in auto. As these actively slow down your robot as you get to target, you dont have wheel slippage, so you can go faster. Thus maker it better.
proportional integral derivative
you should also check out pros 2d motion profiling, its lit.
Time is terribly inaccurate and never works. Use sensors.
Not having a specific starting position in the tile, so that your robot is angled in different places each time you set it down. A recipe for ‘random’ outcomes based on slightly ‘random’ starting positions.
I agree that time often doesn’t work, especially with V4. I will say this, though. Earlier in the season, I had an autonomous that used only time. It was the most consistent auton I’ve ever made and won think award. Just sayin’ it works (sometimes).