Integrated vision average function with Robot.java