Copyright © IFAC Manoeuvring and Control of Marine Craft, Brijuni, Croatia, 1997
FUZZY AUTOPILOT FOR SHIPS EXPERIENCING SHALLOW WATER EFFECT IN MANOEUVERING Zoran Vukit, Edin Omerdic and Ljubomir Kuljaca
University ojZagreb, Faculty ojElectrical Engineering and Computing Department ojControl and Computer Engineering in Automation Unska 3, HR-JOOOO Zagreb , Croatia
• (e-mail:
[email protected]
Abstract: A fuzzy autopilot for ship path control is proposed. Nonlinear model of a ship and a steering subsystem is used. The autopilot uses heading signal and yaw rate signal to produce a command rudder angle. The autopilot does not use lateral offset from the nominal track. Input variable fuzzyfication. fuzzy associative memory rules and output set defuzzyfication are described. The influence of the shallow water effect during larger maneuver is analyzed. Keywords:
Disturbance rejection, Fuzzy control, Nonlinear control systems, Ship control
1. INTRODUCTION
Fuzzy Logic Toolbox. The autopilot is designed to be used for a wide range of ship types and ship velocities. Notch filter was used to minimize the effects of wave disturbance. Shallow water effects during manoeuvering were analyzed for the nonlinear model ofESSO 190000 dwt Tanker.
The conventional autopilot for ship's course keeping involves the heading angle feedback. However, by including an additional position feedback, a ship guidance system can be designed (Fossen, 1994). The desired route is most easily specified by way points. Modem sea going vessels have a range of navigation aids including globa positioning system (GPS) receivers, Doppler sonar, gyrocompass etc. These devices provide information required to implement track guidance. Nonlinearity of the ship model and the steering gear subsystem during course-changing and the lack of a simple mathematical model makes it appropriate to design the controller with fuzzy logic instead of the conventional approach. An accurate following of the desired track is of great importance here. Although strictly speaking normal navigation is also a track-keeping problem, this paper particularly discusses an autopilot for accurate track-keeping in manoeuver. The fuzzy autopilot proposed here was designed and tested by simulation in MAlLAB using SIMULINK with
This paper is organized as follows: Section 2 introduces mathematical models of the ship, the steering machine and the disturbances. Section 3 describes the course controller designed with fuzzy logic. Section 4 introduces the turning concept and the implementation of course controller in trackkeeping systems. Section 5 presents the simulation results. Finally, Section 6 swnmarizes the concluding remarks.
2. MATHEMATICAL MODELS Although the design of a fuzzy controller does not depend on a mathematical model of the process, such a model is necessary to simulate various motions of ship.
99
In this paper we consider wave disturbance during course-keeping and change of depth under keel during track-keeping.
2. J Ship dynamics
In order to verify controller behavior in different conditions, it is useful to simulate the control law against a realistic model of the vessel. In this paper we shall deal with two nonlinear ship models: Mariner Class Vessel (Length between perpendiculars is Lpp=J60.93 m) and ESSO 190000 dwt Tanker (L pp =304.8 m). The nonlinear mathematical models which describe the dynamic between the rudder angle is and the yaw motion for these ships are given in (Fossen, 1994, Appendix E). Ship's models were transformed to S-functions and adapted for the on-line simulation.
Wind-Generated Waves We shall deal with the second-order wave transfer function approximation (Fossen, 1994). This model is written as
h(s)
(1)
A linear state-space model can be obtained by transforming this expression to the time-dornain by: d -
2
~
2.2 Steering Gear Subsystem
y 2
.
dy
dO)
2
= KOJ -dt
+ 2;0)0 -d + 0)0 Y t
dx h1
Defirung ~
The steering gear subsystem considered is the "two-loop" electrohydraulic steering subsystem common on many ships. The nonlinear steering gear model is shown in Fig. 1. (Vukic, 1989).
= x h2
[ ~;Il [0
and x h2
=Y h '
(2)
the state-
space model can be written as:
~;2
= -
1 ][Xhl]+ [0] (3) K., cu
cu; - 2;cuo
h
X h2
where O)h is a zero-mean white noise process. Due to its simplicity, this model is useful for control systems design.
K
s
1
= S2 + 2J:;." s+ w2 ':>""0 0
Depth under keel The shallow water effect for the ESSO Tanker is given by a water depth parameter (Fossen, 1994):
S
s
T (=-h-T
where T (m) is the ship draft (T=J 8.46 m) and h > T is the water depth. If states (~0. 8 (i.e.
Fig. 1. Nonlinear steering gear model.
h
Table 1 Parameter values for steering subsystem
Telemotor Position Servo
K = 4 [ "Is} 2D = 0.4 re} H= 0.8[7
:$
41.535 m), additional terms appear in the
nonlinear equations of motion dynamics of the ship.
Rudder Servo Actuator N = 5 re/s}
IPBI
(4)
and
changes
3. FUZZY LOGIC COURSE AUTOPILOT
= 7 [7
The fuzzy autopilot for course keeping uses two control inputs: heading error e If!d - If! and
=
yaw rate
2.3 Disturbances
r
= d If! / dt .
The
control
action
generated by the autopilot is the command rudder angle be' Fig. 2. shows a simple block diagram of
There are several disturbances with various effects on the system to be taken into account (Amerongen, 1979). Three classes of disturbances can be distinguished: • "disturbances" which affect the dynamics of the system (e.g. the depth of water), • disturbances which cause additional signals in the system (e.g. waves), • disturbances that corrupt the measurements (e.g. noise on the position measurements).
the autopilot (Tovomik, 1995). ,
,,.,,, C
~ C
/1./1./1.
~
I ,""""" 1.lil ~
I
Dc
C
Fuzzy Logic Coonc Cmlrolhr
Fig. 2. Block diagram of the fuzzy logic course autopilot.
100
Each control input has seven fuzzy sets so that there is a maximum of 49 fuzzy rules. Table 3 shows the complete rulebase for the controller.
Block "Conditioning" serves for scaling and conditioning controller input and output variables. The membership functions of the fuzzy sets are labeled as follows:
In Fig. 5. the block diagram of the control system for the course-keeping with fuzzy autopilot is given.
Table 2 Labels for the membership functions NB NM NS ZE
negative big negative medium negative small zero
PS PM PB
positive small positive medium positive big
/ :::::::::::::':::':: : ::::::::::: ~ilj~ij.f@i#ii*:p!ii$ :::):::::::::::::::':'"
....... .
~I
Fig. 5. Block diagram of the control system for the course-keeping.
4. FUZZY LOGIC TRACK-KEEPING AUTOPILOT A track-keeping autopilot (given in Fig. 6.) can be obtained by introducing an additional position feedback in the control system shown in Fig. 6. A ship position (X(t) , Y(t)) is calculated from kinematics equations. In a real system it can be obtained from GPS (Global Positioning System).
Fig. 3. Membership functions of fuzzy sets for error and errordot.
Fig. 4. Membership functions offuzzy sets for y. Fig. 3. gives the membership functions of fuzzy sets used for input variables error and errordot (Donlagi6, 1996). In Fig. 4. membership functions of fuzzy sets for output variable y are given. Different shapes of membership functions were analyzed, but forms of membership functions shown in Fig. 3. and Fig. 4. with Mamdani inference mechanism gave the best results (polkinghome, 1995).
Fig. 6. Block diagram of control system for trackkeeping. The desired route is most easily specified using way points (PI> P:;, ... , P,J with coordinates Pj=(Xj, YJ . We shall use a turning concept shown in Fig. 7., where it is supposed that ship moves in a straight line between way points. A track changing maneuver is performed in such a way that the ship moves in a circle arc.
Table 3 Rulebase of the fuzzy course autopilot e r r 0
NB NM NS
r
ZE
d
PS PM PB
0
NB NB NB NB NB NM NS
NM NB NB NB NM NS lE
lE
PS
NS NB NB NM NS lE
PS PM
error ZE
NB NM NS lE
PS PM PB
PS NM NS lE
PS PM PB PB
PM NS lE
PS PM PB PB PB
P,.,
P,./
PB lE
PS PM PB PB PB PB
Fig. 7. Turning concept for track-keeping.
101
Headi ng ~ me response
The wheel over point (WOp·) is the point where a ship leaves a straight line motion and enters the circle arc and vice versa (Holzhiiter, 1995). The WOp· will not be a starting point of the turning manoeuver, because it is impossible to change the twn rate r of the ship instantaneously. The modelbased wheel-over point WOP which indicates the start of the manoeuver lies about one ship length before WOp·. The position of WOP and value of radius R depend on the angle q;=LPi.IPPi+/. Fig. 8. shows dependence of the position of the WOP (Po) on the angle of the ship's course change (cp) for a Mariner Class Vessel. This dependence is built in a simulation algorithm and used for automatic calculation of WOP. Dependence of the radius of the circle (R) upon the angle cp can be found in a similar way.
YIN< rate time response
40
a; ~
-
a.
30 ..........~.'~ ...... ... .. . ..
~ 20
-0 u;' 10 0.
~ 0.5
./
S
~
" :' •
°ci~ ' ---10-0---1
,A..,.\
!
/
0
\
I
......
!
Rudder angle bme response a;30 ~>-~--~~
.O.5 !---10-0---l200 0 Fuzzy controUer ,nputs and output ~4,-----~'
~_ 20 .i\~,.
§ :g
200
~ 10 : \ ';
-i,
0
2
r\ ...\\,.
<; 0
\,-'.;..----
::; g.. 2
.......-i-·u.....
\,..rl.,.,. .......r~-
'O.1 0 '--_ _ _ _- l o 100 200
Cl>
. . ....'
-4'--- -- ----1 0 100 200
t (s)
t(s)
Fig. 9. Course changing manoeuver without wave disturbance.
Time history 800
,..' \.
0 .5 700 600
o
"
,,
· 0 .5
;; 500 0
a:
.f
. '. ...",
\ \
\
'~'"
"
/
\
/)
'"
40
20
/'
.~.
E
( v'\
~'.I~...",r~
60
Time(Decs~
W,\ .~~,s"wal 'Mph~'l
Q
M
400
:
1
300
2 3 4 5 Frequency (rads/sec)
1
200 "-.-:'80:;---;.6':0::"--4:';:0-.::; 20:---:0~--::2-C-0-4~O-~60--8--10 pn, (deg )
Fig. 8. Dependence of the position of the WOP upon the angle of the ship's course change for the Mariner Class Vessel.
6
Fig. 10. Time history and power spectral density of wave disturbance.
Heeding time response
5. SIMULATION RESULTS
Yew rate time response
40
a;
E30 1--,.""'==-'Fig. 9. shows simulation results for the fuzzy course keeping autopilot. It presents time responses of heading, yaw rate, command rudder angle and rudder angle and controller inputs and output during a course changing maneuver without disturbances. Heading time response is without overshoot and oscillation during transient response.
~ 20
,
'"
o . ""./_ _~_ _-l
o 100 200 Rudder angle lime response
\.
"-. .._._... ~ .05'---------.J 0: 0
100
200
Fuzzy controller inputs and output
a;30~.----------~
~4.---------~
!
!
20!\
~
10:
!!I
0
Q) '0 .
Fig. 10. and 1l. shows the influence of wave disturbance on the course changing performance. Fig. 10 shows the time history and power spectral density of wave disturbance. Since most of the energy in the wave spectrum is located around the modal frequency of the wave spectrum, notch filter with the natural frequency equal to the encounter frequency is used for wave filtering. A small overshoot appears in the heading time response due to an additional phase lag introduced by a notch filter.
~ 05 ~
~1 10 0.
~
~
\
\
/
:~y."N"'"
..•#(J1v......
'--"""::::":""'_ _- l 10 o 100 200
tOO
~
2 \
"\
0
\~\ 'v.,::;';''d!:i"'-~
2
"
e "~ (;; .4L-_ _ _ _---1 0
100
200
tOO
Fig. 11 . Course changing manoeuver with wave disturbance.
Fig. 12. presents way points guidance with the fuzzy autopilot for a Mariner ship. The desired route is given with way points PI. p], .'" P6 . Fuzzy autopilot uses only two inputs (heading and yaw rate) and has a good tracking perfomance.
102
Tra ck-Keeping
..
2500 ' - - - ' - :--~:~_-_--,-:=---~ . ,~ .,-~-~:----, p •
-~
p, .
'-.
1000
•p
900
:~ ~r:i---------------~----------j--------:Fl 500 -- --
-----1,----I:
'
.
,
,
,
I
•
,.-'
800 700 600
g>-
.
o ·----,:-:<,t~'---- ---- j----------L-----74-~'------,/
300
I
.
p.
~
, '/
.,, / / /
:
:
:
:
if
.~
200
.
-500 -- -- -- - - --~ - -- -- -- -- ~- -- --- --- -,;"-~-:- - - -- -- ; -- - -- - -- -
:
500 400
{I
100
-10000'----1-,-0~00,----2,....00""-0--30~00--4~ O O-0-----'5000
Beginning ofthermnocuvcr (41.5. 0) ---- - --- • .0. - -- - - • • - • • •
. • J.
0
400
200
.,~.
~.
--~:?~-::. I .............-.J
600
800
1000
X (ml
X(ml
Fig. 12. Way point guidance by Line of Sight (LOS). Way points are denoted with h P2, ... , P6 . Ship moves in a straight line between way points.
Fig. 14. Manoeuver in a different depths of water. Dynamics of the ESSO Tanker differs at deep water (h=250 m) and shallow water (h=30 m).
1 0 .-,---_-~-~--_-_-......,
oP ...
1000 900 800 700 600
g >-
500 R=420m
400 300
Deq> water
\
\
11=250", \
200
",
100
...... P
"-. -,
"
,,,/
....
o0· ··~···· ·· ···20i:i······ · · · --400 ·=- ·--600-~...-==-----:-80~0--'caOO·O X (ml
Fig. IS . Shallow water effect in manoeuvering 1• At t= 13 0 s depth of water has changed suddenly from 250 m to 30 m.
Fig. 13. Dependence of a water depth parameter q upon water depth h (see (4))_In a shallow water (q~.8, hS41.535 m) additional hydrodynamic tenns are introduced into mathematical model of ESSO Tanker.
E
The dependence of a water depth parameter S upon water depth h is given in Fig. 13 . Two points are considered on this graph: point A (deep water, h=250 m, s=0.0797) and point B (shallow water, h=30 m, 1.5997). Changes in ship dynamics for different depths of water can be seen from Fig. 14., where it is supposed that rnanoeuver begins at the same point. The only difference between two simulations was water depth: in the first case it was 250 m and in the second 30 m.
30
ITJ
~ 200 ~
~
:
~
~---------------
00
Now we consider the influence of the shallow water effect in manoeuvering. A ship moves in a straight line with forward speed of aprox. 16 knots. Water depth is 250 m. The ship begins manoeuver at the point (415, 0) and moves in a circle arc (approximately, see Fig. 15.). At t= 130 (s) water depth suddenly changes to 30 m.
•
~100 ~
s=
--.--.
~
100'
200
100
200
300
_
~
0,5[;1 /.r ~~"
0 "'--,
*-05
':
i
>- .,
:'
.~/
I
.150
\/
I
v
100
200
300
tls)
Fig. 16. Time responses of variables during manoeuvering with shallow water effect at t=]30 s. I The circle in this picture looks like an ellipse because aspect ratios for x and y axes are not equal
103
Donlagic, D. (1996). Design of Fuzzy Control Systems (in Croatian), KOREMA, Zagreb. Fossen, T.I. (1994). Guidance and Control of Ocean Vehicles, John Wiley&Sons., Chichester. Holzhtiter, T. and Schultze R. (1995). Operating
Dynamics of the ship have changed, as can be seen from Fig. 16. A small picture gives an enlarged part of time responses for forces and moment around point where depth of water was changed abruptly. Fuzzy autopilot brings a control action in such a way that ship stops moving in a circle arc and enters the desired direction easily. A fuzzy autopilot reacts appropriately to the shallow water effect by forcing the ship to enter the desired heading without unacceptable errors. However, the tracking error is higher, as would be expected because of the change in ship dynamics.
Experience With a High Precision Track Controller for Commercial Ships, Proceedings of the 3rd IFAC Workshop on Control Applications in Marine Systems, Trondheim, pp. 270-277 Parsons, M.G., A.c. Chubb and Y. Cao (1995). An
Assessment of Fuzzy Logic Vessel Path Control, IEEE Journal of Oceanic Engineering, Vol. 20, No. 4, pp. 276-284 Polkinghorne, M.N., G.N. Roberts, R.S . Burns and D. Winwood (1995). The Implementation of
6. CONCLUSION This paper presents the development of a fuzzy autopilot for course and track-keeping of ships. The research was conducted in two parts: course keeping and track keeping. The initial research concentrated on the design of a simple course keeping system. The next stage of the research used this system as a starting point for building accurate track keeping system. The results of the simulation show that it is possible to design an autopilot for track-keeping of ships using fuzzy logic course keeping autopilot.
Fixed Rulebase Fuzzy Logic to the Control of Small Surface Ships, Control Eng. Practice, Vol. 3, No. 3, pp. 321-328 Tovornik, B. (1995). Fuzzy control of ship's control systems, Proceedings of Electronics in Marine, ELMAR '95, Zadar, Croatia, pp. 213-216 Vukic, Z. (1989). Design of Adaptive Guidance
System for Cargo Ships (in Croatian), Doctoral disertation, University of Zagreb, Faculty of Electrical Engineering, Zagreb.
In a large manoeuver (where nonlinear dynamics of ship and steering gear play an important role) with shallow water effect producing change in ship dynamics, the fuzzy autopilot performs well. There are two possibilities for improving the perfomance in manoeuvering: l. The fuzzy autopilot stays unchanged, but scaling factors on controller inputs and output are dynamically modified. This leads to an adaptive fuzzy autopilot. 2. The fuzzy autopilot is augmented with an additional input - lateral offset from the nominal path. Research in both of these directions is continuing. The effective use of the same fuzzy autopilot design with two different ships (Mariner and ESSO 190000 dwt Tanker) with a ratio of lengths near 2 illustrates the versatility of this type of control. The simplicity of the proposed autopilot and the possibility of using it for different ships without retuning its parameters was one of our goals from the beginning. This autopilot achieved the goal.
REFERENCES Amerongen, J.y. (1979). An adaptive autopilot for trackkeeping, Ship Operation Automation, Ill. Proceedings of the 3th IFIPIIF AC Symp., Tokyo, pp. 105-114
104