mirror of
https://github.com/bszczuka/steel-training.git
synced 2025-12-21 11:54:59 +01:00
Add outer limit stage
This commit is contained in:
41
app.py
41
app.py
@@ -86,6 +86,45 @@ VALUES = {
|
||||
"t5": {"len_a": 4300, "len_h": 6400, 'width': 400, 'height': 600, 'elevation': 150, 'stop_plate': False,
|
||||
'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": {
|
||||
"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
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(host='0.0.0.0')
|
||||
app.run(debug=True, host='0.0.0.0')
|
||||
|
||||
BIN
static/images/outer_center.webp
Normal file
BIN
static/images/outer_center.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 58 KiB |
BIN
static/images/outer_left.webp
Normal file
BIN
static/images/outer_left.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 64 KiB |
BIN
static/images/outer_right.webp
Normal file
BIN
static/images/outer_right.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 59 KiB |
@@ -38,6 +38,27 @@
|
||||
<input type="radio" id="smoke_and_hope" name="stage" value="smoke_and_hope">
|
||||
</label>
|
||||
</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>
|
||||
<label for="accelerator">
|
||||
<p>Accelerator</p>
|
||||
|
||||
Reference in New Issue
Block a user