gearbox control functions for AVR