@jlampel, that is a lot harder than I first thought. You can get it to work in the driving direction, no matter how the tank is rotated, quite easily:

But that gives unwanted wheel rotations while rotating the tank.
Could be done with constraints as Chris Kuhn has shown here: https://cgcookie.com/course/rigging-tank-treads.