Performance Test: Code

Lab nine focused on testing the code’s performance.  Two different codes were written and run with the AEV.  The codes will be analyzed based on their efficiency and consistency.  Code number one if the code that has been being developed throughout the project.  Code 2 was written to mimic code 1, but to improve efficiency.  To save on energy, code 2 allows the AEV to coast through most of its travel.  In code 1 the motors are running the whole time the AEV is traveling.  Code 2 runs the motors at a high speed to start the run, and then brakes the motors allowing the AEV to drift to a stop.  This code requires a lot of testing to get the correct motor speeds and brake times to drift the AEV to the correct spots.  The hope is that the energy saved by coasting will outweigh the extra energy used to begin motion.