Project 2 - Implement the Code for controlling the retraction and extension of Airplane’s landing gear
Output:
Enter the Pilot lever and Squat_Switch Values:0 1
Current state: Checking Before Take Off
Light Status: Green
Direction_valve Status: Down
Hydraulic_control Status: Enabled
Enter the Pilot lever, Squat_Switch and Hydraulic_mechanism Values:1 0 0
Current state: Gear Down
Light Status: Green
Direction_valve Status: Down
Hydraulic_control Status: Enabled
Enter the Pilot lever and Squat_Switch Values:0 1
Current state: Checking Before Take Off
Light Status: Green
Direction_valve Status: Down
Hydraulic_control Status: Enabled
Enter the Pilot lever, Squat_Switch and Hydraulic_mechanism Values:2 1 0
Current state: Raising Gear
Light Status: Red
Direction_valve Status: Up
Hydraulic_control Status: Enabled
Enter the Pilot lever,Limit_Switch Values:1 1
Current state: Checking Before Landing
Light Status: Red
Direction_valve Status: Down
Hydraulic_control Status: Enabled
Enter the Pilot lever and Hydraulic_mechanism Values:3 1
Current state: Lowering Gear
Light Status: Green
Direction_valve Status: Down
Hydraulic_control Status: Enabled
Enter the Pilot lever and Limit Switch Values:0 1
Current state: Gear Down
Light Status: Green
Direction_valve Status: Down
Hydraulic_control Status: Enabled
Enter the Pilot lever and Squat_Switch Values:0 0
Enter the Pilot lever and Squat_Switch Values:0 1
Current state: Checking Before Take Off
Light Status: Green
Direction_valve Status: Down
Hydraulic_control Status: Enabled
Enter the Pilot lever, Squat_Switch and Hydraulic_mechanism Values: