scheduler swap helper function.
vehicle state changes.