The goal of our battery testing was to determine whether constant acceleration or instant acceleration was the most energy efficient means of propulsion. We found that constant acceleration used less energy to acceleration on average.
Instant acceleration
Code used was:
motorSpeed(1,5);
goFor(5);
motorSpeed(1,10);
goFor(5);
motorSpeed(1,15);
goFor(5);
motorSpeed(1,20);
goFor(5);
motorSpeed(1,25);
goFor(5);
motorSpeed(1,30);
goFor(5);
motorSpeed(1,35);
goFor(5);
brake(5);
Constant acceleration
Code used was:
celerate(1,0,5,3);
goFor(2);
celerate(1,5,10,3);
goFor(2);
celerate(1,10,15,3);
goFor(2);
celerate(1,15,20,3);
goFor(2);
celerate(1,20,25,3);
goFor(2);
celerate(1,25,30,3);
goFor(2);
celerate(1,30,35,3);
goFor(2);
brake(5);