//时间流逝并显示 float GameScene::timeLapseShow(float dt) { float t = timeLapse(dt); showTime(t); return t; }
void part4(){ driveAtMm(500); //clear to give space to turn run_for(1,clawSB); turn(-90);//turn towards sb side of feild driveAtMmFor(-500,2.8);//drive to inner sb approx. detectPVC();//drive into pvc to set angle to 0 turn(-90);//turn towards outer starting box blockStack2();//stack second blocks timeLapse(); }
void part2(){ driveAtMm(500);//400, 1.1 //back off from first stack to make room for turn run_for(.75,armPosBlockStack1); turnFast(-90); armPosBlockStack1(); driveAtMmFor(-500,1.2);//1.0434806); detectPVC();//driveAtMmFor(-100, 1);//1.5); //manual detectPVC turn(-90);//turn toward outside sb driveAtMmFor(-500,.5);//move to outside sb pvc blockStack1();//drop off blocks timeLapse(); }
void part5(){ //seed, JosephMCgee: driveAtMmFor(500,.5); turnFast(-90); driveAtMmFor(-500,.5); create_drive(-500,520); run_for(2.6, clawGrab); create_drive(-500,-350); run_for(1.9,armPosBlockGrab); armPosBlockGrab(); detectPVC(); timeLapse(); driveAtMmFor(250,1.00);//run_for(1.5, armPosBlockStack1);//drive bd to align create to blocks3, while simultaneously lifting arm above blocks turn(90);//turn towards blocks3 armPosBlockGrab(); //arm in grab pos clawGrab(); driveAtMmFor(-500,.4);//drive towards blocks detectBlock();//detect and slowly approch blocks. grabBlocks();//grab blocks procedure }
//LEFT void part0(){ initialize(); side == LEFT; timeLapse(); }