adding updateRobot in botFunction.c