anchor.diff:           OtherState%BegYawMan = .TRUE.                                                        ! Let's remember when we stored this these values
   
         ENDIF
  -            
  +
  +   ELSE
  +
  +      !...................................................................
  +      ! Update OtherState%YawPosComInt:
  +      !...................................................................
  +      CALL CalculateStandardYaw(t, u, p, m, YawPosCom, YawRateCom, OtherState%YawPosComInt, ErrStat, ErrMsg)
  +   
      ENDIF
                   
      
  
positive.code:       ErrMsg  = ""
  
  
  
     !...................................................................
     ! Set yaw manuever from DLL or external 
     !...................................................................
  
     IF ( t >= p%TYCOn  .AND.  p%YCMode /= ControlMode_NONE )  THEN   ! Time now to enable active yaw control.
        CALL CalculateStandardYaw(t, u, p, m, YawPosCom, YawRateCom, OtherState%YawPosComInt, ErrStat, ErrMsg)
     ENDIF
  
  
     !...................................................................
     ! Determine if override of standard yaw control with a linear maneuver is necessary:
     !...................................................................
  
negative.code:          YawRateCom    = SIGN( p%YawManRat, p%NacYawF - OtherState%NacYawI )             ! Modify the sign of p%YawManRat based on the direction of the yaw maneuever
           YawPosCom     = OtherState%NacYawI + YawRateCom*( t - p%TYawManS )
  
        ENDIF
  
     ELSE
     
        !...................................................................
        ! Calculate standard yaw position and rate commands:
        !...................................................................
  
        YawPosComInt = OtherState%YawPosComInt    ! get state value.  We don't update the state here.
        CALL CalculateStandardYaw(t, u, p, m, YawPosCom, YawRateCom, YawPosComInt, ErrStat, ErrMsg)
     
     ENDIF
                  
     !...................................................................
  