Hardware in the Loop Simulation and Control Design for Autonomous Free Running Ship Models

Keywords: HIL, Proportional-derivative control, LQR, Nomoto model, LabVIEW, TCP/IP


This paper presents an hardware-in-the-loop (HIL) simulation system tool to test and validate an autonomous free running model system for ship hydrodynamic studies with a view to verification of the code, the control logic and system peripherals. The computer simulation of the plant model in real-time computer does not require the actual physical system and reduces the development cost and time for control design and testing purposes. The HIL system includes: the actual programmable embedded controller along with peripherals and a plant model virtually simulated in a real-time computer. With regard to ship controller design for ship model testing, this study describes a plant model for surge and a Nomoto first order steering dynamics, both implemented using Simulink software suit. The surge model captures a quasi-steady state relationship between surge speed and the propeller rpms, obtained from simple forward speed towing tank tests or derived analytically. The Nomoto first order steering dynamics is obtained by performing the standard turning circle test at model scale. The control logic obtained is embedded in a NI-cRIO based controller. The surge and steering dynamics models are used to design a proportional-derivative controller and an LQR controller. The controller runs a Linux based real-time operating system programmed using LabVIEW software. The HIL simulation tool allows for the emulation of standard ship hydrodynamic tests consisting of straight line, turning circle and zigzag to validate the combined system performance, prior to actual for use in the autonomous free-running tests.


Fossen, Thor I. Handbook of marine craft hydrodynamics and motion control. John Wiley & Sons, 2011.

Skjetne, R.; Smogeli, Ø. & Fossen, T.I. Modeling, identification, and adaptive maneuvering of Cybership II: A complete design with experiments. In Proceedings of the IFAC 2004, 37(10), 203-208. https://doi.org/10.1016/S1474-6670(17)31732-9

Åström, K. J. & Källström, C. G. Identification of ship steering dynamics, Automatica, 1976, 12(1), 9-22, https://doi.org/10.1016/0005-1098(76)90064-9.

Qin, Y., & Zhang, L., Parametric identification of ships maneuvering motion based on Kalman filter algorithm, In Proceedings of the Mechatronics and Automatic Control Systems, Springer, 2014, 107-114.

Perera, L.P.; Oliveira P. & Soares C.G. System identification of nonlinear vessel steering, J. Offshore Mech. Arctic Eng., 2015, 137(3), 79-88. https://doi.org/10.1115/1.4029826.

Skjetne, R.; Smogeli, Ø.N. & Fossen, T.I. A nonlinear ship manoeuvering model: Identification and adaptive control with experiments for a model ship. Modelling, Identification and Control, 2004, 25(1), 3-27. https://doi.org/10.4173/mic.2004.1.1.

Nomoto, K. & Taguchi, K.H.S. On the steering quality of ships. International Shipbuilding Progress, 1958, 4(2), 354-370.

Isermann, R. & Schaffnit, J. & Sinsel, S. Hardware-in-the-loop simulation for the design and testing of engine-control systems. Control Engineering Practice, 1999 7(5), 643–653. https://doi.org/10.1016/S0967-0661(98)00205-6

Karpenko, M. & Sepehri, N. Hardware-in-the-loop simulator for research on fault tolerant control of electrohydraulic flight control systems, In Proceedings of the American Control Conference Minneapolis, MN, 2006. https://doi.org/10.1109/ACC.2006.1657454.

Spangenberg, H. & Friehmelt, H. Hardware-in-the-loop simulation with flight control actuators. In AIAA Modeling and Simulation Technologies Conference and Exhibit 2005, San Francisco, CA,

Güvenç, B.A.; Güvenç, L. & Karama, S. Robust yaw stability controller design and hardware-in-the-loop testing for a road vehicle. IEEE Trans. Vehicular Technol., 2009, 58(2), 555–571. https://doi.org/10.1109/TVT.2008.925312.

Palladino, A.; Fiengo, G. & Lanzo, D. A portable hardware-inthe-loop (HIL) device for automotive diagnostic control systems. ISA Transaction, 2012, 51(1), 229–236. https://doi.org/10.1016/j.isatra.2011.10.009

