We designed our project using a provided events and services framework organized in a hierarchical state machine (HSM). Below are links to pages with the state charts for the HSM; the pseudo code for all SMs, services, and event checkers; and all of the C files that we used for the project.