Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

User:Carsten Milkau/Dual-Atmosphere Airlock: Difference between revisions

From Stationeers Wiki
Vent activation: binary variants
Line 18: Line 18:


[[User:Carsten Milkau/D-Latch]]
[[User:Carsten Milkau/D-Latch]]
<pre>if (internal_pressure > vacuum_pressure)
then current_atmosphere = current_atmosphere
else current_atmosphere = target_atmosphere</pre>


=== Door sensor ===
=== Door sensor ===

Revision as of 12:18, 22 July 2018

Structure

Piping

Electronics

Constants

  • Zero
  • "Vacuum" pressure

Target Atmosphere

Current Atmosphere

User:Carsten Milkau/D-Latch

if (internal_pressure > vacuum_pressure)
then current_atmosphere = current_atmosphere
else current_atmosphere = target_atmosphere

Door sensor

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

User:Carsten Milkau/NOT Gate