|
5 | 5 | to simulate and test guidance, navigation and control (GNC) systems.
|
6 | 6 |
|
7 | 7 | 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 |
10 | 10 |
|
11 | 11 | Author: Thor I. Fossen
|
12 | 12 | """
|
|
17 | 17 | from python_vehicle_simulator.lib import *
|
18 | 18 |
|
19 | 19 | # Simulation parameters:
|
20 |
| -sampleTime = 0.02 # sample time |
| 20 | +sampleTime = 0.02 # sample time [seconds] |
21 | 21 | N = 10000 # number of samples
|
22 | 22 |
|
23 | 23 | # 3D plot and animation parameters where browser = {firefox,chrome,safari,etc.}
|
|
47 | 47 |
|
48 | 48 | no = input("Please enter a vehicle no.: ")
|
49 | 49 |
|
50 |
| -match no: # the match statement requires Python >= 3.10 |
| 50 | +match no: # The match statement requires Python >= 3.10 |
51 | 51 | case '1': vehicle = DSRV('depthAutopilot',60.0)
|
52 | 52 | case '2': vehicle = frigate('headingAutopilot',10.0,100.0)
|
53 | 53 | case '3': vehicle = otter('headingAutopilot',100.0,0.3,-30.0,200.0)
|
|
58 | 58 | case '8': vehicle = tanker('headingAutopilot',-20,0.5,150,20,80)
|
59 | 59 | case '9': vehicle = remus100('depthHeadingAutopilot',30,50,1525,0.5,170)
|
60 | 60 | case _: print('Error: Not a valid simulator option'), sys.exit()
|
61 |
| - |
| 61 | + |
62 | 62 | printVehicleinfo(vehicle, sampleTime, N)
|
63 | 63 |
|
64 | 64 | ###############################################################################
|
|
0 commit comments