Skip to content
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ __pypackages__/
env/
venv/
ENV/
*Env*

# If you are using PyCharm #
.idea/**/workspace.xml
Expand Down
5 changes: 3 additions & 2 deletions src/python_vehicle_simulator/lib/mainLoop.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ def simulate(N, sampleTime, vehicle):
t = 0 # initial simulation time

# Initial state vectors
eta = np.array([0, 0, 0, 0, 0, 0], float) # position/attitude, user editable
# Changed z-position (eta[2]) from 0.0 to 10.0 to start underwater
eta = np.array([0, 0, 10.0, 0, 0, 0], float) # position/attitude, user editable
nu = vehicle.nu # velocity, defined by vehicle class
u_actual = vehicle.u_actual # actual inputs, defined by vehicle class

Expand Down Expand Up @@ -99,4 +100,4 @@ def simulate(N, sampleTime, vehicle):
# Store simulation time vector
simTime = np.arange(start=0, stop=t+sampleTime, step=sampleTime)[:, None]

return(simTime,simData)
return(simTime,simData)
Loading