예제 #1
0
void forMuricaAndForAslan() {
	setTank();
	forward(1600);
	setMorpheus();
	basicMove(0, 10, -127);
	wait1Msec(1000);
	basicMove(0, 0, 0);
	raiseArm(1200);
	powerArm(10);
	setTank();
	forward(470);
	basicMove(0, 0, 0);
	outtakeT(1200);
	back(600);
	basicMove(0, 0, 0);
}
예제 #2
0
	Emitter::Emitter(const Ref<Zone>& zone,bool full,int tank,float flow,float forceMin,float forceMax) :
		Transformable(),
		active(true),
		full(full),
		zone(!zone ? SPK_DEFAULT_ZONE : zone),
		flow(1.0f),
		fraction(SPK_RANDOM(0.0f,1.0f))
	{
		setTank(tank);
		setFlow(flow);
		setForce(forceMin,forceMax);
	}
예제 #3
0
void strafeUntilLine() {
	if(morpheus == 0)
		setMorpheus();
	while(SensorValue[RightLine] < 2600) {
		basicMove(0, 0, -67);
	}
	while(SensorValue[LeftLine] > 2600) {
		basicMove(0, 0, -40);
	}
	basicMove(0, 0, -127);
	wait1Msec(20);
	setTank();
}
예제 #4
0
void slolRof() {
	setTank();
	powerArm(0);
	raiseArm(650);
	powerArm(10);
	forward(480);
	wait1Msec(1000);
	back(500);
	basicMove(0, 0, 0);
	wait1Msec(2000);
	forward(470);
	wait1Msec(1000);
	back(450);
	basicMove(0, 0, 0);
}
예제 #5
0
// controls movement of the robot
void UC_drive() {
	if(vexRT[Btn8L]) {
		setMorpheus();
  } else if (vexRT[Btn8R]) {
		setTank();
	}

	oldY = channel3;

  channel1 = cubicMap(vexRT[Ch1]);
	channel3 = cubicMap(vexRT[Ch3]);
	channel4 = cubicMap(vexRT[Ch4]);

	move(channel1, channel3, channel4);
}
예제 #6
0
void forLols() {
	setTank();
	powerArm(0);
	raiseArm(650);
	powerArm(10);
	motor[Intake1] = motor[Intake2] = -127;
	forward(430);
	wait1Msec(1000);
	back(430);
	basicMove(0, 0, 0);
	//waitForButton();
	wait1Msec(4000);
	forward(480);
	wait1Msec(1000);
	back(500);
	basicMove(0, 0, 0);
	lowerArm(0);
	motor[Intake1] = motor[Intake2] = 0;
	basicMove(0, 0, 0);
}
예제 #7
0
// Most basic, scores preload, knocks over big balls.
void forGreaterJustice() {
	setTank();
	forward(1100);
	raiseArm(1200);
	powerArm(10);
	//back(50);
	basicMove(0, 0, 0);
	motor(Intake1) =motor(Intake2) = -127;
	wait1Msec(800);
	back(400);
	motor(Intake1) =motor(Intake2) = 0;
	lowerArm(10);
	back(600);
	basicMove(0, 0, 0);
	waitForButton();
	// Push over big balls
	//raiseArm(650);
	powerArm(0);
	//stopArm();
	motor[Arm1] = motor[Arm2] = 0;
	forLols();
}