Code behind image above:
celerate(4, 0, 25, 3);
goFor(1);
motorSpeed(4, 25);
goFor(2);
reverse(4);
motorSpeed(4, 25);
goFor(2);
brake(4);
According to the code written for the data analysis tool, the graph was sectioned off into parts with the following explanation:
- All motors accelerated to speed 25 in 3 seconds.
- The motors continued for 1 second with code. The speed was set to speed 25 and continued for 2 seconds. Since the code was already at speed 25, the graph displays a continuation 3 seconds.
- The motors direction was immediately reversed which required a lot of power.
- The motors continued to run for 2 seconds.
- The motors stopped running completely and 0 watts of power was used.