Update mainautonomous.c

Updated autonomous program that seek for the IR signal.