diff --git a/chapters/systemDesign.tex b/chapters/systemDesign.tex index f421603348636e34e5f9ccbecec8f694153d27b7..9e6022d320486a990319f6f9c1e76aab5cea8a9b 100644 --- a/chapters/systemDesign.tex +++ b/chapters/systemDesign.tex @@ -1,21 +1,30 @@ \subsection{Code of Conduct} The code follows a simple code of conduct. This generally helps avoid variable naming collisions and similar issues which may result in undefined behavior. With much consideration to simplicity in development it has been kept limited to resolve the most important code structuring issues. - - Each file of code contains a group of functions related to a specific functionality. To avoid memory leaks and overwriting data, every function and global variable in a file has a prefix, which is the same as the name of the file. Enabling a developer to easily follow the codeflow through files when coding or debugging. - + + Each file of code contains a group of functions related to a specific functionality. To avoid memory leaks and overwriting data, every function and global variable in a file has a prefix, which is the same as the name of the file. Enabling a developer to easily follow the code flow through files when coding or debugging. + The prefix must begin with a capital letter and variables and functions should begin with a lower case letter, unless it is an abbreviation, though this is discouraged. - + Most of the functionality has to be initialized on boot before it can be used. The decision to make an \texttt{Prefix\_init()} function makes it easy to keep code flow and code names similar throughout the code. - - + \begin{center} + \begin{tabular}{ r l } + Prefix & \texttt{IMU} \\ + Filename & \texttt{IMU.c} \\ + & \texttt{IMU.h} \\ + Namespace & \texttt{IMU\_variable} \\ + & \texttt{IMU\_functionName()}\\ + Initialization & \texttt{IMU\_init()} + \end{tabular} + \end{center} + \subsection{Static Design} \subsubsection{Class Diagram} \begin{figure}[H] \centering \includegraphics[width=\textwidth]{Pictures/uml} \end{figure} - + \subsubsection{Module Diagram} \begin{figure}[H] \centering @@ -26,4 +35,4 @@ \subsection{Dynamic Design} \subsubsection{Activity Diagram} \subsubsection{Sequence Diagram} - \subsubsection{State Diagram} \ No newline at end of file + \subsubsection{State Diagram}