summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--digital/beacon/triangle/doc/triangle.plot58
-rw-r--r--digital/beacon/triangle/doc/triangle_drawing.svg346
2 files changed, 404 insertions, 0 deletions
diff --git a/digital/beacon/triangle/doc/triangle.plot b/digital/beacon/triangle/doc/triangle.plot
new file mode 100644
index 00000000..2248aa08
--- /dev/null
+++ b/digital/beacon/triangle/doc/triangle.plot
@@ -0,0 +1,58 @@
+set xrange [0:3000]
+set yrange [0:2100]
+dist (x0, y0, x1, y1) = sqrt ((x0 - x1) ** 2 + (y0 - y1) ** 2)
+dot (x0, y0, x1, y1) = x0 * x1 + y0 * y1
+angle (x, y, x0, y0, x1, y1) = acos (dot (x0 - x, y0 - y, x1 - x, y1 - y) / (dist (x, y, x0, y0) * dist (x, y, x1, y1)))
+angle_b12 (x, y) = angle (x, y, 3000.0, 0.0, 3000.0, 2100.0)
+angle_b23 (x, y) = angle (x, y, 3000, 0, 0, 1050)
+angle_b31 (x, y) = angle (x, y, 3000, 2100, 0, 1050)
+
+set isosamples 50
+set angles degrees
+set contour
+set cntrparam levels incremental 0, 10, 180
+
+set term png
+set output 'triangle_surf12.png'
+splot angle_b12 (x, y)
+set output 'triangle_surf23.png'
+splot angle_b23 (x, y)
+set output 'triangle_surf31.png'
+splot angle_b31 (x, y)
+
+set contour
+set cntrparam levels incremental 0, 1, 180
+unset surface
+set view map
+unset clabel
+
+set output 'triangle_contour12.png'
+splot angle_b12 (x, y)
+set output 'triangle_contour23.png'
+splot angle_b23 (x, y)
+set output 'triangle_contour31.png'
+splot angle_b31 (x, y)
+set output 'triangle_contour123.png'
+splot angle_b12 (x, y), angle_b23 (x, y), angle_b31 (x, y)
+set cntrparam levels incremental 0, 3, 180
+set output 'triangle_contour123-3deg.png'
+splot angle_b12 (x, y), angle_b23 (x, y), angle_b31 (x, y)
+set cntrparam levels incremental 0, 1, 180
+
+set size square
+set xrange [0:100]
+set yrange [0:100]
+set output 'triangle_zoom+0+0.png'
+splot angle_b12 (x, y), angle_b23 (x, y), angle_b31 (x, y)
+set xrange [0:100]
+set yrange [1000:1100]
+set output 'triangle_zoom+0+1050.png'
+splot angle_b12 (x, y), angle_b23 (x, y), angle_b31 (x, y)
+set xrange [2900:3000]
+set yrange [2000:2100]
+set output 'triangle_zoom+3000+2100.png'
+splot angle_b12 (x, y), angle_b23 (x, y), angle_b31 (x, y)
+set xrange [1450:1550]
+set yrange [1000:1100]
+set output 'triangle_zoom+1500+1050.png'
+splot angle_b12 (x, y), angle_b23 (x, y), angle_b31 (x, y)
diff --git a/digital/beacon/triangle/doc/triangle_drawing.svg b/digital/beacon/triangle/doc/triangle_drawing.svg
new file mode 100644
index 00000000..d390ac73
--- /dev/null
+++ b/digital/beacon/triangle/doc/triangle_drawing.svg
@@ -0,0 +1,346 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="744.09448819"
+ height="1052.3622047"
+ id="svg2"
+ sodipodi:version="0.32"
+ inkscape:version="0.46"
+ sodipodi:docname="beacon_triangulation.svg"
+ inkscape:output_extension="org.inkscape.output.svg.inkscape"
+ inkscape:export-filename="/home/nico/robot/beacon_triangulation.png"
+ inkscape:export-xdpi="90"
+ inkscape:export-ydpi="90">
+ <defs
+ id="defs4">
+ <marker
+ inkscape:stockid="Arrow2Mend"
+ orient="auto"
+ refY="0.0"
+ refX="0.0"
+ id="Arrow2Mend"
+ style="overflow:visible;">
+ <path
+ id="path3249"
+ style="font-size:12.0;fill-rule:evenodd;stroke-width:0.62500000;stroke-linejoin:round;"
+ d="M 8.7185878,4.0337352 L -2.2072895,0.016013256 L 8.7185884,-4.0017078 C 6.9730900,-1.6296469 6.9831476,1.6157441 8.7185878,4.0337352 z "
+ transform="scale(0.6) rotate(180) translate(0,0)" />
+ </marker>
+ <marker
+ inkscape:stockid="Arrow2Sstart"
+ orient="auto"
+ refY="0.0"
+ refX="0.0"
+ id="Arrow2Sstart"
+ style="overflow:visible">
+ <path
+ id="path3252"
+ style="font-size:12.0;fill-rule:evenodd;stroke-width:0.62500000;stroke-linejoin:round"
+ d="M 8.7185878,4.0337352 L -2.2072895,0.016013256 L 8.7185884,-4.0017078 C 6.9730900,-1.6296469 6.9831476,1.6157441 8.7185878,4.0337352 z "
+ transform="scale(0.3) translate(-2.3,0)" />
+ </marker>
+ <marker
+ inkscape:stockid="Arrow2Mstart"
+ orient="auto"
+ refY="0.0"
+ refX="0.0"
+ id="Arrow2Mstart"
+ style="overflow:visible">
+ <path
+ id="path3246"
+ style="font-size:12.0;fill-rule:evenodd;stroke-width:0.62500000;stroke-linejoin:round"
+ d="M 8.7185878,4.0337352 L -2.2072895,0.016013256 L 8.7185884,-4.0017078 C 6.9730900,-1.6296469 6.9831476,1.6157441 8.7185878,4.0337352 z "
+ transform="scale(0.6) translate(0,0)" />
+ </marker>
+ <marker
+ inkscape:stockid="Arrow1Lstart"
+ orient="auto"
+ refY="0.0"
+ refX="0.0"
+ id="Arrow1Lstart"
+ style="overflow:visible">
+ <path
+ id="path3222"
+ d="M 0.0,0.0 L 5.0,-5.0 L -12.5,0.0 L 5.0,5.0 L 0.0,0.0 z "
+ style="fill-rule:evenodd;stroke:#000000;stroke-width:1.0pt;marker-start:none"
+ transform="scale(0.8) translate(12.5,0)" />
+ </marker>
+ <inkscape:perspective
+ sodipodi:type="inkscape:persp3d"
+ inkscape:vp_x="0 : 526.18109 : 1"
+ inkscape:vp_y="6.1230318e-14 : 1000 : 0"
+ inkscape:vp_z="744.09448 : 526.18109 : 1"
+ inkscape:persp3d-origin="372.04724 : 350.78739 : 1"
+ id="perspective10" />
+ </defs>
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ gridtolerance="10"
+ guidetolerance="10"
+ objecttolerance="10"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="2.4034707"
+ inkscape:cx="240"
+ inkscape:cy="865"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="true"
+ inkscape:window-width="1024"
+ inkscape:window-height="760"
+ inkscape:window-x="0"
+ inkscape:window-y="0">
+ <inkscape:grid
+ type="xygrid"
+ id="grid2387"
+ visible="true"
+ enabled="true" />
+ </sodipodi:namedview>
+ <metadata
+ id="metadata7">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1">
+ <rect
+ style="opacity:1;fill:#0c81c6;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.5;stroke-linecap:round;stroke-linejoin:round;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible"
+ id="rect2415"
+ width="300"
+ height="210"
+ x="90"
+ y="82.362183" />
+ <rect
+ style="opacity:1;fill:#666666;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.5;stroke-linecap:round;stroke-linejoin:round;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible"
+ id="rect3191"
+ width="10"
+ height="10"
+ x="390"
+ y="72.362183" />
+ <rect
+ style="opacity:1;fill:#666666;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.5;stroke-linecap:round;stroke-linejoin:round;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible"
+ id="rect3193"
+ width="10"
+ height="10"
+ x="390"
+ y="292.36218" />
+ <rect
+ style="opacity:1;fill:#666666;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.5;stroke-linecap:round;stroke-linejoin:round;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible"
+ id="rect3195"
+ width="10"
+ height="10"
+ x="80"
+ y="182.36218" />
+ <rect
+ style="fill:#e75130;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.49999999000000001;stroke-linecap:round;stroke-linejoin:round;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible"
+ id="rect3197"
+ width="30"
+ height="30"
+ x="57.065926"
+ y="241.50412"
+ transform="matrix(0.7868701,-0.6171187,0.6171187,0.7868701,0,0)" />
+ <rect
+ style="fill:#666666;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.49999999;stroke-linecap:round;stroke-linejoin:round;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible"
+ id="rect3199"
+ width="10"
+ height="10"
+ x="67.065926"
+ y="251.50412"
+ transform="matrix(0.7868701,-0.6171187,0.6171187,0.7868701,0,0)" />
+ <path
+ style="fill:none;fill-opacity:0.75000000000000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.5;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:4,4;stroke-dashoffset:0"
+ d="M 215,157.36218 L 395,77.362183"
+ id="path3209" />
+ <path
+ style="fill:none;fill-opacity:0.75000000000000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.5;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:4,4;stroke-dashoffset:0"
+ d="M 215,157.36218 L 395,297.36218"
+ id="path3211" />
+ <path
+ style="fill:none;fill-opacity:0.75000000000000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.5;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:4,4;stroke-dashoffset:0"
+ d="M 215,157.36218 L 85,187.36218"
+ id="path3213" />
+ <path
+ sodipodi:type="arc"
+ style="opacity:1;fill:none;fill-opacity:0;fill-rule:nonzero;stroke:#000000;stroke-width:0.57245082;stroke-linecap:round;stroke-linejoin:round;marker:none;marker-start:url(#Arrow2Mstart);marker-mid:none;marker-end:url(#Arrow2Mend);stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible"
+ id="path3217"
+ sodipodi:cx="215"
+ sodipodi:cy="157.36218"
+ sodipodi:rx="28.62254"
+ sodipodi:ry="28.62254"
+ d="M 241.93953,147.69204 A 28.62254,28.62254 0 0 1 239.00614,172.94919"
+ transform="matrix(0.8734375,0,0,0.8734375,27.210937,19.916151)"
+ sodipodi:start="5.9385529"
+ sodipodi:end="6.8590631"
+ sodipodi:open="true" />
+ <path
+ sodipodi:end="5.7648518"
+ sodipodi:start="3.0592723"
+ transform="matrix(0.8734375,0,0,0.8734375,27.210937,19.916151)"
+ d="M 186.47439,159.71574 A 28.62254,28.62254 0 0 1 239.86286,143.18163"
+ sodipodi:ry="28.62254"
+ sodipodi:rx="28.62254"
+ sodipodi:cy="157.36218"
+ sodipodi:cx="215"
+ id="path6111"
+ style="opacity:1;fill:none;fill-opacity:0;fill-rule:nonzero;stroke:#000000;stroke-width:0.57245082;stroke-linecap:round;stroke-linejoin:round;marker:none;marker-start:url(#Arrow2Mstart);marker-mid:none;marker-end:url(#Arrow2Mend);stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible"
+ sodipodi:type="arc"
+ sodipodi:open="true" />
+ <path
+ sodipodi:type="arc"
+ style="opacity:1;fill:none;fill-opacity:0;fill-rule:nonzero;stroke:#000000;stroke-width:0.57245082;stroke-linecap:round;stroke-linejoin:round;marker:none;marker-start:url(#Arrow2Mstart);marker-mid:none;marker-end:url(#Arrow2Mend);stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible"
+ id="path6113"
+ sodipodi:cx="215"
+ sodipodi:cy="157.36218"
+ sodipodi:rx="28.62254"
+ sodipodi:ry="28.62254"
+ d="M 235.12542,177.71451 A 28.62254,28.62254 0 0 1 187.63895,165.76591"
+ transform="matrix(0.8734375,0,0,0.8734375,27.210937,19.916151)"
+ sodipodi:start="0.79100386"
+ sodipodi:end="2.8435964"
+ sodipodi:open="true" />
+ <g
+ id="g6160"
+ transform="translate(-13,-2)">
+ <text
+ id="text6129"
+ y="162.36218"
+ x="255"
+ style="font-size:12px;font-style:normal;font-weight:normal;writing-mode:lr-tb;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
+ xml:space="preserve"><tspan
+ y="162.36218"
+ x="255"
+ id="tspan6131"
+ sodipodi:role="line">α</tspan></text>
+ <text
+ id="text6149"
+ y="164.36218"
+ x="263"
+ style="font-size:8px;font-style:normal;font-weight:normal;writing-mode:lr-tb;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
+ xml:space="preserve"><tspan
+ y="164.36218"
+ x="263"
+ id="tspan6151"
+ sodipodi:role="line">1</tspan></text>
+ </g>
+ <g
+ id="g7835"
+ transform="translate(10,10)">
+ <text
+ xml:space="preserve"
+ style="font-size:12px;font-style:normal;font-weight:normal;writing-mode:lr-tb;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
+ x="200"
+ y="117.36218"
+ id="text6168"><tspan
+ sodipodi:role="line"
+ id="tspan6170"
+ x="200"
+ y="117.36218">α</tspan></text>
+ <text
+ xml:space="preserve"
+ style="font-size:8px;font-style:normal;font-weight:normal;writing-mode:lr-tb;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
+ x="208"
+ y="119.36218"
+ id="text6172"><tspan
+ sodipodi:role="line"
+ id="tspan6174"
+ x="208"
+ y="119.36218">2</tspan></text>
+ </g>
+ <g
+ id="g7841"
+ transform="translate(5,-10)">
+ <text
+ id="text6178"
+ y="200.36218"
+ x="197"
+ style="font-size:12px;font-style:normal;font-weight:normal;writing-mode:lr-tb;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
+ xml:space="preserve"><tspan
+ y="200.36218"
+ x="197"
+ id="tspan6180"
+ sodipodi:role="line">α</tspan></text>
+ <text
+ id="text6182"
+ y="202.36218"
+ x="205"
+ style="font-size:8px;font-style:normal;font-weight:normal;writing-mode:lr-tb;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
+ xml:space="preserve"><tspan
+ y="202.36218"
+ x="205"
+ id="tspan6184"
+ sodipodi:role="line">3</tspan></text>
+ </g>
+ <text
+ xml:space="preserve"
+ style="font-size:12px;font-style:normal;font-weight:normal;writing-mode:lr-tb;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
+ x="405"
+ y="302.36218"
+ id="text6194"><tspan
+ sodipodi:role="line"
+ id="tspan6196"
+ x="405"
+ y="302.36218">B1</tspan></text>
+ <text
+ xml:space="preserve"
+ style="font-size:12px;font-style:normal;font-weight:normal;writing-mode:lr-tb;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
+ x="405"
+ y="82.362183"
+ id="text6198"><tspan
+ sodipodi:role="line"
+ id="tspan6200"
+ x="405"
+ y="82.362183">B2</tspan></text>
+ <text
+ xml:space="preserve"
+ style="font-size:12px;font-style:normal;font-weight:normal;writing-mode:lr-tb;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
+ x="60"
+ y="192.36218"
+ id="text6202"><tspan
+ sodipodi:role="line"
+ id="tspan6204"
+ x="60"
+ y="192.36218">B3</tspan></text>
+ <path
+ style="fill:none;fill-opacity:0.75000000000000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.50000000000000000;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:none;marker-start:url(#Arrow2Mstart);marker-end:url(#Arrow2Mend)"
+ d="M 90,272.36218 L 90,292.36218 L 110,292.36218"
+ id="path6206" />
+ <text
+ xml:space="preserve"
+ style="font-size:8px;font-style:normal;font-weight:normal;writing-mode:lr-tb;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
+ x="109.84116"
+ y="287.63474"
+ id="text7807"><tspan
+ sodipodi:role="line"
+ id="tspan7809"
+ x="109.84116"
+ y="287.63474">x</tspan></text>
+ <text
+ xml:space="preserve"
+ style="font-size:8px;font-style:normal;font-weight:normal;writing-mode:lr-tb;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
+ x="94.862816"
+ y="268.49576"
+ id="text7811"><tspan
+ sodipodi:role="line"
+ id="tspan7813"
+ x="94.862816"
+ y="268.49576">y</tspan></text>
+ </g>
+</svg>