Skip to content
Snippets Groups Projects
Commit a5c2c7dc authored by duc anh vu's avatar duc anh vu
Browse files

add documentation for pc 2 car communication

parent fa3a349b
Branches
No related merge requests found
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
\usepackage{geometry} \usepackage{geometry}
\usepackage{pdflscape} \usepackage{pdflscape}
%\geometry{scale = 0.5} %for class diagram??? %\geometry{scale = 0.5} %for class diagram???
\usepackage{listings}
\usepackage{xcolor}
%%% GLOSSARY %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% GLOSSARY %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\input{../glossary.tex} \input{../glossary.tex}
...@@ -67,6 +69,7 @@ ...@@ -67,6 +69,7 @@
\subfile{sections/organisation} \subfile{sections/organisation}
\subfile{sections/ausbaustufen} \subfile{sections/ausbaustufen}
\subfile{sections/usecases} \subfile{sections/usecases}
\subfile{sections/kommunikation}
\subfile{sections/architektur} \subfile{sections/architektur}
\subfile{sections/modspez} \subfile{sections/modspez}
\subfile{sections/test} \subfile{sections/test}
...@@ -83,4 +86,4 @@ ...@@ -83,4 +86,4 @@
\addcontentsline{toc}{section}{Bibliography} \addcontentsline{toc}{section}{Bibliography}
\printbibliography \printbibliography
\end{document} \end{document}
\ No newline at end of file
\documentclass[../mainDocument.tex]{subfiles}
\colorlet{punct}{red!60!black}
\definecolor{background}{HTML}{EEEEEE}
\definecolor{delim}{RGB}{20,105,176}
\colorlet{numb}{magenta!60!black}
\lstdefinelanguage{json}{
basicstyle=\normalfont\ttfamily,
numbers=left,
numberstyle=\scriptsize,
stepnumber=1,
numbersep=8pt,
showstringspaces=false,
breaklines=true,
frame=lines,
backgroundcolor=\color{background},
literate=
*{0}{{{\color{numb}0}}}{1}
{1}{{{\color{numb}1}}}{1}
{2}{{{\color{numb}2}}}{1}
{3}{{{\color{numb}3}}}{1}
{4}{{{\color{numb}4}}}{1}
{5}{{{\color{numb}5}}}{1}
{6}{{{\color{numb}6}}}{1}
{7}{{{\color{numb}7}}}{1}
{8}{{{\color{numb}8}}}{1}
{9}{{{\color{numb}9}}}{1}
{:}{{{\color{punct}{:}}}}{1}
{,}{{{\color{punct}{,}}}}{1}
{\{}{{{\color{delim}{\{}}}}{1}
{\}}{{{\color{delim}{\}}}}}{1}
{[}{{{\color{delim}{[}}}}{1}
{]}{{{\color{delim}{]}}}}{1},
}
\begin{document}
\section{Kommunikation}
\subsection{PC-2-Car}
Die Nachrichten vom Steuer-PC sollen im JSON-Format an das Fahrzeug \"uber WLAN gesendet werden.\\
\begin{lstlisting}[language=json,firstnumber=1]
{"PC2Car": {
"command": "integer",
"value": "integer",
}}
\end{lstlisting}
\begin{center}
\begin{tabular}{|l|p{6cm}|l|l|}
\hline
Name & Beschreibung & Command & Value \\ \hline
enableLogging & Loggingfunktion einschalten. & 0x01 & ignore \\ \hline
disableLogging & Loggingfunktion ausschalten. & 0x02 & ignore \\ \hline
enablePlatoon & Dieses Fahrzeug versucht so lange bis der disablePlatoon-Befehl kommt, ein Platoon zu erstellen bzw. einem Platoon beitreten. & 0x03 & ignore \\ \hline
disablePlatoon & Dieses Fahrzeug h\"ort auf ein Platoon bilden und beitreten zu wollen. & 0x04 & ignore \\ \hline
setIPD & IPD auf den Wert setzen. & 0x05 & unsgined int \\ \hline
setPS & PS auf den Wert setzen. & 0x06 & unsigned int \\ \hline
setSpeed & Geschwindigkeit f\"ur dieses Fahrzeug auf den Wert \"andern. & 0x07 & unsigned int\\ \hline
enableRCMode & RC f\"ur dieses Fahrzeug aktivieren. & 0x08 & ignore \\ \hline
disableRCMode & RC f\"ur dieses Fahrzeug deaktivieren. & 0x09 & ignore \\
\hline
\end{tabular}
\end{center}
\end{document}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment