add Flussdiagramme für Programmablauf

main
Sebastian Preisner 3 years ago
parent c8a6343e8e
commit 40a53a2c3a

@ -26,15 +26,15 @@
inkscape:pagecheckerboard="0" inkscape:pagecheckerboard="0"
inkscape:document-units="mm" inkscape:document-units="mm"
showgrid="false" showgrid="false"
inkscape:zoom="0.9461521" inkscape:zoom="1.3380611"
inkscape:cx="352.48033" inkscape:cx="331.44973"
inkscape:cy="263.69967" inkscape:cy="272.78275"
inkscape:window-width="1720" inkscape:window-width="1712"
inkscape:window-height="1380" inkscape:window-height="1409"
inkscape:window-x="1720" inkscape:window-x="1720"
inkscape:window-y="32" inkscape:window-y="0"
inkscape:window-maximized="0" inkscape:window-maximized="0"
inkscape:current-layer="layer2" inkscape:current-layer="layer1"
fit-margin-top="0" fit-margin-top="0"
fit-margin-left="0" fit-margin-left="0"
fit-margin-right="0" fit-margin-right="0"
@ -73,8 +73,7 @@
<g <g
inkscape:groupmode="layer" inkscape:groupmode="layer"
id="layer2" id="layer2"
inkscape:label="Kreise" inkscape:label="Kreise">
sodipodi:insensitive="true">
<circle <circle
style="fill:#ffa3a3;fill-opacity:0.388243;stroke:#ff0013;stroke-width:0.264999;stroke-dasharray:0.794999, 0.264999;stroke-opacity:1" style="fill:#ffa3a3;fill-opacity:0.388243;stroke:#ff0013;stroke-width:0.264999;stroke-dasharray:0.794999, 0.264999;stroke-opacity:1"
id="circle2466" id="circle2466"
@ -110,14 +109,14 @@
<text <text
xml:space="preserve" xml:space="preserve"
style="font-size:3.52777px;line-height:1.25;font-family:sans-serif;stroke-width:0.264583" style="font-size:3.52777px;line-height:1.25;font-family:sans-serif;stroke-width:0.264583"
x="117.67733" x="104.62843"
y="87.067345" y="79.26403"
id="text7614"><tspan id="text7614"><tspan
sodipodi:role="line" sodipodi:role="line"
id="tspan7612" id="tspan7612"
style="stroke-width:0.264583" style="stroke-width:0.264583"
x="117.67733" x="104.62843"
y="87.067345">Zone 2</tspan></text> y="79.26403">Zone 2</tspan></text>
<text <text
xml:space="preserve" xml:space="preserve"
style="font-size:3.52777px;line-height:1.25;font-family:sans-serif;stroke-width:0.264583" style="font-size:3.52777px;line-height:1.25;font-family:sans-serif;stroke-width:0.264583"
@ -132,14 +131,14 @@
<text <text
xml:space="preserve" xml:space="preserve"
style="font-size:3.52777px;line-height:1.25;font-family:sans-serif;stroke-width:0.264583" style="font-size:3.52777px;line-height:1.25;font-family:sans-serif;stroke-width:0.264583"
x="133.18498" x="109.9843"
y="69.314644" y="55.53199"
id="text12796"><tspan id="text12796"><tspan
sodipodi:role="line" sodipodi:role="line"
id="tspan12794" id="tspan12794"
style="stroke-width:0.264583" style="stroke-width:0.264583"
x="133.18498" x="109.9843"
y="69.314644">Zone 3</tspan></text> y="55.53199">Zone 3</tspan></text>
<circle <circle
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.265;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.265;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="path15436" id="path15436"
@ -172,14 +171,14 @@
<text <text
xml:space="preserve" xml:space="preserve"
style="font-size:7.76111px;line-height:1.25;font-family:sans-serif;stroke-width:0.264583" style="font-size:7.76111px;line-height:1.25;font-family:sans-serif;stroke-width:0.264583"
x="61.166931" x="123.93523"
y="84.364799" y="82.982758"
id="text29678"><tspan id="text29678"><tspan
sodipodi:role="line" sodipodi:role="line"
id="tspan29676" id="tspan29676"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:7.76111px;font-family:sans-serif;-inkscape-font-specification:'sans-serif Bold';stroke-width:0.264583" style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:7.76111px;font-family:sans-serif;-inkscape-font-specification:'sans-serif Bold';stroke-width:0.264583"
x="61.166931" x="123.93523"
y="84.364799">x</tspan></text> y="82.982758">x</tspan></text>
<text <text
xml:space="preserve" xml:space="preserve"
style="font-size:7.76111px;line-height:1.25;font-family:sans-serif;stroke-width:0.264583" style="font-size:7.76111px;line-height:1.25;font-family:sans-serif;stroke-width:0.264583"
@ -300,14 +299,14 @@
<text <text
xml:space="preserve" xml:space="preserve"
style="font-size:3.52777px;line-height:1.25;font-family:sans-serif;stroke-width:0.264583" style="font-size:3.52777px;line-height:1.25;font-family:sans-serif;stroke-width:0.264583"
x="66.897743" x="128.74704"
y="85.274292" y="85.749252"
id="text13749"><tspan id="text13749"><tspan
sodipodi:role="line" sodipodi:role="line"
id="tspan13747" id="tspan13747"
style="stroke-width:0.264583" style="stroke-width:0.264583"
x="66.897743" x="128.74704"
y="85.274292">C</tspan></text> y="85.749252">C</tspan></text>
<text <text
xml:space="preserve" xml:space="preserve"
style="font-size:3.52777px;line-height:1.25;font-family:sans-serif;stroke-width:0.264583" style="font-size:3.52777px;line-height:1.25;font-family:sans-serif;stroke-width:0.264583"

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

