there must be a line like
while(1)
{
my.pan +=1 *time_step;
wait(1);
}

yust remove the my.pan line


"empty"