Warning: Some posts on this platform may contain adult material intended for mature audiences only. Viewer discretion is advised. By clicking ‘Continue’, you confirm that you are 18 years or older and consent to viewing explicit content.
Fun fact, that’s literally what the code does in Teslas. They shut off self driving if they sense an imminent impact in an attempt to shift legal culpability onto the driver.
if(goingtohitstuff) {
brake;
}
I’m so so sorry. I put in
if(isGoingToHitStuff) { Break; }
and now thousands of people are dead.
Fun fact, that’s literally what the code does in Teslas. They shut off self driving if they sense an imminent impact in an attempt to shift legal culpability onto the driver.
Senior dev material right here.