For some reason, my autonomous code takes around .25-.75 seconds before it actually starts running. At our first competition, the robot started moving immediately after auto started, but at DCMP, the robot had a short delay before moving. Could someone look through my code to see what could be causing this?
My only conclusion could be that setting 8 drive TalonSRX’s into brake mode causes the short delay.
I’m having similar issues, about the same amount of time delay between the auto starting and our autonomous running. It seems to only be a noticeable delay at competition however, when running auto in our practice room at school it’s difficult to notice the delay between hitting enable on the driver station and the robot beginning to move.
I wrote my own version of the wpilibj Command system, which adds more points where this issue could possibly be coming from, but it seems to be fairly reliable doing everything else, so I’m not quite sure what to think.
We will be conducting further investigation this week, if we find anything I’ll pop back into this thread and mention it in case you’re having the same issue.
We’re seeing a delay between our first movement and our alliance’s first movement. Definitely something to be concerned about.
At the moment it looks like our current problem is because we have a logging system that starts when the robot enables, and part of the startup is it flushes it’s entire state buffer to a USB flash drive, which we believe is causing the delay, we haven’t tested this yet however.
Are you calibrating/resetting any sensors in the beginning of your autonomous mode? All sensors take a while to “calibrate,” which involves a total recalibration of the sensors faculties. Generally speaking, the sensors already calibrate themselves on robot startup, and what you’re actually looking for is “reset.” This was an issue for our team this year (gyroscopes take forever to calibrate), and so what I would recommend (as a make-sure-its-not-a-simple-solution check) is to search your code for instances of sensor calibration, especially in things such as PID loops and constructor methods.