Skip to content

Commit 3f6c538

Browse files
committed
WIP: Changes to main files
1 parent e77dd68 commit 3f6c538

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

src/python_vehicle_simulator/lib/mainLoop.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def printSimInfo():
3939
print('7 - Offshore supply vessel: controlled by tunnel thrusters and main propellers, L = 76.2 m')
4040
print('8 - Tanker: rudder-controlled ship model including shallow water effects, L = 304.8 m')
4141
print('9 - Remus 100: AUV controlled by stern planes, a tail rudder and a propeller, L = 1.6 m')
42+
print('10 - Torpedo: AUV controlled by configurable fins and a propeller, L = 1.6 m')
4243
print('---------------------------------------------------------------------------------------')
4344

4445
###############################################################################

src/python_vehicle_simulator/main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
supply('DPcontrol',x_d,y_d,psi_d,V_c,beta_c)
4242
tanker('headingAutopilot',psi_d,V_c,beta_c,depth)
4343
remus100('depthHeadingAutopilot',z_d,psi_d,V_c,beta_c)
44+
torpedo('depthHeadingAutopilot',z_d,psi_d,V_c,beta_c)
4445
4546
Call constructors without arguments to test step inputs, e.g. DSRV(), otter(), etc.
4647
"""
@@ -57,6 +58,7 @@
5758
case '7': vehicle = supply('DPcontrol',4.0,4.0,50.0,0.5,20.0)
5859
case '8': vehicle = tanker('headingAutopilot',-20,0.5,150,20,80)
5960
case '9': vehicle = remus100('depthHeadingAutopilot',30,50,1525,0.5,170)
61+
case '10': vehicle = torpedo('depthHeadingAutopilot',30,50,1525,0.5,170)
6062
case _: print('Error: Not a valid simulator option'), sys.exit()
6163

6264
printVehicleinfo(vehicle, sampleTime, N)

src/python_vehicle_simulator/vehicles/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@
99
from .shipClarke83 import *
1010
from .supply import *
1111
from .tanker import *
12-
from .remus100 import *
12+
from .remus100 import *
13+
from .torpedo import *

0 commit comments

Comments
 (0)