My observations are similar: in GUI it is ok. I suspect it is robocode bug which
is triggered either by luck of GUI or some other measures. I think MoxieBot has similar issues, though in GUI you see sporadic complains and radar lock in the wrong direction.