function acc = bound_acc(acc, car)

acc = min(acc, car.acc_max);
acc = max(acc, car.acc_min);