Skip to content

Commit

Permalink
Added diagram of BF SITL, fixing typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuxliri committed Dec 4, 2023
1 parent c29592c commit e5ca236
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 1 deletion.
4 changes: 3 additions & 1 deletion BETAFLIGHT_README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
The Gazebo support for Betaflight was added in this [PR](https://github.com/betaflight/betaflight/pull/12346).
It's already available in `master` branch.

![SITL Diagram](_images/betaflight-simulation.drawio.png)

## Packages available

- **betaflight_configurator**: This package download and install in the workspace the
Expand Down Expand Up @@ -31,7 +33,7 @@ It's already available in `master` branch.

- **betaflight_gazebo**: This plugin will send the state data to the SITL and it will received
the data from the motors [-1, 1].
- Sending state output to SITL at UDP link: 127.0.0.1:9003
- Sending state output to SITL at UDP link: 127.0.0.1:9002
- Receiving PWM from SITL at UDP server: 127.0.0.1:9003

- **betaflight_sim**: Download and install the betaflight flight controller.
Expand Down
57 changes: 57 additions & 0 deletions _images/betaflight-simulation.drawio
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<mxfile host="app.diagrams.net" modified="2023-12-04T12:16:00.441Z" agent="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0" etag="40v-NI-rUVCWoXFlB1P0" version="22.1.5" type="device">
<diagram id="R2lEEEUBdFMjLlhIrx00" name="Page-1">
<mxGraphModel dx="862" dy="867" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0" extFonts="Permanent Marker^https://fonts.googleapis.com/css?family=Permanent+Marker">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="XUrNSgdVez-k1NW6P66u-6" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;startArrow=block;startFill=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="179" y="330" as="targetPoint" />
<mxPoint x="179" y="240" as="sourcePoint" />
</mxGeometry>
</mxCell>
<mxCell id="XUrNSgdVez-k1NW6P66u-7" value="&lt;div&gt;TCP :5761&lt;/div&gt;&lt;div&gt;MultiWii Serial Protocol&lt;br&gt;&lt;/div&gt;" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" vertex="1" connectable="0" parent="XUrNSgdVez-k1NW6P66u-6">
<mxGeometry x="-0.0056" y="-3" relative="1" as="geometry">
<mxPoint x="4" y="-3" as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="XUrNSgdVez-k1NW6P66u-12" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.25;exitDx=0;exitDy=0;entryX=0;entryY=0.25;entryDx=0;entryDy=0;" edge="1" parent="1" source="XUrNSgdVez-k1NW6P66u-1" target="XUrNSgdVez-k1NW6P66u-2">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="XUrNSgdVez-k1NW6P66u-16" value="&lt;div&gt;UDP:9002&lt;/div&gt;&lt;div&gt;Motor&#39;s PWM [-1, 1]&lt;br&gt;&lt;/div&gt;" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" vertex="1" connectable="0" parent="XUrNSgdVez-k1NW6P66u-12">
<mxGeometry x="-0.1459" y="1" relative="1" as="geometry">
<mxPoint x="11" y="-4" as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="XUrNSgdVez-k1NW6P66u-1" value="Betaflight SITL" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
<mxGeometry x="120" y="180" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="XUrNSgdVez-k1NW6P66u-13" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.75;exitDx=0;exitDy=0;entryX=1;entryY=0.75;entryDx=0;entryDy=0;" edge="1" parent="1" source="XUrNSgdVez-k1NW6P66u-2" target="XUrNSgdVez-k1NW6P66u-1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="XUrNSgdVez-k1NW6P66u-17" value="&lt;div&gt;UDP:9003&lt;/div&gt;&lt;div&gt;Drone state&lt;/div&gt;" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" vertex="1" connectable="0" parent="XUrNSgdVez-k1NW6P66u-13">
<mxGeometry x="0.0703" y="1" relative="1" as="geometry">
<mxPoint as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="XUrNSgdVez-k1NW6P66u-2" value="Gazebo SIM" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;" vertex="1" parent="1">
<mxGeometry x="425" y="180" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="XUrNSgdVez-k1NW6P66u-8" value="MSP base station" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;" vertex="1" parent="1">
<mxGeometry x="120" y="330" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="XUrNSgdVez-k1NW6P66u-10" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="XUrNSgdVez-k1NW6P66u-9" target="XUrNSgdVez-k1NW6P66u-1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="XUrNSgdVez-k1NW6P66u-11" value="&lt;div&gt;UDP :9004&lt;/div&gt;&lt;div&gt;18 channels [0, 2000]&lt;br&gt;&lt;/div&gt;" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" vertex="1" connectable="0" parent="XUrNSgdVez-k1NW6P66u-10">
<mxGeometry x="0.0889" y="2" relative="1" as="geometry">
<mxPoint as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="XUrNSgdVez-k1NW6P66u-9" value="RC receiver" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" vertex="1" parent="1">
<mxGeometry x="120" y="30" width="120" height="60" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>
Binary file added _images/betaflight-simulation.drawio.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 e5ca236

Please sign in to comment.