I am working on a project where A small robot will use sensors to detect square wooden targets along the sides of a track .When It sees the target it will cease to move and hit the target with water. I am planning to put a right sensor and a left sensor but while I was writing the flow chart I encountered this problem : What if there are two targets(interrupts) at the same time on the left and the right how will the micro act ?
And worse , If there is a target on the left and the robot detects it and executes the ISR . What if there is another target (interrupt) on the right that is seen while the robot is in the middle of the ISR ? Will he ignore it because global interrupt is turned off inside ISR ?
So mainly I am asking : -What happens if two external interrupts happen at the same time ?
-How do I make the micro sensitive to other interrupts while it is in the middle of ISR of one interrupt?