Browse Source

bugfixes

master
FINO2_HostPC_2 2 months ago
parent
commit
f4bf4b9e2b
  1. 4
      code/cast_control.py
  2. 5
      code/check_for_cast_safety.py
  3. 16
      output/cast_log
  4. 12
      output/startfile_log

4
code/cast_control.py

@ -83,7 +83,9 @@ class CastControl:
"""PUT IN WAVECHECKER HERE"""
wave_check = CastSafety()
wave_conditions_safe, new_top_deploy, new_bottom_deploy = wave_check.check_wave_conditions()
print(wave_conditions_safe)
print(new_top_deploy)
print(new_bottom_deploy)
if wave_conditions_safe:
print("wave conditions good. Cast is a-go.")
top_line_deploy = new_top_deploy

5
code/check_for_cast_safety.py

@ -69,6 +69,11 @@ class CastSafety:
top_line_deploy = bottom_line_deploy - self.check_results["waterlevel"] + self.check_parameters["waterlevel_safety_margin"] + self.check_results["wave_trough"]*2
if top_line_deploy <= self.pull_parameters["top_line_deploy_limit"]:
self.wave_conditions_safe = False
if top_line_deploy >= bottom_line_deploy:
self.wave_conditions_safe = False
print("waterlevel:"+str(self.check_results["waterlevel"]))
print("bottom_line_deploy:"+str(bottom_line_deploy))
print("new_top:"+str(top_line_deploy))
return top_line_deploy, bottom_line_deploy

16
output/cast_log

File diff suppressed because one or more lines are too long

12
output/startfile_log

@ -2143,3 +2143,15 @@ TimeoutError: [Errno 110] Connection timed out
2023-03-29 14:53:01.432368: Startfile sent over
2023-03-29 15:03:01.362114: Startfile parameter valid. Next downcast set to: 2023-03-29 15:10:00
2023-03-29 15:03:01.362245: Startfile sent over
2023-03-29 15:13:01.646559: Startfile parameter valid. Next downcast set to: 2023-03-29 15:20:00
2023-03-29 15:13:01.646690: Startfile sent over
2023-03-29 15:23:02.127329: Startfile parameter valid. Next downcast set to: 2023-03-29 15:30:00
2023-03-29 15:23:02.127509: Startfile sent over
2023-03-29 15:33:01.492308: Startfile parameter valid. Next downcast set to: 2023-03-29 15:40:00
2023-03-29 15:33:01.492439: Startfile sent over
2023-03-29 15:43:01.697655: Startfile parameter valid. Next downcast set to: 2023-03-29 15:50:00
2023-03-29 15:43:01.697836: Startfile sent over
2023-03-29 15:53:01.903919: Startfile parameter valid. Next downcast set to: 2023-03-29 16:00:00
2023-03-29 15:53:01.904050: Startfile sent over
2023-03-29 16:03:01.817416: Startfile parameter valid. Next downcast set to: 2023-03-29 16:10:00
2023-03-29 16:03:01.817547: Startfile sent over

Loading…
Cancel
Save