It is perl. But the idea is the same for most languages. Most of them have if/else/elseif statements.
So, in a nutshell, 2-4 computers on each vehicle telling it what to do and reporting back to the main computer what it is doing and where it is. Main also send messages back to each vehicle that it either likes or dislikes what it is doing. So, in code talk: if (everything is fine with your vehicle and it is reporting well) keep going. if (something sucks with one vehicle and it has stopped even though all the others are still moving, please kill all vehicles)