\

Avoiding accidents with a smart pilot