The software was separated between a leader and follower PIC32, congruent with what is seen on the schematic. Below, we have included files to the pseudocode for each service and state machine.