Skip to content

Commit

Permalink
docs for main gui widget
Browse files Browse the repository at this point in the history
software overview
  • Loading branch information
sneakers-the-rat committed Aug 16, 2020
1 parent 766d937 commit 19fea69
Show file tree
Hide file tree
Showing 9 changed files with 498 additions and 361 deletions.
2 changes: 1 addition & 1 deletion _docs/_src/sass/_theme_etc_local.sass
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

h2
margin: 0

@media (max-width: $breakpoint-tablet)
margin-top: 1rem

Expand Down
4 changes: 3 additions & 1 deletion _docs/controller.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
controller module
.. _controller_overview:

Controller
=================

.. automodule:: pvp.controller.control_module
Expand Down
2 changes: 2 additions & 0 deletions _docs/coordinator.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _coordinator_overview:

coordinator module
========================

Expand Down
1 change: 0 additions & 1 deletion _docs/gui.main.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ Main GUI Module

.. automodule:: pvp.gui.main
:members:
:undoc-members:
:autosummary:
2 changes: 2 additions & 0 deletions _docs/gui.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _gui_overview:

GUI
======

Expand Down
4 changes: 3 additions & 1 deletion _docs/pvp.common.prefs.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
prefs
.. _prefs_overview:

Prefs
=========

.. automodule:: pvp.common.prefs
Expand Down
4 changes: 3 additions & 1 deletion _docs/pvp.common.values.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
values
.. _values_overview:

Values
========

Parameterization of variables and values
Expand Down
16 changes: 16 additions & 0 deletions _docs/software_overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,22 @@ Software Overview
.. raw:: html
:file: assets/images/pvp_software_overview_clickable.svg

PVP runs as three independent processes:

* The :ref:`GUI <gui_overview>` and :ref:`Coordinator <coordinator_overview>` run in the first process, receive user input, display system status, and relay :class:`~.message.ControlSetting` s to the :ref:`Controller <controller_overview>` .
* At launch, the :ref:`Coordinator <coordinator_overview>` spawns a :ref:`Controller <controller_overview>` that runs the logic of the ventilator based on control values from the GUI.
* The :ref:`Controller <controller_overview>` communicates with a third `pigpiod <http://abyz.me.uk/rpi/pigpio/>`_ process which communicates with the ventilation hardware

PVP is configured by

* The :ref:`Values <values_overview>` module parameterizes the different sensor and control values displayed by the GUI and used by the controller
* The :ref:`Prefs <prefs_overview>` module creates a ``prefs.json`` file in ``~/pvp`` that defines user-specific preferences.

PVP is launched like::

python3 -m pvp.main

And launch options can be displayed with the ``--help`` flag.

PVP Modules
------------
Expand Down

0 comments on commit 19fea69

Please sign in to comment.