Hidden underneath the dash and tied to the airbag system, a black box records 2 to 5 seconds of precrash data like engine speed, brakes and accelerator.