Gearhead Motor Backlash

Hi Guys,

Does anyone have any ideas on how to compensate for backlash or play in the gears either in code or otherwise because it's making my balancing robot a bit jittery.