Tentative Performance Test Code (2-motor)
//Initialize motors
motorSpeed(1,0);
motorSpeed(2,0);
// start to gate
motorSpeed(4,40); // 1. Set motors to 40% (break static friction)
motorSpeed(4,30); // 2. Set motors to 30% (standard operating level, unloaded AEV)
goToRelativePosition(-345); // 3. go -345 marks (14 feet)
motorSpeed(4,0); // 4. all motors at 0%
goFor(7); // 5. wait for 7 seconds (gate opens)
// gate to load-up
motorSpeed(4,40); // 6. Set motors to 40% (break static friction)
motorSpeed(4,30); // 7. Set motors to 30% (standard operating level, unloaded AEV)
goToRelativePosition(-320); // 8. go -320 marks (13 feet)
motorSpeed(4,0); // 9. all motors at 0%
goFor(5); // 10. wait for 5 seconds (magnetic hookup)
// load-up to gate
reverse(4); // 11. reverse motor polarity
motorSpeed(4,40); // 12. Set motors to 40% (break static friction)
motorSpeed(4,35); // 13. Set motors to 35% (standard operating level, loaded AEV)
goToRelativePosition(320); // 14. go 320 marks (13 feet)
motorSpeed(4,0); // 15. all motors at 0%
goFor(7); // 16. wait for 7 seconds (gate opens)
// gate to end
motorSpeed(4,40); // 17. Set motors to 40% (break static friction)
motorSpeed(4,35); // 18. Set motors to 35% (standard operating level, loaded AEV)
goToRelativePosition(345); // 19. go 345 marks (14 feet)
motorSpeed(4,0); // 20. all motors at 0%
reverse(4); // 21. set motors to original polarity
Tentative Performance Test Code (3-motor)
//Initialize motors, reverse motor 3
motorSpeed(1,0);
motorSpeed(2,0);
motorSpeed(3,0);
reverse(3);
// start to gate
motorSpeed(4,40); // 1. Set motors to 40% (break static friction)
motorSpeed(4,30); // 2. Set motors to 30% (standard operating level, unloaded AEV)
goToRelativePosition(-345); // 3. go -345 marks (14 feet)
motorSpeed(4,0); // 4. all motors at 0%
goFor(7); // 5. wait for 7 seconds (gate opens)
// gate to load-up
motorSpeed(4,40); // 6. Set motors to 40% (break static friction)
motorSpeed(4,30); // 7. Set motors to 30% (standard operating level, unloaded AEV)
goToRelativePosition(-320); // 8. go -320 marks (13 feet)
motorSpeed(4,0); // 9. all motors at 0%
goFor(5); // 10. wait for 5 seconds (magnetic hookup)
// load-up to gate
reverse(4); // 11. reverse motor polarity
motorSpeed(4,40); // 12. Set motors to 40% (break static friction)
motorSpeed(4,35); // 13. Set motors to 35% (standard operating level, loaded AEV)
goToRelativePosition(320); // 14. go 320 marks (13 feet)
motorSpeed(4,0); // 15. all motors at 0%
goFor(7); // 16. wait for 7 seconds (gate opens)
// gate to end
motorSpeed(4,40); // 17. Set motors to 40% (break static friction)
motorSpeed(4,35); // 18. Set motors to 35% (standard operating level, loaded AEV)
goToRelativePosition(345); // 19. go 345 marks (14 feet)
motorSpeed(4,0); // 20. all motors at 0%
reverse(4); // 21. set motors to original polarity