Project 2 - Implement the Code for controlling the retraction and extension of Airplane’s landing gear
Aim:
In this project, controlling the retraction and extension of Airplane’s landing gear can be implemented using Finite State Machine (FSM).
CONTROLLING DIRECTION VALVE:
- pilot's lever state is lever UP then its will must be direction will be UP
- pilot's lever state is lever DOWN then its will must be direction will be DOWN
CONTROLLING AIRPLANE'S GEAR:
- Limit Switch CLOSED then it is gear is UP
- limit switch OPEND then it is gear is DOWN
A direction valve is controlled by the software to allow the hydraulic pressure to either raise or lower the landing gear.
- Direction valve is DOWN then it will be GEAR DOWN
- Direction vave is UP then it will be Raising gear (Takeoff)
- Control of hydraulic pump for the landing gear part is disable then it will be Gear UP(airborne)
- Direction valve is DOWN then it will be Lowering Gear (Landing)
we have to perfroming the many direction valve controlling:
- GEAR_DOWN
- CHECKING_BEFORE TAKE OFF
- RAISING_GEAR
- GEAR_UP
- CHECKING_ BEFORE _LANDING
- LOWERING_GEAR
State Table for each States to control Airoplan's Landing Gear