Add outer limit stage

This commit is contained in:
bogo
2024-12-18 14:56:59 +01:00
parent 15fe46ef38
commit 91b4a53829
5 changed files with 61 additions and 1 deletions

41
app.py
View File

@@ -86,6 +86,45 @@ VALUES = {
"t5": {"len_a": 4300, "len_h": 6400, 'width': 400, 'height': 600, 'elevation': 150, 'stop_plate': False, "t5": {"len_a": 4300, "len_h": 6400, 'width': 400, 'height': 600, 'elevation': 150, 'stop_plate': False,
'side': 'right'}, 'side': 'right'},
},
"outer_limits_left": {
"t1": {"len_a": 0, "len_h": 18300, 'width': 300, 'height': 300, 'elevation': 0, 'stop_plate': False,
'side': 'left'},
"t2": {"len_a": 1800, "len_h": 32000, 'width': 400, 'height': 600, 'elevation': 150, 'stop_plate': False,
'side': 'right'},
"t3": {"len_a": 3700, "len_h": 16500, 'width': 300, 'height': 300, 'elevation': 0, 'stop_plate': True,
'side': 'right'},
"t4": {"len_a": 5600, "len_h": 32000, 'width': 400, 'height': 600, 'elevation': 150, 'stop_plate': False,
'side': 'right'},
"t5": {"len_a": 7400, "len_h": 18300, 'width': 300, 'height': 300, 'elevation': 0, 'stop_plate': False,
'side': 'right'},
},
"outer_limits_center": {
"t1": {"len_a": 3700, "len_h": 18300, 'width': 300, 'height': 300, 'elevation': 0, 'stop_plate': False,
'side': 'left'},
"t2": {"len_a": 1900, "len_h": 32000, 'width': 400, 'height': 600, 'elevation': 150, 'stop_plate': False,
'side': 'left'},
"t3": {"len_a": 0, "len_h": 16500, 'width': 300, 'height': 300, 'elevation': 0, 'stop_plate': True,
'side': 'left'},
"t4": {"len_a": 1900, "len_h": 32000, 'width': 400, 'height': 600, 'elevation': 150, 'stop_plate': False,
'side': 'right'},
"t5": {"len_a": 3700, "len_h": 18300, 'width': 300, 'height': 300, 'elevation': 0, 'stop_plate': False,
'side': 'right'},
},
"outer_limits_right": {
"t1": {"len_a": 7400, "len_h": 18300, 'width': 300, 'height': 300, 'elevation': 0, 'stop_plate': False,
'side': 'left'},
"t2": {"len_a": 5600, "len_h": 32000, 'width': 400, 'height': 600, 'elevation': 150, 'stop_plate': False,
'side': 'left'},
"t3": {"len_a": 3700, "len_h": 16500, 'width': 300, 'height': 300, 'elevation': 0, 'stop_plate': True,
'side': 'left'},
"t4": {"len_a": 1800, "len_h": 32000, 'width': 400, 'height': 600, 'elevation': 150, 'stop_plate': False,
'side': 'left'},
"t5": {"len_a": 0, "len_h": 18300, 'width': 300, 'height': 300, 'elevation': 0, 'stop_plate': False,
'side': 'right'},
}, },
"accelerator": { "accelerator": {
"t1": {"len_a": 3600, "len_h": 9100, 'width': 250, 'height': 250, 'elevation': 0, 'stop_plate': False, "t1": {"len_a": 3600, "len_h": 9100, 'width': 250, 'height': 250, 'elevation': 0, 'stop_plate': False,
@@ -418,4 +457,4 @@ def calculate_distance_shootoff(desired_wall_length, size, target_count):
return distance return distance
if __name__ == '__main__': if __name__ == '__main__':
app.run(host='0.0.0.0') app.run(debug=True, host='0.0.0.0')

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

View File

@@ -38,6 +38,27 @@
<input type="radio" id="smoke_and_hope" name="stage" value="smoke_and_hope"> <input type="radio" id="smoke_and_hope" name="stage" value="smoke_and_hope">
</label> </label>
</div> </div>
<div>
<label for="outer_limits_left">
<p>Outer Limits (left box)</p>
<img src="{{ url_for('static', filename='images/outer_left.webp') }}" alt="Outer Limits (left box)">
<input type="radio" id="outer_limits_left" name="stage" value="outer_limits_left">
</label>
</div>
<div>
<label for="outer_limits_center">
<p>Outer Limits (center box)</p>
<img src="{{ url_for('static', filename='images/outer_center.webp') }}" alt="Outer Limits (center box)">
<input type="radio" id="outer_limits_center" name="stage" value="outer_limits_center">
</label>
</div>
<div>
<label for="outer_limits_right">
<p>Outer Limits (right box)</p>
<img src="{{ url_for('static', filename='images/outer_right.webp') }}" alt="Outer Limits (right box)">
<input type="radio" id="outer_limits_right" name="stage" value="outer_limits_right">
</label>
</div>
<div> <div>
<label for="accelerator"> <label for="accelerator">
<p>Accelerator</p> <p>Accelerator</p>