System Analysis 2 & Design Analysis Tool

voidmyCode()

{

//reverse all motor
reverse(4);

//Run all motors at a constant speed of 35% power
motorSpeed(4,35);

//goToAbsolutePosition from the starting point
goToAbsolutePosition(363);

//reverse all motor
reverse(4);

//Run all motors at a constant speed of 35% power for 1 second
motorSpeed(4,35);
goFor(1);

//brake all motors
brake(4);

}