Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision |
Your text |
Line 1: |
Line 1: |
− | == Structure == | + | = Dual-Atmosphere Airlock = |
| | | |
− | == Piping == | + | == Target Atmosphere == |
| | | |
− | == Electronics ==
| + | [[Kit (Logic Switch)|Switch]] |
| + | [[Carsten Milkau/RS-Latch]] |
| | | |
− | === Constants === | + | == Current Atmosphere == |
| | | |
− | * Zero
| + | [[Carsten Milkau/D-Latch]] |
− | * "Vacuum" pressure
| |
− | | |
− | === Target Atmosphere ===
| |
− | | |
− | * [[Kit (Logic Switch)|Switch]]
| |
− | * [[User:Carsten Milkau/RS-Latch]]
| |
− | | |
− | === Current Atmosphere ===
| |
− | | |
− | [[User:Carsten Milkau/D-Latch]]
| |
− | | |
− | <pre>if (internal_pressure > vacuum_pressure)
| |
− | then current_atmosphere = current_atmosphere
| |
− | else current_atmosphere = target_atmosphere</pre>
| |
− | | |
− | === Door sensor ===
| |
− | | |
− | * <del>[[User:Carsten Milkau/OR Gate]]</del>
| |
− | * [[Kit (Logic I/O)#Batch Reader|Batch Reader]]
| |
− | * [[User:Carsten Milkau/NOT Gate]]
| |
− | | |
− | <pre>num_open_doors = read_sum(airlock_door open)
| |
− | doors_closed = (num_open_doors = 0)</pre>
| |
− | | |
− | === Door control ===
| |
− | | |
− | if (my atmosphere)
| |
− | then (internal pressure >= external pressure)
| |
− | else Zero
| |
− | | |
− | === Vent activation ===
| |
− | | |
− | if (my atmosphere)
| |
− | then (doors closed)
| |
− | else Zero
| |
− | | |
− | * atmosphere 0: max(atmosphere1, any door open) = Zero
| |
− | * atmosphere 1: atmosphere1 > any door open
| |
− | | |
− | === Vent direction ===
| |
− | | |
− | [[Kit (Logic Processor)#Compare Unit|Compare Unit]]
| |
− | | |
− | <pre>if (my target atmosphere)
| |
− | then pressurize
| |
− | else depressurize</pre>
| |