\hypertarget{data_fillings_8cpp}{
\section{D:/Basile/Visual\-Cpp\-Projects/hydro\-MEX3/hydro\-MEX3/hydro\_\-source/data\-Fillings.cpp File Reference}
\label{data_fillings_8cpp}\index{D:/Basile/VisualCppProjects/hydroMEX3/hydroMEX3/hydro_source/dataFillings.cpp@{D:/Basile/VisualCppProjects/hydroMEX3/hydroMEX3/hydro\_\-source/dataFillings.cpp}}
}
{\tt \#include \char`\"{}math.h\char`\"{}}\par
{\tt \#include \char`\"{}mex.h\char`\"{}}\par
{\tt \#include \char`\"{}string.h\char`\"{}}\par
{\tt \#include \char`\"{}Datas.h\char`\"{}}\par
{\tt \#include \char`\"{}data\-Fillings.h\char`\"{}}\par


Include dependency graph for data\-Fillings.cpp:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=343pt]{data_fillings_8cpp__incl}
\end{center}
\end{figure}
\subsection*{Defines}
\begin{CompactItemize}
\item 
\#define \hyperlink{data_fillings_8cpp_1daf785e3f68d293c7caa1c756d5cb74}{pi}~3.141592653589793
\item 
\#define \hyperlink{data_fillings_8cpp_598a3330b3c21701223ee0ca14316eca}{PI}~3.141592653589793
\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
void \hyperlink{data_fillings_8cpp_e94fa71b02ae99c83ec77ba5bdebfd47}{data\_\-init} (\hyperlink{structdatas}{datas} $\ast$d)
\begin{CompactList}\small\item\em Initialize constants in the data strucure datas. \item\end{CompactList}\item 
void \hyperlink{data_fillings_8cpp_3d32a8084c8baab334f4295d31bb2207}{data\_\-update\_\-state} (\hyperlink{structdatas}{datas} $\ast$d, double $\ast$state)
\begin{CompactList}\small\item\em Update data structure datas from state-vector. \item\end{CompactList}\item 
void \hyperlink{data_fillings_8cpp_86fbc3d1bc3bf5d7f41a047831849253}{data\_\-update\_\-param} (\hyperlink{structdatas}{datas} $\ast$d, \hyperlink{structparameters}{parameters} $\ast$P)
\begin{CompactList}\small\item\em Update data structure datas from values from structure $\ast$P. \item\end{CompactList}\item 
void \hyperlink{data_fillings_8cpp_49d22fe2b98fd375ff62a844a0ddff2c}{angles\_\-update} (\hyperlink{structdatas}{datas} $\ast$d)
\begin{CompactList}\small\item\em Updates angles from Target/Sliders instrument values. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
\begin{Desc}
\item[Author:]\href{mailto:basile.graf@epfl.ch}{\tt basile.graf@epfl.ch}\end{Desc}
This file contains stuff for updating the datas datastructure pointed by $\ast$d 

Definition in file \hyperlink{data_fillings_8cpp-source}{data\-Fillings.cpp}.

\subsection{Define Documentation}
\hypertarget{data_fillings_8cpp_598a3330b3c21701223ee0ca14316eca}{
\index{dataFillings.cpp@{data\-Fillings.cpp}!PI@{PI}}
\index{PI@{PI}!dataFillings.cpp@{data\-Fillings.cpp}}
\subsubsection[PI]{\setlength{\rightskip}{0pt plus 5cm}\#define PI~3.141592653589793}}
\label{data_fillings_8cpp_598a3330b3c21701223ee0ca14316eca}




Definition at line 20 of file data\-Fillings.cpp.\hypertarget{data_fillings_8cpp_1daf785e3f68d293c7caa1c756d5cb74}{
\index{dataFillings.cpp@{data\-Fillings.cpp}!pi@{pi}}
\index{pi@{pi}!dataFillings.cpp@{data\-Fillings.cpp}}
\subsubsection[pi]{\setlength{\rightskip}{0pt plus 5cm}\#define pi~3.141592653589793}}
\label{data_fillings_8cpp_1daf785e3f68d293c7caa1c756d5cb74}




Definition at line 19 of file data\-Fillings.cpp.

\subsection{Function Documentation}
\hypertarget{data_fillings_8cpp_49d22fe2b98fd375ff62a844a0ddff2c}{
\index{dataFillings.cpp@{data\-Fillings.cpp}!angles_update@{angles\_\-update}}
\index{angles_update@{angles\_\-update}!dataFillings.cpp@{data\-Fillings.cpp}}
\subsubsection[angles\_\-update]{\setlength{\rightskip}{0pt plus 5cm}void angles\_\-update (\hyperlink{structdatas}{datas} $\ast$ {\em d})}}
\label{data_fillings_8cpp_49d22fe2b98fd375ff62a844a0ddff2c}


Updates angles from Target/Sliders instrument values. 

Updates sufaces-angles from Target/Sliders instrument values. Angles should be controlled via these instrument variables so that both angles AND instrument appearence are modified! \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em $\ast$d}]: pointer to the datas data-structure \end{description}
\end{Desc}


Definition at line 187 of file data\-Fillings.cpp.

References datas::Cal\_\-left\_\-neutral, datas::Cal\_\-pitch\_\-neutral, datas::Cal\_\-right\_\-neutral, datas::Cal\_\-yaw\_\-neutral, datas::Hslider\_\-x, datas::tan\-Cal\_\-left, datas::tan\-Cal\_\-pitch, datas::tan\-Cal\_\-right, datas::tan\-Cal\_\-yaw, datas::tan\-Cal\_\-yaw0, datas::target\_\-x, datas::target\_\-y, and datas::Vslider\_\-x.

Referenced by Draw\-GLScene().\hypertarget{data_fillings_8cpp_e94fa71b02ae99c83ec77ba5bdebfd47}{
\index{dataFillings.cpp@{data\-Fillings.cpp}!data_init@{data\_\-init}}
\index{data_init@{data\_\-init}!dataFillings.cpp@{data\-Fillings.cpp}}
\subsubsection[data\_\-init]{\setlength{\rightskip}{0pt plus 5cm}void data\_\-init (\hyperlink{structdatas}{datas} $\ast$ {\em d})}}
\label{data_fillings_8cpp_e94fa71b02ae99c83ec77ba5bdebfd47}


Initialize constants in the data strucure datas. 

Initialisation for constant values (like accleration $ g $, ...) \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em $\ast$d}]: pointer to the datas data-structure \end{description}
\end{Desc}


Definition at line 26 of file data\-Fillings.cpp.

References datas::A\_\-pitch, datas::A\_\-sail, datas::A\_\-structure, datas::Baume, datas::CD\_\-structure, datas::Chord, datas::Chord\_\-max, datas::Chord\_\-min, datas::Chord\_\-pitch, datas::Chord\_\-yaw, datas::E\_\-foils, datas::E\_\-yaw, datas::Env\_\-pitch, datas::epsilon, datas::Fac\_\-update, datas::g, datas::Hslider\_\-x, datas::Ix, datas::Iy, datas::Iz, datas::L\_\-mast, datas::L\_\-nose, datas::Long, datas::M, pi, datas::rho, datas::rho\_\-air, datas::tan\-Cal\_\-left, datas::tan\-Cal\_\-pitch, datas::tan\-Cal\_\-right, datas::target\_\-x, datas::target\_\-y, datas::V\_\-wave0, datas::Vslider\_\-x, datas::Wave\_\-amp0, datas::Wave\_\-angle0, and datas::Wind.

Referenced by mex\-Function().\hypertarget{data_fillings_8cpp_86fbc3d1bc3bf5d7f41a047831849253}{
\index{dataFillings.cpp@{data\-Fillings.cpp}!data_update_param@{data\_\-update\_\-param}}
\index{data_update_param@{data\_\-update\_\-param}!dataFillings.cpp@{data\-Fillings.cpp}}
\subsubsection[data\_\-update\_\-param]{\setlength{\rightskip}{0pt plus 5cm}void data\_\-update\_\-param (\hyperlink{structdatas}{datas} $\ast$ {\em d}, \hyperlink{structparameters}{parameters} $\ast$ {\em P})}}
\label{data_fillings_8cpp_86fbc3d1bc3bf5d7f41a047831849253}


Update data structure datas from values from structure $\ast$P. 

Update data structure datas from values from structure $\ast$P comming from MATLAB \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em $\ast$d}]: pointer to the datas data-structure \item[{\em $\ast$P}]: pointer to parameters strucure comming from MATLAB \end{description}
\end{Desc}


Definition at line 115 of file data\-Fillings.cpp.

References datas::alpha\_\-foils, datas::alpha\_\-left, datas::alpha\_\-right, datas::angle\_\-girouette, datas::Cal\_\-left\_\-neutral, datas::Cal\_\-pitch\_\-neutral, datas::Cal\_\-right\_\-neutral, datas::Cal\_\-yaw\_\-neutral, datas::E\_\-yaw, datas::Env, datas::Fac\_\-update, datas::G\_\-shift, datas::L\_\-mast, datas::Lambda, datas::Lambda0, datas::Lambda1, datas::Lambda2, datas::Long, datas::max\_\-abs\_\-angle\_\-baume, datas::N, parameters::param, pi, datas::tan\-Angle\_\-sail, datas::tan\-Cal\_\-left, datas::tan\-Cal\_\-right, datas::tan\-Cal\_\-yaw, datas::tan\-Cal\_\-yaw0, datas::V\_\-wave, datas::V\_\-wave0, datas::V\_\-wave1, datas::V\_\-wave2, datas::Wave\_\-amp, datas::Wave\_\-amp0, datas::Wave\_\-amp1, datas::Wave\_\-amp2, datas::Wave\_\-angle, datas::Wave\_\-angle0, datas::Wave\_\-angle1, datas::Wave\_\-angle2, datas::Wind, datas::Wind\_\-angle, datas::Wind\_\-x, datas::Wind\_\-y, datas::x\_\-foils, datas::x\_\-pitch, datas::x\_\-sail, datas::x\_\-yaw, datas::y\_\-foil\_\-left, datas::y\_\-foil\_\-right, datas::y\_\-pitch, datas::y\_\-sail, datas::y\_\-yaw, datas::z\_\-foils, datas::z\_\-pitch, datas::z\_\-sail, and datas::z\_\-yaw.

Referenced by mex\-Function().\hypertarget{data_fillings_8cpp_3d32a8084c8baab334f4295d31bb2207}{
\index{dataFillings.cpp@{data\-Fillings.cpp}!data_update_state@{data\_\-update\_\-state}}
\index{data_update_state@{data\_\-update\_\-state}!dataFillings.cpp@{data\-Fillings.cpp}}
\subsubsection[data\_\-update\_\-state]{\setlength{\rightskip}{0pt plus 5cm}void data\_\-update\_\-state (\hyperlink{structdatas}{datas} $\ast$ {\em d}, double $\ast$ {\em state})}}
\label{data_fillings_8cpp_3d32a8084c8baab334f4295d31bb2207}


Update data structure datas from state-vector. 

Update data structure datas from state-vector (i.e. state or $ \vec{q} $) \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em $\ast$d}]: pointer to the datas data-structure \item[{\em state,:}]pointer to state vector ($ \vec{q} $, double\mbox{[}12\mbox{]}) \end{description}
\end{Desc}


Definition at line 86 of file data\-Fillings.cpp.

References datas::dphi, datas::dpsi, datas::dtheta, datas::dx, datas::dy, datas::dz, datas::phi, datas::psi, datas::theta, datas::x, datas::y, and datas::z.

Referenced by compute\_\-state\_\-dot(), f(), and mex\-Function().