@ -0,0 +1,16 @@
flowchart TD
data --> Verarbeitung
Verarbeitung --> Positionsberechnung
subgraph Positionsberechnung
dataPos[Datenberechnung auf Fenster von +- 200ms] --> checkDevice{alle Geräte in Datensatz}
checkDevice --> ja
checkDevice --> nein
nein --> allNaN[Alle Spalten NaN]
ja --> getRadii[Radien von Datensatz]
getRadii --> getPosition[x,y Positionsbestimmung]
getPosition --> mse[Ermittle MSE]
getPosition --> locerr[Ermittle Location Error]
allNaN --> append[Daten zusammenführen]
getPosition --> append
end

@ -0,0 +1,29 @@
flowchart TD
Datei --> Einlesen
subgraph Einlesen
rmdevice[Geräte entfernen] --> cleanData[Zeitstempel zu Index]
cleanData --> calcScPower[Berechne scPower]
calcScPower --> scPower
calcScPower --> calcRSSI[Verschiedene Filter auf den RSSI]
calcRSSI --> rssiFilter
calcRSSI --> remove[Unnötige Spalten löschen]
end
subgraph cleanData[Daten Bereinigen]
indexing --> replaceZero[Ersetze 0 durch NaN]
replaceZero --> dropHuman[Entferne Anfang 5s und Ende 10s]
dropHuman --> calcPosition[Zusammenfassen Positionsfelder]
calcPosition --> deviceDist[Zusammenführen Gerät mit Abstand]
end
subgraph scPower[Berechnung scPower]
iterate[Iteriere über Datensatz] --> window[Zeitfenster +- 300ms]
window --> returnScPower[Rückgabe Mittelwert]
returnScPower --> savescPower[Spalte: scPower]
end
subgraph rssiFilter[Filtermethoden RSSI]
iterateRSSI[Iterierung über Datensatz] --> windowRSSI[Zeitfenster +- 300ms]
windowRSSI --> returnRSSIMean[Rückgabe Mittelwert]
returnRSSIMean --> RSSIMeanSave[Spalte: RSSI_rolling_mean]
windowRSSI --> returnRSSIweighted[Rückgabe gewichteter Mittelwert]
returnRSSIweighted --> RSSIweightedSave[Spalte: RSSI_rolling_weightedMean]
end

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 31 KiB

Loading…
Cancel
Save