Project 2 - Implement the Code for controlling the retraction and extension of Airplane’s landing gear
Overview of the Project:
On this venture, the retraction and extension of an airplane’s touchdown gear will be controlled using a Finite nation machine (FSM). FSM is a good set of rules that serves as a mathematical version of computation. The task includes enforcing this version to manipulate the touchdown tools gadget correctly, ensuring safe and dependable operations during various phases of flight, which includes takeoff and touchdown.
Goals:
- manipulate the direction of the hydraulic valve.
- control the retraction and extension of the plane’s landing gear.
Key Highlights of the Project:
- Software controls a course valve to manipulate hydraulic stress for raising or reducing the touchdown tools.
- The gadget monitors restrict switches and a squat switch to determine gear role and aircraft status.
- The challenge consists of coping with emergency scenarios including aborted takeoff.
- Safety mechanisms are in place for hydraulic gadget disasters, along with gasoline pressurized springs.
Deliverables of this project:
- Enforce manage logic for the retraction and extension of the plane’s touchdown tools the use of FSM.
- Expand an know-how of various states of switches and gears.
- Create software program that interfaces with the hydraulic gadget to control the landing equipment.
- Provide a fail-secure mechanism for emergency gear deployment.
Expected Outcomes:
To implement a C software for controlling the retraction and extension of an aircraft's touchdown tools, we want to simulate the hardware components and manipulate common sense typically concerned in this sort of device. For simplicity, we are able to count on the usage of a few primary functions to control cars and sensors.
Implementation Plan for Landing Gear Control System
Objective:
Implement a finite state machine (FSM) in Embedded C for controlling the retraction and extension of an airplane’s landing gear system.
System Components
- Landing Gear Types:
- Nose Gear
- Left Gear
- Right Gear
- Control Mechanisms:
- Hydraulic Pump: Electrically driven to control gear movement.
- Direction Valve: Controls hydraulic pressure direction (up for raising gear, down for lowering gear).
- Switches:
- Switches:
- Limit Switches: Each gear has one. Indicates gear position.
- CLOSED: Gear is UP
- OPENED: Gear is DOWN
- Squat Switch: Additional switch on nose gear to determine if the airplane is on the ground.
- CLOSED: Airplane is grounded, gears are locked.
- OPENED: Airplane is taking off, landing, or airborne.
- Pilot’s Lever:
- Pilot’s Lever:
- UP: Direction valve set to UP
- DOWN: Direction valve set to DOWN
- Indicator Lights:
- Gear UP: Light OFF
- Gear DOWN: Green Light
- Gear in Transit: Red Light
Scenarios to Consider
- Takeoff Abortion: Ensure gear stays down if takeoff is aborted.
- Pre-takeoff Check: Ensure squat switch is open for at least 4 seconds before raising gear.
- Parking Pressure: Apply counter-pressure to nose gear when parked to counteract weight.
Finite State Machine (FSM) States
- Idle: Default state when the system is not active.
- Pre-Takeoff Check: Wait 4 seconds for squat switch to confirm takeoff.
- Raise Gear: Transition state where gears are raised.
- Gear Up: Final state after gears are fully retracted.
- Pre-Landing Check: Ensure gears are down and ready for landing.
- Lower Gear: Transition state where gears are lowered.
- Gear Down: Final state after gears are fully extended.
FSM Transitions
- From Idle to Pre-Takeoff Check:
- Trigger: Pilot’s lever UP and squat switch OPEN for 4 seconds.
- Actions: Set direction valve UP, turn lights RED.
- From Pre-Takeoff Check to Raise Gear:
- Trigger: 4 seconds elapsed with squat switch OPEN.
- Actions: Begin raising gear.
- From Raise Gear to Gear Up:
- Trigger: All limit switches CLOSED.
- Actions: Turn off lights, disable landing gear control.
- From Idle to Pre-Landing Check:
- Trigger: Pilot’s lever DOWN.
- Actions: Set direction valve DOWN, turn lights RED.
- From Pre-Landing Check to Lower Gear:
- Trigger: Pilot’s lever DOWN, gear not already DOWN.
- Actions: Begin lowering gear.
- From Lower Gear to Gear Down:
- Trigger: All limit switches OPENED.
- Actions: Turn lights GREEN.
Emergency and Failures
- Emergency Abortion of Takeoff:
- Trigger: Squat switch CLOSE or pilot’s lever DOWN during takeoff.
- Actions: Reverse direction valve to DOWN, turn lights RED.
- Hydraulic Failure:
- Manual extension using gas pressurized springs if hydraulic system fails.