Combining Two Arduino Code Files

PLEASE LOOK AT THE ASSIGNMENT PDF & THE CODE FILES I ATTACHED TO GET MORE CLEAR INSTRUCTIONS:

I have two arduino code files that need to be combined. One is a code file that contains the code to an algorithm that detects when two objects are going to crash into each other.

The other Arduino code file is a file that contains a user alert system for the previously mentioned code file. This file contains LED and sound alert code which is very simple.

Goal is to get the collision algorithm to work with the LED’s and with the sound all at the same time.

I HAVE ATTACHED BOTH OF THE CODE FILES. THE ASSIGNMENT IS TO COMBINE THEM AND GET THE CODE WORKING TOGETHER.

                                                                                                       

You can leave a response, or trackback from your own site.