This is my autonomous code that I am using at this moment.
task autonomous()
{
//move forward …
motor[Backleft]=100;
motor[Backright]=100;
motor[Frontright]=100;
motor[Frontleft]=100;
wait1Msec(5000);
motor[Backleft]=0;
motor[Backright]=0;
motor[Frontright]=0;
motor[Frontleft]=0;
//arm up
motor[arm1]=100;
motor[arm2]=100;
wait1Msec(2000);
motor[arm1]=0;
motor[arm2]=0;
Drive forwards for 5 seconds, lift the arm for 2 seconds. Now you just need to score some stars