Project 2 - Implement the Code for controlling the retraction and extension of Airplane’s landing gear
Overview of the Project:
In this project, controlling the retraction and extension of Airplane’s landing gear can be implemented using Finite State Machine (FSM). FSM is the most efficient algorithm which is mathematical model of computation.
The project describes the code for the landing of an airplane. we are going to write the code for different states before takeoff and time of landing. There are different switch states for every state. Using the finite state machine we are going to write the code.
Goals
- Controlling the direction of Valve.
- Controlling the retraction and extension of Airplane’s landing gear.
- Using finite state machine to write a code.
- the understanding of the sequence of the code.
Key Highlights of the Project:
- A direction valve is controlled by the software to allow the hydraulic pressure to either raise or lower the landing gear.
- Using the static declarations,
- use of enum functions
- calling functions.
Deliverables of this project:
Implementing the control for the retraction and extension of Airplane’s landing gear using the Finite state machine with the knowledge of various states of switch and gear.
- understanding the sequence of the code.
- understanding enum function.
- understanding calling function.
- usage of pointers
Expected Outcomes:
| State_type | Switch_Status |
pilot_Lever_Status |
Hydraulic_Mechanis_m_status |
|
GR_DWN.....0 CHK_BFR_TKFF .1 RISING_GR 2 GR_UP3 CHK_BFR_LND.4 LWRING_GR....5 |
Open...0 Close...1 |
Rising.......0 falling........1 UP.............2 Down........3 |
Working.......0 Malfunctioning...1 |
OUTPUT of Project 2 :

