Challenge

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:
  1. Nose gear
  2. Left gear
  3. 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

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.