Project

General

Profile

Cloud border plugin » History » Version 4

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

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
{{toc}}
6
7 1 Rafael Bailon-Ruiz
h2. How to use it
8 2 Rafael Bailon-Ruiz
9
h3. Scenario definition
10
11 4 Rafael Bailon-Ruiz
Add _CloudBorder_ to the _plugins_ list of an aircraft. The plugin does not have any parameter. Example:
12 2 Rafael Bailon-Ruiz
13
<pre><code class="yaml">
14
aircrafts:
15
    200:
16
        replay: false
17 1 Rafael Bailon-Ruiz
        type: 'pprz'
18
        plugins:
19
            # Other plugins ...
20
            - CloudBorder
21
</code></pre>
22
23 4 Rafael Bailon-Ruiz
Add the following dataview definitions. They are necessary for the GUI to fetch and display frontier points.
24
<pre><code class="yaml">
25
# DataViews
26
data_views:
27
    # View of the 'cloudborder' samples
28
    cloudborder:
29
        type: 'FetchView'
30
        name: 'CloudBorder'
31
        tags: ['cloudborder']
32
        displayable: false
33
34
    cloudborder_time:
35
        type: 'TimeView'
36
        name: 'CloudBorder Timed'
37
        parents: ['cloudborder']
38
</code></pre>
39
40
41 2 Rafael Bailon-Ruiz
h3. Graphical User Interface
42 3 Rafael Bailon-Ruiz
43 2 Rafael Bailon-Ruiz
Border points appear as yellow dots in the _mapping_ page. The "Cloud border" checkbox controls de display of these points.
44
45 1 Rafael Bailon-Ruiz
!Lace%20screenshot.png!
46 3 Rafael Bailon-Ruiz
47
h2. How does it work
48
49 4 Rafael Bailon-Ruiz
The plugin code resides in <code class="shell">nephelae_base/nephelae/plugins/CloudBorder.py</code>. It works by subscribing to the ivy <code class="python">dc_shot</code> messages from paparazzi. A <code class="python">CloudBorderSample</code> (<code class="python">cloudborder</code>) is disseminated each time a <code class="python">dc_shot</code> is received.