Problem 1

a)

A model for estimating the yaw angle, yaw rate and rudder bias as stated in [1] as Equations (13.44 - 13.46). This is a first order Nomoto model:

where the states are:

The system matrices then becomes:

And the state-space model:

where is the zero-mean Gaussian measurement noise.

b)

The discretised system is as follows:

c)

A = [0 1 0;
	 0 -1/T -K/T;
	 0 1 0];
B = [0 K/T 0]';
C = [1 0 0];
D = 0;
E = [0 0;
	1 0;
	0 1];
Ad = eye(3) + A*h;
Bd = B*h;
Cd = C;
Dd = D;
E = E*h;
 
obs = [C; C*A;C*A*A];
disp(obs);
if rank(obs) == length(x_prd)
fprintf("System is fully observable\n");
else
fprintf("System is not observable\n");
end
>> observability
[1,    0,    0]
[0,    1,    0]
[0, -1/T, -K/T]
 
System is fully observable

The system is fully observable and all the states can be estimated.

.

Problem 2

a)

Noise added to yaw and yaw rate using normrnd(.) in matlab. Figure 1: Modelled noisy measurements

b)

Tuning the initial value of P has no effect on the system, as t converges quickly enough to the desired values. It is therefore initialised as . Setting much larger than results in a very noise estimate, while the opposite results in much better estimates. This is expected as we have implemented measurements with noise and no process noise. Setting and is therefore values that yields good noise suppression. The new Nomoto-model constants is:

c)

When simulating the system with the noisy measurements as feedback it navigates more or less similarly to using proper state feedback, but the commanded rudder angle oscillates between the saturation limits very quickly. This is not a desired behaviour and would likely destroy the rudder over time. Figure 2: Map with noisy measurements feedback Figure 3: Rudder angle, yaw and yaw rates with noisy measurements feedback

d)

Simulating with the state estimates results in a much better rudder commands as shown in Figure 5, but the overall path does not improve much as shown in Figure 4. This can, however, be tuned in the PID-heading controller.

Figure 4: Map with state estimate feedback

Figure 5: Rudder angle, yaw and yaw rates with state estimate feedback . .

Problem 3

a)

The main intention of wave filtering is to filter out wave-induced disturbances from the measurements. The wave frequency (WF) disturbance component generate forces that have the same frequency as the waves [1]. Filtering this out leads to better estimation of the ship states.

b)

The main difference between model-based navigation and inertial navigation systems is that the linear accelerations and angular rates are modelled in model-based navigation and measured in INSes. The main drawback of not measuring the accelerations and rates is that it introduces greater uncertainty in the system, as they have to be calculated usually as derivates. The main advantage of a model-based system is that the IMU or similar sensor is not needed.

[1] Thor I. Fossen (2021) Handbok of Marine Craft Hydrodynamics. and Motion Control, Wiley