Project

General

Profile

Cloud border plugin » History » Version 3

Rafael Bailon-Ruiz, 2021-03-05 15:03

1 1 Rafael Bailon-Ruiz
h1. Cloud border plugin
2
3 2 Rafael Bailon-Ruiz
The cloud border plugin registers the location of the cloud border as transmitted by paparazzi, when the liquid water content value changes from zero to positive and vice versa. Activating this plugin also enables the display of border points in the GUI.
4 1 Rafael Bailon-Ruiz
5 2 Rafael Bailon-Ruiz
<code class="yaml">
6 1 Rafael Bailon-Ruiz
7 2 Rafael Bailon-Ruiz
</code>
8
9
{{toc}}
10
11
h2. How to use it
12
13
h3. Scenario definition
14
15
Add _CloudBorder_ to the _plugins_ list of an aircraft. The plugin does not have any parameter.
16
17
Example:
18
<pre><code class="yaml">
19
aircrafts:
20
    200:
21
        replay: false
22
        type: 'pprz'
23
        plugins:
24
            # Other plugins ...
25
            - CloudBorder
26
</code></pre>
27
28
h3. Graphical User Interface
29
30 3 Rafael Bailon-Ruiz
Border points appear as yellow dots in the _mapping_ page. The "Cloud border" checkbox controls de display of these points.
31 2 Rafael Bailon-Ruiz
32 3 Rafael Bailon-Ruiz
!Lace%20screenshot.png!
33 2 Rafael Bailon-Ruiz
34
h2. How does it work
35 1 Rafael Bailon-Ruiz
36 3 Rafael Bailon-Ruiz
37
The plugin code resides in <code class="shell">nephelae_base/nephelae/plugins/CloudBorder.py</code>.
38
39
It works by subscribing to the <code class="python">dc_shot</code> messages from ivy. A <code class="python">CloudBorderSample</code> is disseminated each time a <code class="python">dc_shot</code> is received.