Professional Documents
Culture Documents
Introduction
The filtering process is thus intermingled with the autopilot, as the filtering should be based on an adequate
model of ship motion. This is not really surprising from
a theoretical point of view, although it is not reflected
by the industrial division of labour. The two communities should work more closely, and one aim of the
present work is to aid this communication process.
The proposed general controller design combines the
spirit of the LQG paradigm [4] with a model following
feedforward strategy. For track changes, a model based
manoeuvring trajectory is constructed, on which the
ship is retained by the track-keeping controller. This
feature allows smooth track changing manoeuvres and
can also be used to impose reliable predicted manoeuvring tracks on the radar screen.
The LQG feedback part of the track controller
involves a considerable number of tuning parameters.
This number may be reduced by the systematic use of
scaling and a simplification of the Kalman filter, which
also allows a more intuitive understanding of the
design choices involved.
Y
Fig. 1 Coordinatesystem for the description of ship motion
The angle 7p is the difference between actual heading and track course, U is the
forward velocity measured by the log, v is the cross velocity to starboard, x is
the position along the track, y is the cross-track-error
Ship model
For a commercial track controller the amount of installation work has to be quite low, so the model must
have a small number of parameters, identifiable from
on-board measurements. The linearisation of the
hydrodynamic equations of motion of a ship leads to a
second-order model in the state variables: rate of turn r
and sway velocity v. See Fig. 1 and [5]. This model is
often ill-conditioned with respect to identification when
using on-board measurements [6]. The well-known
121
For the sway velocity, v = ar is assumed. The parameters K, T of the simple linear model in eqn. 1 can be
roughly derived from general ship data.
L
U
T=ToK=Ko(2)
2 =ucos$++sin$+d,
0 0
0 0 0 0
0 -1 $ 0
0 0 0 0
0 0
0 0 0 0
0 0
0 0 0 0
0 1 -2Dh-wh
0 0 0 0
0 0
0100
d?J
0 0
0 0 0 0
d,
0 0
0 0 0 1
dz
0 0
0 0 0 0
d,
c
-
-U?
0 0 0 0 0 0 0
o u
0 0 0 0 0 0 1
(5)
The model includes a coloured noise to model periodic disturbances of the heading signal, due to coupled
roll and pitch motion in rough sea. The dominating
frequency of this disturbance model with states (<, E)
depends on the seaway conditions and the relative
direction of the waves; it should therefore be estimated
on-line. This modelling has proved to be very successful [2, 8, 91. For the design of the controller and the
Kalman filter it is wise to reduce the number of parameters of the model as much as possible by scaling. The
ILL
$*=.so
?1, = r *
+* = -r* + 6*
(3)
jl = usin$ + v cos$ d,
(4)
The forward velocity U of the ship is measured by the
speed log, and can thus be viewed as a known parameter. The linearisation of this model is straightforward
and the fully linearised model is given in eqn. 5.
f +\
y* = $
+ a*r*
(7)
L=
The filter gains L, of the forward submodel are calculated from a two-dimensional submodel, which is discussed in Section 4. The rest of the model can be
decomposed into a heading submodel with states [q r b
5; ElT and a cross track submodel with states 4.
IEE Proc.-Control Theory A p p l , Vol. 144, No. 2,March 1997
where A , B, C are the state space matrices of the discretised system. The increase of P over the optimal Po
provides a measure for the performance deterioration
due to the suboptimality. The actual increase in estimation variances of less than 1% is negligible, as may be
seen from the Appendix by comparison of cases 1
and 2.
The decomposition of the heading and the track submodels can be driven even further. Setting Lyw = 0
removes the direct influence of the heading innovation
on the position estimate. The gyro information still
finds its way to the position estimate in the next time
update, and so the deterioration of performance should
be small. The Appendix shows that the increase in estimation variances due to this simplification is less than
10%. The increase is even less if the sampling time for
the gyro signal is shorter than that for the measurement.
The above simplification treats the heading and turnrate estimates as a deterministic input to the track
model. The cross track channel, with the exception of
the deterministic input Q and i = $/a,corresponds to
the submodel of the forward channel, which is discussed in Section 4. With these simplifications, the
three submodels are totally decoupled and each measurement only affects the states of its respective submodel. The disturbances for the two position
measurements are assumed to be equal. For symmetry
reasons, the filter response and the gains for the two
track channels should also be equal. The suboptimal
Kalman gain matrix is
L=
The full submodel decomposition also proves advantageous under limitations on software or cpu-time, as the
Kalman gains for the two track channels may be calculated analytically, as in Section 4.
The proposed approach reduces the number of
parameters to a set of five tuning knobs, which roughly
correspond to the following controller characteristics.
Typical values are also given, and justified later:
IEE Proc-Control Theory Appl., Vol. 144, No. 2, March 1997
--
'C 10
ISI
~o~
E! 1ci2
1d2
lo2
loo
a
1/=
1CT2
lo2
loo
f requencywT, rad
timetlT
frequency w, radls
pi'
The variance ratio Ql/Rv controls the low pass filtering of the heading signal. Fig. 2b shows the filtering for
different values of this parameter. Practical considerations indicate that the time constant should roughly be
a factor of ten smaller than T, leading to a typical
choice of Ql*lRv*= lo4.
The variance Q2 characterises the sensitivity to
changes of the rudder bias b; in traditional PID-control, this is chosen via the integral part. The frequency
response for this state is rather involved, as this estimate depends on both inputs tp, and 6. A choice of Q2
is made simply by looking at the time response of the
estimated rudder bias to a step in the true rudder bias.
A time constant of 3 - 5 T seems reasonable for this
estimation process so from Fig. 2c, a typical choice is
= 103.
If Q3 > 0, additional band pass filtering is introduced. The necessary intensity of wave filtering changes
strongly with weather conditions. It is therefore advisable to estimate this variance online [SI. Fig. 2d shows
the wave filtering effect for different values of Q3. The
e2*
123
" F
0.8
Position filter
Ym=(1
0 ) y:()
(11)
timet,s
C
Fig. 3 Response of position Kalman jlter to a step in the drift d, for dif
ferent values of Q
(a) Estimated driftPJy,
(b) Error 2 of the estimated cross position
(c) Response of position estimate y^ to a step in the measured position
Idy
= Ids =
l/Qd/Rp
(13)
d",
ym
1 + ( l y / l d y ) ~+ ( 1 / l d y ) S 2
(14)
Table 1: Combinations of
Fig. 3
Qp
Case
Q
,
Qd
Damping
4 . 10-8
D, = id2
8 . IO"
1.6. 10-7
Dp= 1
1 ' 10-2
1.2. IO"
D, > 1
1 ' IO-'
1.1 . 10-5
D,> 1
the online Kalman filter. For low speed and high current, a considerable angle may be present between the
track course and the heading of the ship, leading to
noticeable estimation errors. A nonlinear extrapolation
step is therefore strongly recommended:
X:+l
+ BS,
= f (kt)
(17)
Xt+l =
L ( q - CX,)
(18)
Here, 2* denotes the extrapolated state estimate,
while 2 is the state estimate after the measurement
update. The geometric nonlinearity of the system is
preserved in eqn. 17 of the Kalman filter by using a
discretised version of eqns. 3 and 4 in the nonlinear
function f ( x ) , instead of the linearised equations
according to eqn. 5. This is just a simple case of the
extended Kalman filter technique.
LQG controller
(+(d i)
( j ) + ( i ) S
(19)
time t , s
I)
In addition to the feedback gains, a disturbance compensation using the estimated rudder bias and cross
drift must be applied. The compensating rudder for a
bias b is 6 = b/K. The stationary value of the rudder to
compensate a drift dy is zero. However, there has to be
an offset AQ in the set value of the heading
4
A+ = - arcsin -
(24)
0 k,
O 0)
(25)
To illustrate the control performance, Fig. 5 demonstrates the transient behaviour for a step in the drift.
The maximum track deviation under this severe disturbance is less than 55m.
J = E (X,y2
X,T'
S2)
(20)
The simplest choice would be A, = Ar = 0 for track
control, and Ay = kr = 0 for course control. This would
leave only one tuning parameter, which controls the
bandwidth of the system. A slight modification is proposed later.
If the weighting coefficients k are taken as fixed,
there is an undesirable variation of the closed loop
dynamics with the type of ship and its speed. This was
reported to produce difficulties in other applications of
LQG control to ship steering [lo]. As discussed in Section 2, the dependence on the individual ship may be
considerably reduced by scaling the model. The scaled
version of this model is given in eqn. 7. Rewriting the
performance criterion of eqn. 20 in scaled variables and
dividing the criterion by (Kg2,leads to the scaled
weightings
A;
300
K = (kq, k ,
The LQG controller minimises the stochastic performance criterion, J = E(xTWx + 8) with x = (r, qj,
y)*. The weighting of the rudder is chosen as unity,
without loss of generality since the optimisation only
depends on relative weightings. With diagonal weighting matrices in the absence of specific information, the
criterion reduces to
200
100
= X+((KT)2
(22)
A; = X,K
(23)
Note that the scaling factors for Ay and kq are only
mildly speed-dependent, since according to eqn. 2, UT
TJ ToL and KT
KoTo.After scaling, the natural choice
is Ay* = 1 for track control and AV* = 1 for course control. A mild variation in the interval ky* E [0.1, lo],
depending on the seastate, seems advisable. From the
intention of track keeping, i.e. minimising the variance
-4
-8
(iv)
100
200
300
LOO
500
ti me t, s
Fig. 5 Controlperformancefor a unit step in the drift
(i) Drift estimate (0.1 ' i s ) , (ii) true position (IOm), (iii) position estimate (IOm),
(iv) heading (0.1"), (v) rudder (O.Io). Ship parameters: K = 0.2P1, T = 20s, U
10m/s, Q = -50mirad
The sensitivity and complementary sensitivity functions for the track control loop are shown in Fig. 6 for
different weighting coefficients Ay, which determine the
bandwidth of the controller. Although the plant has
two outputs, these transfer functions are scalar as there
is only one plant input. The norm 171wincreases with
bandwidth, as expected, indicating that the robustness
with respect to errors in the model parameters, e.g. the
rudder gain K, decreases. The norm of the minimal
destabilising multiplicative perturbation lAlm = 1/1qW
decreases from lAlm = 0.72 for Ay = 0.1, to /AIm = 0.62
for Ay = 1 0 .
125
Fi
2 60
.7J
$ 40
2ov
0
201
E 10
L-
k o
Y
z -10
-201
Fig. 7 Heading, track error and rudder angle during a typical voyage
a Heading, b Track error, c Rudder angle
Operational experience
Conclusions
References
time, s
diag(P) = P k k =
2.85 * lop1
9.58. lo-
-2.35. lop5
-1.36. lop5
-7.70.10
2.04. lop2
5.50. lo-
4.85. lop4
1.22.10-6
2.65.
0
1.60.10-3
p k k p l k-)1 =
1.31.10-4
2.57.10-4
Case 3 : Suboptimal filter with L, = Lyw= 0
L=
1.22 * 10-6
2.65.10-7
6.32.
5.85. lo-
2.67.10-3
5.56.10-5
2.85 * 1O-I
9.58 *
3.33.10-
diag(P) = Pk,+=
p k k p l k-)1 =
4.85.10-4
5.50!10-)
1.22 * 10-6
2.65.10-7
6.32. lop7
6.09. lo-
5.94.10-5
2.67.10-3
1.60.10-3
8.00.10-5
4.06 * lop2
6.81 * lo-
0
0
Case 4: As case 3, but with Lyytaken from the continuous system approximation Ld = L, At according to Section 4
2.85. 10-1
0
9.58. lop2
5.85.
5.56.10-5
/O\
L=
5.48 *
5.00.10-4
1.22.10-6
diag(P) = P k k =
Case 2: Suboptimal filter with L, = 0
L=
2.85 * lo-
9.58. lo-
3.33.lOW2
-7.70. 10 5.50. lo-
2.04. lo-
4.85. l o p 4
( p k k / p l k-)1 =
6.09.
5.95.10-5
2.67.10-3
1.60.10-3
4.09. lop2
7.04. lo-
127