This happens on every map. Static obstacle could be a wreck or a not moving tank.
Tank rams into obstacle -> Stuck -> Tank moves back -> stops -> rotates randomly (sometimes 180? or some other bad value) -> drives forwad -> stops -> goes into Moving mode -> rams again same obstacle -> Stuck mode ...
My idea is:
Tank rams into obstacle -> Stuck -> Tank moves back -> stop -> rotates +- 40-90? -> OPTION 1: drives forward some seconds -> rotates back to original direction -> drive some seconds -> go into moving mode (this will drive the tank "around" the obstacle)
-> OPTION 2: if rams another obstacle -> drive back same distance as it took to ram -> try another angle from there (this time the other side. If it rams again: widen the angle to +- 90-180?)
The important thing is that the tank doesn't the same error by random over and over again. The complete random try could be used if he really finds no other way (surrounded by friends/enemies)
Ah, and please let the bot go into aiming mode even if he is in stuck mode!