Readjusted Red Line Values and directions for motor control