Quote:
Originally posted by redbeard0531
Please add support for a reset button. Or at least set all vars to zero when "Begin match" is clicked. Otherwise my counter is never reset. I have to completely exit out to reset it!
|
This sounds like a disaster waiting to happen. (A little hyperbole can sometimes come in handy.

)
Remember that you power up your robot when you place it on the field, and your program then begins running (albeit disabled) as soon as communications are established with your OI. This means that if you don't check the comp_mode bit, and only start incrementing your counter after it changes to 0, your counter could have been running for something like 2 minutes before the match starts. I handle this problem by reseting my timer to zero whenever comp_mode = 1. Unfortunately, this isn't a 100% solution when running RoboEmu, since it doesn't start a match disabled.
What I would like to see RoboEmu do is to start a match with the 10 second human player period -- during which time comp_mode would be set to 1. Only then would comp_mode be cleared, and auton_mode be set. It would also be very helpful to have a visible match timer.