Autotune question

Hi,
I'm using autotune lib and i got some question if anything one knows, please help me explain this.

   else myPID.Compute();
    if(useSimulation)
  {
    theta[30]=output;
    if(now>=modelTime)
    {
      modelTime +=100; 
      DoModel();
    }
  }
void DoModel()
{
  //cycle the dead time
  for(byte i=0;i<49;i++)
  {
    theta[i] = theta[i+1];
  }
  //compute the input
  temp = (kpmodel / taup) *(theta[0]-outputStart) + input*(1-1/taup) + ((float)random(-10,10))/100;

im reading the codes and still dont understand these 2 parts and what it does. Im still learning in coding.

Thank you

There is a lot going on here. Please be more specific. What do you not understand?

Booleans, arrays, >=, +=, i+1, i++, function calls, casts such as (float), for statements, using a period to access a function? Which is it?

If it is more than two, perhaps you still need to do some learning about C and C++. Good Luck, and Google Is Your Friend !