Skip to content

Commit 035c54b

Browse files
committed
Update DSRV.py
1 parent 4fd5a19 commit 035c54b

File tree

1 file changed

+5
-4
lines changed
  • src/python_vehicle_simulator/vehicles

1 file changed

+5
-4
lines changed

src/python_vehicle_simulator/vehicles/DSRV.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python3
12
# -*- coding: utf-8 -*-
23
"""
34
DSRV.py:
@@ -47,7 +48,7 @@ class DSRV:
4748
def __init__(self, controlSystem="stepInput", r=0):
4849

4950
if controlSystem == "depthAutopilot":
50-
self.controlDescription = "Depth autopilot, z_d = " + str(r) + " (m)"
51+
self.controlDescription = "Depth autopilot, z_d = " + str(r) + " m"
5152

5253
else:
5354
self.controlDescription = "Step input for delta_s"
@@ -57,11 +58,11 @@ def __init__(self, controlSystem="stepInput", r=0):
5758
self.controlMode = controlSystem
5859

5960
# Initialize the DSRV model
60-
self.name = "DSRV"
61-
self.L = 5.0 # Length
61+
self.name = "DSRV (see 'DSRV.py' for more details)"
62+
self.L = 5.0 # Length
6263
self.deltaMax = 20 # max stern plane angle (deg)
6364
self.T_delta = 1.0 # rudder time constants (s)
64-
self.U0 = 4.11 # Cruise speed: 4.11 m/s = 8 knots
65+
self.U0 = 4.11 # cruise speed: 4.11 m/s = 8 knots
6566
self.W0 = 0
6667
self.nu = np.array([self.U0, 0, self.W0, 0, 0, 0], float) # velocity vector
6768
self.u_actual = np.array([0], float) # control input vector

0 commit comments

Comments
 (0)