def generic_shift(unused, unused2, shift_parameters, state):
    """Acceleration shift for any model, shift_parameters give constant deceleration/acceleration."""
    if state == 'decel':
        return shift_parameters[0]
    else:
        return shift_parameters[1]