Skip to content
Snippets Groups Projects
Commit b243a4ba authored by dawehr's avatar dawehr
Browse files

gen_diagram can now be run with "make diagram" from the top-level folder, and it will create a

diagram for you.
parent 1f6f0374
No related branches found
No related tags found
No related merge requests found
......@@ -18,16 +18,15 @@ libs:
$(MAKE) -C src/commands
$(MAKE) -C src/quad_app
bins:
$(MAKE) -C src/virt_quad
bins: libs
$(MAKE) -C src/virt_quad clean default
$(MAKE) -C src/gen_diagram clean default
zybo:
bash scripts/build_zybo.sh
# For creating an image of the control network.
diagram:
$(MAKE) libs
$(MAKE) -C src/gen_diagram run
diagram: bins
bash src/gen_diagram/create_png.sh
boot: $(BOOT)
......
# Running this make file directly will not re-link with quad_app, even if it has changed
# You should run `make diagram` from the top-level quad folder
TOP=../..
NAME = gen_diagram
......
#/bin/bash
dot -Tpng "$(dirname $0)/network.dot" -o "$(dirname $0)/network.png"
cd $(dirname $0)
./../../bin/gen_diagram
dot -Tpng network.dot -o network.png
......@@ -7,7 +7,7 @@ label="<f0>Roll PID |<f1> --\>Cur point |<f2> --\>Setpoint |<f3> --\>dt |<f4> [
"Ts_IMU" -> "Roll PID":f3 [label="Constant"]
"Pitch PID"[shape=record
label="<f0>Pitch PID |<f1> --\>Cur point |<f2> --\>Setpoint |<f3> --\>dt |<f4> [Kp=15.000] |<f5> [Ki=0.000] |<f6> [Kd=0.200] |<f7> [alpha=0.000]"]
"Pitch" -> "Pitch PID":f1 [label="Constant"]
"Pitch trim add" -> "Pitch PID":f1 [label="Sum"]
"RC Pitch" -> "Pitch PID":f2 [label="Constant"]
"Ts_IMU" -> "Pitch PID":f3 [label="Constant"]
"Yaw PID"[shape=record
......@@ -65,6 +65,12 @@ label="<f0>Pitch |<f1> [Constant=0.000]"]
label="<f0>Roll |<f1> [Constant=0.000]"]
"Yaw"[shape=record
label="<f0>Yaw |<f1> [Constant=0.000]"]
"Pitch trim"[shape=record
label="<f0>Pitch trim |<f1> [Constant=0.000]"]
"Pitch trim add"[shape=record
label="<f0>Pitch trim add |<f1> --\>Summand 1 |<f2> --\>Summand 2"]
"Pitch trim" -> "Pitch trim add":f1 [label="Constant"]
"Pitch" -> "Pitch trim add":f2 [label="Constant"]
"dTheta"[shape=record
label="<f0>dTheta |<f1> [Constant=0.000]"]
"dPhi"[shape=record
......@@ -72,13 +78,13 @@ label="<f0>dPhi |<f1> [Constant=0.000]"]
"dPsi"[shape=record
label="<f0>dPsi |<f1> [Constant=0.000]"]
"P PWM Clamp"[shape=record
label="<f0>P PWM Clamp |<f1> --\>Bounds in |<f2> [Min=-20000.000] |<f3> [Max=20000.000]"]
label="<f0>P PWM Clamp |<f1> --\>Bounds in |<f2> [Min=-30000.000] |<f3> [Max=30000.000]"]
"Pitch Rate PID" -> "P PWM Clamp":f1 [label="Correction"]
"R PWM Clamp"[shape=record
label="<f0>R PWM Clamp |<f1> --\>Bounds in |<f2> [Min=-20000.000] |<f3> [Max=20000.000]"]
label="<f0>R PWM Clamp |<f1> --\>Bounds in |<f2> [Min=-30000.000] |<f3> [Max=30000.000]"]
"Roll Rate PID" -> "R PWM Clamp":f1 [label="Correction"]
"Y PWM Clamp"[shape=record
label="<f0>Y PWM Clamp |<f1> --\>Bounds in |<f2> [Min=-20000.000] |<f3> [Max=20000.000]"]
label="<f0>Y PWM Clamp |<f1> --\>Bounds in |<f2> [Min=-30000.000] |<f3> [Max=30000.000]"]
"Yaw Rate PID" -> "Y PWM Clamp":f1 [label="Correction"]
"VRPN X"[shape=record
label="<f0>VRPN X |<f1> [Constant=0.000]"]
......
quad/src/gen_diagram/network.png

303 KiB | W: | H:

quad/src/gen_diagram/network.png

321 KiB | W: | H:

quad/src/gen_diagram/network.png
quad/src/gen_diagram/network.png
quad/src/gen_diagram/network.png
quad/src/gen_diagram/network.png
  • 2-up
  • Swipe
  • Onion skin
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment