An autonomous vehicle is operable to follow a primary trajectory that forms a portion of a route. While controlling the autonomous vehicle, the autonomous vehicle calculates a failsafe trajectory to follow as a response to a predetermined type of event.