Application of Hardware-In-the-Loop for Developing the Engine Management System