Skip to content

Commit

Permalink
CI maintenance (#1342)
Browse files Browse the repository at this point in the history
* non-interactive install

* updated controller architecture UML
  • Loading branch information
martukas authored Sep 5, 2023
1 parent bcfbfa8 commit 1f2cabc
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 31 deletions.
4 changes: 4 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
name: Install dependencies
command: |
sudo rm -rf /var/lib/apt/lists/*
export DEBIAN_FRONTEND=noninteractive
export FORCED_ROOT=1
./software/common/common.sh install
- run:
Expand All @@ -52,6 +53,7 @@ jobs:
name: Install dependencies
command: |
sudo rm -rf /var/lib/apt/lists/*
export DEBIAN_FRONTEND=noninteractive
export FORCED_ROOT=1
./software/controller/controller.sh install
- run:
Expand All @@ -72,6 +74,7 @@ jobs:
name: Install dependencies
command: |
sudo rm -rf /var/lib/apt/lists/*
export DEBIAN_FRONTEND=noninteractive
export FORCED_ROOT=1
./software/gui/gui.sh install
- run:
Expand All @@ -98,6 +101,7 @@ jobs:
name: Install dependencies
command: |
sudo rm -rf /var/lib/apt/lists/*
export DEBIAN_FRONTEND=noninteractive
export FORCED_ROOT=1
./software/controller/controller.sh install
- run:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
&& ./docs.sh build
&& touch _build/html/.nojekyll
- name: Link Checker
uses: lycheeverse/lychee-action@v1.6.1
uses: lycheeverse/lychee-action@v1.8.0
with:
fail: true
# Check all markdown and html files
Expand Down
Empty file modified software/design/GUI_architecture.md
100755 → 100644
Empty file.
31 changes: 1 addition & 30 deletions software/design/controller_architecture.md
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -78,36 +78,7 @@ of code in this critical part of the system.

The cycle controller follows a modular design, described below.

<!-- See https://github.com/TLmaK0/gravizo -->
![Graph of components in cycle controller](https://g.gravizo.com/source/cc_graph_mark?https%3A%2F%2Fraw.githubusercontent.com%2FRespiraWorks%2FVentilator%2Fmaster%2Fsoftware%2Fdesign%2Fcontroller_architecture.md)
<!--
cc_graph_mark
digraph G {
subgraph cluster_RPI {
label="GUI (Raspberry Pi)"
labelloc=b;
GUI [label="Qt app"]
}
subgraph cluster_CC {
label = "Cycle Controller (STM32)";
labelloc = b;
"Main loop" -> "Controller"
"Main loop" -> "Comms"
"Controller" -> "Sensors"
"Controller" -> "Actuators"
"Controller" -> "Breath FSM"
"Actuators" -> HAL
"Sensors" -> HAL
}
"Comms" -> GUI
GUI -> "Comms"
}
cc_graph_mark
-->
![Graph of components in cycle controller](images/controller_architecture.png)

The main loop runs every 10ms and has the following responsibilities:

Expand Down
Empty file modified software/design/images/GUI_architecture.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions software/design/images/controller_architecture.dot
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
digraph G {
subgraph cluster_RPI {
label="GUI (Raspberry Pi)"
labelloc=b;
GUI [label="Qt app"]
}

subgraph cluster_CC {
label = "Cycle Controller (STM32)";
labelloc = b;
"Main loop" -> "Controller"
"Main loop" -> "Comms"

"Controller" -> "Sensors"
"Controller" -> "Actuators"
"Controller" -> "Breath FSM"

"Actuators" -> HAL
"Sensors" -> HAL
}

"Comms" -> GUI
GUI -> "Comms"
}
3 changes: 3 additions & 0 deletions software/design/images/controller_architecture.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1f2cabc

Please sign in to comment.