Skip to content

Commit 6cfc624

Browse files
committed
Update main.py
1 parent 5255907 commit 6cfc624

File tree

1 file changed

+5
-5
lines changed
  • src/python_vehicle_simulator

1 file changed

+5
-5
lines changed

src/python_vehicle_simulator/main.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
to simulate and test guidance, navigation and control (GNC) systems.
66
77
Reference: T. I. Fossen (2021). Handbook of Marine Craft Hydrodynamics and
8-
Motion Control. 2nd. Edition, Wiley.
9-
URL: www.fossen.biz/wiley
8+
Motion Control. 2nd edition, John Wiley & Sons, Chichester, UK.
9+
URL: https://www.fossen.biz/wiley
1010
1111
Author: Thor I. Fossen
1212
"""
@@ -17,7 +17,7 @@
1717
from python_vehicle_simulator.lib import *
1818

1919
# Simulation parameters:
20-
sampleTime = 0.02 # sample time
20+
sampleTime = 0.02 # sample time [seconds]
2121
N = 10000 # number of samples
2222

2323
# 3D plot and animation parameters where browser = {firefox,chrome,safari,etc.}
@@ -47,7 +47,7 @@
4747

4848
no = input("Please enter a vehicle no.: ")
4949

50-
match no: # the match statement requires Python >= 3.10
50+
match no: # The match statement requires Python >= 3.10
5151
case '1': vehicle = DSRV('depthAutopilot',60.0)
5252
case '2': vehicle = frigate('headingAutopilot',10.0,100.0)
5353
case '3': vehicle = otter('headingAutopilot',100.0,0.3,-30.0,200.0)
@@ -58,7 +58,7 @@
5858
case '8': vehicle = tanker('headingAutopilot',-20,0.5,150,20,80)
5959
case '9': vehicle = remus100('depthHeadingAutopilot',30,50,1525,0.5,170)
6060
case _: print('Error: Not a valid simulator option'), sys.exit()
61-
61+
6262
printVehicleinfo(vehicle, sampleTime, N)
6363

6464
###############################################################################

0 commit comments

Comments
 (0)