Difference between revisions of "Component: Airplane Landing Gear (Scenarios)"
From Flowcode Help
Jump to navigationJump to search| (3 intermediate revisions by the same user not shown) | |||
| Line 59: | Line 59: | ||
[[Airplane_Landing_Gear|Airplane Landing Gear Scenario]] | [[Airplane_Landing_Gear|Airplane Landing Gear Scenario]] | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| Line 64: | Line 72: | ||
==Macro reference== | ==Macro reference== | ||
| + | ===FrontDoorCloseSwitch=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''FrontDoorCloseSwitch''' |
| + | |- | ||
| + | | colspan="2" | Test to see if the Front door will touch the collision switch by its original position. If it does, will return true. and stop movement. Assigned variable of a Bool is recommended | ||
| + | |- | ||
| + | |- | ||
| + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE | ||
| + | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
| + | |} | ||
| + | |||
| + | |||
| + | ===FrontDoorLocks=== | ||
| + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| + | |- | ||
| + | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''FrontDoorLocks''' | ||
|- | |- | ||
| − | | colspan="2" | Will | + | | colspan="2" | Will lock or unlock the front doors depending on the number given to the paremeter. |
|- | |- | ||
|- | |- | ||
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | ||
| − | | width="90%" | | + | | width="90%" | OpenOrClose |
|- | |- | ||
| − | | colspan="2" | | + | | colspan="2" | Open =1 Close=0 |
|- | |- | ||
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | ||
| Line 82: | Line 105: | ||
| + | ===FrontDoorOpenSwitch=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''FrontDoorOpenSwitch''' |
|- | |- | ||
| − | | colspan="2" | Test to see if the | + | | colspan="2" | Test to see if the Back door will touch the collision switch by its final position. If it does, will return true. and stop movement. Assigned variable of a Bool is recommended |
|- | |- | ||
|- | |- | ||
| Line 95: | Line 119: | ||
| + | ===FrontDoors=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''FrontDoors''' |
| + | |- | ||
| + | | colspan="2" | Will allow the front doors to open. | ||
| + | |- | ||
|- | |- | ||
| − | | | + | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE |
| + | | width="90%" | Direction | ||
|- | |- | ||
| + | | colspan="2" | Drops the door down or close them. 0 = Close 1 = Open | ||
|- | |- | ||
| − | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9- | + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID |
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
| + | ===LandingGear=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LandingGear''' |
|- | |- | ||
| − | | colspan="2" | | + | | colspan="2" | Retracts and drops the landing gear. |
|- | |- | ||
|- | |- | ||
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | ||
| − | | width="90%" | | + | | width="90%" | Direction |
|- | |- | ||
| − | | colspan="2" | | + | | colspan="2" | Drop the wheel down or retracts them. 0 = Retracts 1 = Drop |
|- | |- | ||
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | ||
| Line 126: | Line 157: | ||
| + | ===LandingGearDownSwitch=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LandingGearDownSwitch''' |
|- | |- | ||
| − | | colspan="2" | Test to see if the Landing Gear will touch the collision switch | + | | colspan="2" | Test to see if the Landing Gear will touch the collision switch by its final position. If it does, will return true. and stop movement. Assigned variable of a Bool is recommended |
|- | |- | ||
|- | |- | ||
| Line 139: | Line 171: | ||
| + | ===LandingGearUpSwitch=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LandingGearUpSwitch''' |
|- | |- | ||
| − | | colspan="2" | Test to see if the | + | | colspan="2" | Test to see if the Landing Gear will touch the collision switch above it. If it does, will return true. and stop movement. Assigned variable of a Bool is recommended |
|- | |- | ||
|- | |- | ||
| Line 152: | Line 185: | ||
| + | ===RearDoorCloseSwitch=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''RearDoorCloseSwitch''' |
|- | |- | ||
| − | | colspan="2" | | + | | colspan="2" | Test to see if the rear door will touch the collision switch by its original position. If it does, will return true. and stop movement. |
|- | |- | ||
|- | |- | ||
| − | + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9- | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
| + | ===RearDoorLocks=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''RearDoorLocks''' |
|- | |- | ||
| − | | colspan="2" | | + | | colspan="2" | Will unlock or lock the rear doors |
|- | |- | ||
|- | |- | ||
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | ||
| − | | width="90%" | | + | | width="90%" | OpenOrClose |
|- | |- | ||
| − | | colspan="2" | | + | | colspan="2" | Open =1 Close =0 |
|- | |- | ||
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | ||
| Line 188: | Line 218: | ||
| + | ===RearDoorOpenSwitch=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''RearDoorOpenSwitch''' |
|- | |- | ||
| − | | colspan="2" | Test to see if the rear door will touch the collision switch by its | + | | colspan="2" | Test to see if the rear door will touch the collision switch by its final position. If it does, will return true. and stop movement. |
|- | |- | ||
|- | |- | ||
| Line 201: | Line 232: | ||
| + | ===RearDoors=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 217: | Line 249: | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
Latest revision as of 13:11, 7 February 2023
| Author | Matrix TSL |
| Version | 1.0 |
| Category | Scenarios |
Contents
Airplane Landing Gear component
A simulation of an Airplane Landing Gear containing, switches, locking mechanisms and retracting landing gear.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_LandingGearComponent_v002.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_LandingGearComponent_v002.fcfx
Detailed description
No detailed description exists yet for this component
Examples
There is a detailed walk through of the scenario detailed at the link below to go with this component.
Airplane Landing Gear Scenario
Macro reference
FrontDoorCloseSwitch
FrontDoorLocks
| FrontDoorLocks | |
| Will lock or unlock the front doors depending on the number given to the paremeter. | |
| OpenOrClose | |
| Open =1 Close=0 | |
| Return | |
FrontDoorOpenSwitch
FrontDoors
| FrontDoors | |
| Will allow the front doors to open. | |
| Direction | |
| Drops the door down or close them. 0 = Close 1 = Open | |
| Return | |
LandingGear
| LandingGear | |
| Retracts and drops the landing gear. | |
| Direction | |
| Drop the wheel down or retracts them. 0 = Retracts 1 = Drop | |
| Return | |
LandingGearDownSwitch
LandingGearUpSwitch
| LandingGearUpSwitch | |
| Test to see if the Landing Gear will touch the collision switch above it. If it does, will return true. and stop movement. Assigned variable of a Bool is recommended | |
| Return | |
RearDoorCloseSwitch
| RearDoorCloseSwitch | |
| Test to see if the rear door will touch the collision switch by its original position. If it does, will return true. and stop movement. | |
| Return | |
RearDoorLocks
| RearDoorLocks | |
| Will unlock or lock the rear doors | |
| OpenOrClose | |
| Open =1 Close =0 | |
| Return | |
RearDoorOpenSwitch
| RearDoorOpenSwitch | |
| Test to see if the rear door will touch the collision switch by its final position. If it does, will return true. and stop movement. | |
| Return | |
RearDoors
| RearDoors | |
| Will allow the rear door to open | |
| Direction | |
| Drop the door down or close them. 0 = Close 1 = Open | |
| Return | |
Property reference
| Properties |