Evolution of Coding Process for the month of January:
Prgmbasics
// accelerate motor one from 0 to 15% power in 2.5 seconds
celerate(1,0,15,2.5);
// Run motor one at a constant speed (15%) for 1 second
gofor(1);
// Brake motor one
brake(1);
// Accelerate motor wo from start to 27% power in 4 seconds
celerate(2,0,27,4);
// Run motor two at a constant speed (27%)for 2.7 seconds;
gofor(2.7);
// decelerate motor two to 15% power in 1 second
celerate(2,27,15,1);
//brake motor two
brake(2);
// Reverse the direction of only motor 2
reverse(2)
// accelerate all motor from start to 31% power in 2 seconds
celerate(4,0,31,2);
// run all motors at constant speed of 35% for 1 second
motorSpeed(4,35);
gofor(1);
// brake motor two but keep motor one run at constant speed(35%) for 3 seconds
brake(2);
gofor(3);
// brake all motors for 1 second
brake(4);
gofor(1);
// reverse the direction of motor one
reverse(1);
//Accelerate motor onr from from start to 19% power over 2 seconds
celerate(1,0,19,2);
// run motor 2 at 35% power while simultaneously run motor one at 19% power for 2 second;
motorSpeed(2,35);
motorSpeed(1,19);
gofor(2);
//Run both motors at a constant speed (19%) for 2 seconds
motorSpeed(4,19);
gofor(2);
// decelerate both motors to 0% power in 3 seconds
celerate(4,19,0,3);
// brake all motors
brake(4);
Exercise 2 Sensor Test
ExternalSensorsOutside
// run all motors at a constant speed of 25% power for 2 seconds
motorSpeed(4,25);
gofor(2);
// run all motors ar 20% speed use goToAbsolutePosition to travel to 12 feet
motorSpeed(4, 20);
goToAbsolutePosition(295.4);
//reverse motors
reverse(4);
// run all motors at 30% power for 1.5 seconds
motorSpeed(4,30);
gofor(1.5);
// brake all
brake(4);
Exercise 4
CSS1
// accelerate all motors from 0 to 25% in 3 seconds
celerate(4,0,25,3);
// run all motors at constant speed 25% for 1 seconds
gofor(1);
// run all motors at speed 20% for 2 seconds
motorSpeed(4,20);
gofor(2);
// reverse all motors
reverse(4);
// run all motors at constant speed 25% for 2 seconds
motorSpeed(4,25);
gofor(2);
// brake all motor
brake(4);