Coasting Code:
reverse(4);
celerate(4, 0, 25, 2);
motorSpeed(4, 25);
goToAbsolutePosition(-100);
Coasting Graph Results:
Power Braking Code:
reverse(4);
celerate(4, 0, 25, 2);
motorSpeed(4, 25);
goToAbsolutePosition(-100);
reverse(4);
celerate(4, 25, 0, 2);
Power Braking Graph Results:
Comparison Graphs:
Conclusion:
Coasting uses less power, but it takes considerably longer and farther to stop compared to power braking.