Add files via upload
Add files via upload

CHANGE LOG:

1.  Added Timer1 : The Timer 1 is added to reset the Adruino to the Initializing mode if there are no CAN Messages available for 2s. The timer 1 output compare is set at 0x7A11 with CTC Mode with a prescaler of 1024. The timer counter is reset everytime a CAN Message is received.

2. Introduced calibration delay of 10 ms, which was calculated after running trial synchronization tests.

3. Initializing of variable Glob_Ard_Next used to be from 0. It will not initialize from Glob_Ard, implying multipier N as 0.

4. Changed evaluate_can() function to return type void from unsigned int. This stops the change of value for variable Glob_Ard_Next everytime there is CAN Message by removal of "if" condition in the infinite while loop in main program.

5. Introduced function t1_past_t2 to compare time values and return the positive difference.
wiedemannc/CameraSYNC,wiedemannc/CameraSYNC,wiedemannc/CameraSYNC