Challenge

Project 2 - Implement the Code for controlling the retraction and extension of Airplane’s landing gear

#include "state.h"

void gear_up()
{
current_state=gr_up;
printf("\n Enter Pilot's Lever Position:");
fflush(stdout);
scanf("%d",&pilot_lever);
if(pilot_lever==falling)
{
current_state = chk_bfr_lnd;
printf("\n current state:%s\n",state_Machine[current_state].current_state_indication);
printf("Light status:%s\n",state_Machine[current_state].light_status);
printf("Hydraulic Control For Landing Gear Status:%s\n",state_Machine[current_state].hydraulic_pump_control_status);
}
else
{
gear_up();
}
}

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.

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.