Skip to content
Snippets Groups Projects
Commit 310885de authored by Claudio (xjobb Martina)'s avatar Claudio (xjobb Martina)
Browse files

examples2

parent a04e04ff
No related branches found
No related tags found
No related merge requests found
......@@ -222,7 +222,7 @@ package GPS_pw_modeling
Placement(visible = true, transformation(origin = {-90, 50}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
Modelica.Blocks.Sources.BooleanTable general_example(table = {0, 30, 100, 120, 125, 140, 145, 170, 175, 200, 205, 2000, 2010, 2050, 2500, 3000}) annotation(
Placement(visible = true, transformation(origin = {-90, 88}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
Modelica.Blocks.Sources.BooleanTable slow_and_fast(table = {20, 85, 90, 91, 100, 101, 110, 111, 120, 121, 1875, 2100}) annotation(
Modelica.Blocks.Sources.BooleanTable slow_and_fast(table = {20, 85, 90, 91, 100, 101, 110, 111, 120, 121, 1850, 1851, 1860, 1861, 1870, 1871, 1880, 1881, 1890, 1891, 1900, 1901, 1910, 1971, 1980, 1981, 1990, 1991, 2000, 2001}) annotation(
Placement(visible = true, transformation(origin = {-68, -12}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
Modelica.Blocks.Sources.IntegerTable constant_number(table = [0, 8]) annotation(
Placement(visible = true, transformation(origin = {-36, -60}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
......
......@@ -26,8 +26,53 @@ This event is diffucult to be defined for the same reasons discussed for the eve
\subsection{Model execution examples}
In this section will be presented which kind of considerations we can make on how GPS sensors work according to the retrieved model. Such considerations are related to (i) the presence of two different dynamcs in the retrieval of the position, one that is slow, the other that is fast, (ii) the different delays the system can present , (iii) the different ways we can duty-cycle the sensor and (iv) how variations on the number of visible satellites can affect the availability of the position.
In this section will be presented through the simulation of different scenarios which kind of considerations we can make on how GPS sensors work according to the retrieved model. Such considerations are related to (i) the presence of two different dynamcs in the retrieval of the position, one that is slow, the other that is fast, (ii) the different delays the system can present , (iii) the different ways we can duty-cycle the sensor and (iv) how variations on the number of visible satellites can affect the availability of the position.
%first two examples use the boolead table called slow_and_fast
\subsubsection{Start up of the sensor}
In the first simulation we want to show the existance of two dynamics in the sensor: a slow one related to the ascquisition and validity of the ephemeris data, and a fast one related to the acquisition of the ranging data. This simulation points also out what is the difference between warm and cold start. To do so we turn on the antenna first for a long time in order to be sure to acuire the ephemeris data of the visible satellies and then start to duty cycle the sensor to acquire the position at different points in time. A example of a turn on signal doing so is given in figure~\ref{fig:control1}.In figure~\ref{fig:position1} instead we can see the availability of the position measure given the input above described. We can see how at the first turn on of the sensor it takes a minute before the position becomes actually available, while afterward the position is available after only milliseconds(recall that the antenna is turned on and consumes powerexactly completely cohordinated to the turn\_on signal).
\begin{figure}[h]
\begin{center}
\includegraphics[width=0.70\columnwidth]{./img/control1.png}
\caption{Turn\_ON signal for the antenna in simulation 1.
\label{fig:control1}
}
\end{center}
\end{figure}
\begin{figure}[h]
\begin{center}
\includegraphics[width=0.70\columnwidth]{./img/position1.png}
\caption{Availability of the position measure in simulation 1.
\label{fig:position1}
}
\end{center}
\end{figure}
\subsubsection{Ephemeris data expiration}
In this second simulation we show an outage of the position measure availability due to the expiration of the ephemeris data. In this scenario the device is duty the cycling sensor until at some point the ephemeris data expire and a prolonged turn\_ON signal is required in order to update the ephemeris data and make available again the position. In figure~\ref{fig:control2} we can see the described turn\_ON signal while in~\ref{fig:position2} we can see the availability of the position measure. In this example the ephemeris data expire around time=1880 , we can see how the sampling suddently becomes uneffective and the position becomes available again only after around a minute in which it is continuously turned on and reads the ephemeris data.
\begin{figure}[h]
\begin{center}
\includegraphics[width=0.70\columnwidth]{./img/control2.png}
\caption{Turn\_ON signal for the antenna in simulation 2.
\label{fig:control2}
}
\end{center}
\end{figure}
\begin{figure}[h]
\begin{center}
\includegraphics[width=0.70\columnwidth]{./img/position2.png}
\caption{Availability of the position measure in simulation 2.
\label{fig:position2}
}
\end{center}
\end{figure}
\subsubsection{Visible satellites}
In this third scenario it is shown a possible way the number of visible satellites can influence the availability of the position
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment