|
Re: problem with autonomous that has stumped all programmers so far
reset does not clear your variables unless you have then specified with a init value somewhere else in the code, where they are declared or in the initialization section.
but either way, you should be able to switch back and forth between auton and driver mode without someone having to push a reset button - just have a section at the end of your driver mode code that sets up the auton variables to start from the beginning - it will make testing your bot much easier.
BTW - when the bot is disabled it is in normal(driver) mode - the pwm outputs are disabled but that code is still running - when they do auton mode they enable it for a cycle or two, then they switch to auton mode.
|