Code:
OPENLOOP_RAMPSPEED_INCREASERATE = 10
void CalculateParkAngle(void)
{
     else if (Startup_Ramp < END_SPEED)
			Startup_Ramp+=OPENLOOP_RAMPSPEED_INCREASERATE;

ParkParm.qAngle += (int)(Startup_Ramp >> 10);

}

and the function

Code:
SinCos();

I am bit confused of the above function. I have shown the calculations in the excel file. Read more