Project 2 - Implement the Code for controlling the retraction and extension of Airplane’s landing gear
IMPLEMENT THE CODE FOR CONTROLLING THE RETRACTION AND EXTENSION OF AIRPLANE'S LANDING GEAR
OVERVIEW
- Controlling the retraction and extension of airplane's landing gear.
- An airplane has 3 gears for landing:
- Nose gear
- Left gear
- Right gear
- There is a hydraulic pump which is exerting pressure to the gears to bring it down or pull it up.
- Every leg of the gear has one limit switch.
- Nose gear has one extra squat switch to determine wheather the airplane is in ground or not.
PROGRAM
- First we creating seven functions,which is used to controll the gear under different conditions.

- Next step is to enter the functions into the array of 6 elements to access the function based on the requirement.

- System state declaration

- Creating 4 enum structures

- State type attributes declaration

- State table formation

- Main function








OUTPUT
