Skip to content

Commit 4a5b3f4

Browse files
committed
validation with xav
1 parent fab615f commit 4a5b3f4

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ The script can be run from `src/parser`.
7979
Refer to the [angle documentation](https://swarmus.github.io/SwarmUS-doc/sections/reference/Interloc/how_it_works/angle/) for a better understanding of the antenna pairs and their selection. <br />
8080
`EXPORT_PDOA` : `True` will prompt the second set of plots (slopes extraction) and save the calibration result in a **pickle** format.
8181
#### Behavioral descriptionand user interaction
82-
Upon runnning the script, the first plot to appear will ask the user to select points from which to offset the whole dataset. Theoretically, the plot should represent a **sin** wave. The goal is to offset the signal until it wraps minimally. If the **sin** is not wrapping, no points need to be selected, as no offset needs to be applied, simply close the plot. Otherwise, the points selected should then be the very bottom of a **sin** *parabola* section. Also, to obtain a better estimation of the offset needed, it is possible to select the very bottom of the *parabola*, and a top of this *parabola* that has wrapped over. Many points can be selected, the mean of the *y axis* will be used as the offset. This process has to be repeted for the number of `usedPairs` selected. Here is an exemple of the process.<br />
82+
Upon runnning the script, the first plot to appear will ask the user to select points from which to offset the whole dataset. Theoretically, the plot should represent a **sin** wave. The goal is to offset the signal until it wraps minimally. If the **sin** is not wrapping, no points need to be selected, as no offset needs to be applied, simply close the plot. Otherwise, the points selected should then be the very bottom of a **sin** *parabola* section. Also, to obtain a better estimation of the offset needed, it is possible to select the very bottom of the *parabola*, and a top of this *parabola* that has wrapped over. Many points can be selected, the mean of the *y axis* will be used as the offset. This process has to be repeted for the number of `usedPairs` selected. Closing the plot will save the selection and present the following antenna pair plot. Here is an exemple of the process.<br />
8383
![](img/ex_offset.png)<br />
8484
A plot of the result will then appear. If all curves are not wrapping, the first step is succesful. Otherwise, the script must be re-run and better points must be selected until all curves do not wrap. <br />
8585

src/parser/plotter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@ def extractSlopeExtremums(dPDOA, mdPDOA, namePDOA = "PDOA0"):
175175
plt.xlabel("Real angle (deg)")
176176
plt.title(f"Select points to represent {namePDOA} desired offset")
177177
t = "Many points can be selected, the mean of the *y axis* will be used as the offset.\n" \
178-
"If the sin is not wrapping, no points need to be selected, as no offset needs to be applied "
178+
"If the sin is not wrapping, no points need to be selected, as no offset needs to be applied.\n" \
179+
"Selection will be saved on exit"
179180
figtext(.02, .02, t)
180181

181182
plt.show()

0 commit comments

Comments
 (0)