Programming Basics

R&D Testing Code:

reverse(4);                       //Reverses polarity of motors

motorSpeed(4,35);        //Sets motors speed to 35% power

goFor(3);                        //Runs the motors at their initialized state for 3 seconds

brake(4);                         //Cuts the power to all motors

motorSpeed(4,35);       //Sets motors speed to 35% power

goFor(3);                        //Runs the motors at their initialized state for 3 seconds

brake(4);                        //Cuts the power to all motors

reverse(4);                     //Reverses polarity of motors

goFor(2);                       //Runs the motors at their initialized state for 2 seconds

motorSpeed(4,35);      //Sets motors speed to 35% power

goFor(4);                       //Runs the motors at their initialized state for 4 seconds

brake(4);                       //Cuts the power to all motors

//End of run