Well, lacking the code it is hard to make a guess at the issue ... but, by chance, did you check out
this page, describing how the RC can cause your bot, at the start of autonomous mode, to be stuck using stale values (last remembered values from OI)?