Li, H.; Steurer, M.; Shi, K.L.; Woodruff, S. & Zhang, D. Development of a unified design, test, and research platform for wind energy systems based on hardware-in-the-loop real-time simulation. IEEE Trans. Industrial Electron., 2006, 53(4), 1144–1151. https://doi.org/10.1109/TIE.2006.878319.

Martin, A. & Emami, M.R. Dynamic load emulation in hardware in-the-loop simulation of robot manipulators. IEEE Trans. Industrial Electron., 2011, 58(7), 2980–2987. https://doi.org/10.1109/TIE.2010.2072890

Johansen, T.A.; Fossen, T.I. & Vik, B. Hardware-in-the-loop testing of DP systems. In Proceedings of the Dynamic Positioning Conference, 2005.

Hwang A.; S. Yoon; T. Kim; D. Kwon; C. Choi and H. Cho, Verification of unmanned underwater vehicle with velocity over 10 knots guidance control system based on hardware in the loop simulation. In Proceedings of the OCEANS 2009, IEEE, 1-5, https://doi.org/10.23919/OCEANS.2009.5422227

Mastebe, O.; Kumile, C.M. & Tlale, N.S. A review of virtual simulators for autonomous underwater vehicles (AUVs). In Proceedings of the IFAC Proceedings 2008, 41(1), 31-37. https://doi.org/10.3182/20080408-3-IE-4914.00007

Woolsey, M. & Jarnagin, R. Design, implementation, and refinement of a hardware-in-the-loop simulator for a hovering AUV. In Proceedings of the OCEANS 2012 , IEEE, 1-4. https://doi.org/10.1109/OCEANS.2012.6404862.

Marouani, K.; Guendouz, H.; Tabbache, B.; Khoucha, F. & Kheloui, A, Experimental investigation of an emulator Hardware In the Loop for electric naval propulsion system. In Proceedings of the 21st Mediterranean Conference on Control and Automation IEEE, 125-130. https://doi.org/10.1109/MED.2013.6608709

Bao, D.; Yang, R.; Ma, Y. & Clement, B. Hardware-in-the-loop simulation applied to AUV control. In Proceedings of the Chinese Automation Congress (CAC), 2018, China, 1009-1013. https://doi.org/10.1109/CAC.2018.8623733

Chaudhuri, S.; Venkatachalam, G. & Prabhakar, M. Hardware in loop simulation for missile guidance and control systems. Def. Sci. J., 1997 47(3), 343-357. https://doi.org/10.14429/dsj.47.4016

Desa, E.; Maurya, P. K.; Pereira, A.; Pascoal, A. M.; Prabhudesai, R. G.; Mascarenhas, A. & Prabhudesai, S. A small autonomous surface vehicle for ocean color remote sensing. IEEE J. Oceanic Eng., 2007, 32(2), 353-364. https://doi.org/10.1109/JOE.2007.893688.

Maurya, P.; Desa, E.; Pascoal, A.; Barros, E.; Navelkar, G.; Madhan, R. & Naroji, S. Control of the Maya AUV in the vertical and horizontal planes: Theory and practical results. In Proceedings of the 7th IFAC Conference on Manoeuvring and Control of Marine Craft 2006.

Nise, N. S. Control Systems Engineering, John Wiley & Sons, 2007.

Fryxell, D.; Oliveira, P.; Pascoal, A. & Silvestre, C. An integrated approach to the design and analysis of navigation, guidance and control systems for AUVs. In Proceedings of the IEEE Symposium on Autonomous Underwater Vehicle Technology, 1995, 208-217, https://doi.org/10.1109/AUV.1994.518627.

Hespanha, J. P. Lecture notes on LQR/LQGcontroller design, 2005.

Dubey A.C.; Subramanian V.A. & Kumar V.J. Embedded System Design for Autonomous Unmanned Surface Vehicles in Laboratory Environment. In Proceedings of the Fourth International Conference in Ocean Engineering (ICOE) 2018, 22, 465-477. https://doi.org/10.1007/978-981-13-3119-0_27

National Instruments, website address: http://www.ni.com. (Accessed on 20 March 2020).

How to Cite
Dubey, A., & Subramanian, A. (2020). Hardware in the Loop Simulation and Control Design for Autonomous Free Running Ship Models. Defence Science Journal, 70(4), 469-476. https://doi.org/10.14429/dsj.70.14926
Naval Systems