Changed infared and autonomous method

Changed some parameters in main method
now getting variables from ir sensors