Stationeers

Stationeers

Not enough ratings
Adaptive Airlock
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
151.112 KB
11 Aug, 2020 @ 12:41pm
1 Change Note ( view )

Subscribe to download
Adaptive Airlock

In 1 collection by TryCatch
Smart Station
7 items
Description
Drop-in replacement for the vanilla airlock.
Features:
- automatically measure pressure on both sides, no need to set it somewhere
- work as advanced airlock or simple(e.g. with vacuum outside)
- level indicator for pressurization process
- emergency mode that allows manual override opening of doors while active
- control airlock via the buttons of the doors themselves
- faster than vanilla
Disadvantage is that it does not support blast doors.

Setup
Build airlock in your preferred way but instead of placing console you need to place Diode Slide and IC Housing with circuit. Set screws:
d0 - Door facing "inside"
d1 - Door facing "outside"
d2 - Active vent for the inside atmo
d3 - (Optional) Active vent for the outside atmo.
d4 - Gas sensor in airlock
d5 - Diod slide for indication and toggle emergency mode
That's all!

Simple mode airlock - just don't set vent for the outside(skip screw d3)
Emergency mode - if you stuck in the airlock turn off diod slide. Script will stop and unlock doors for manual opening.

For the first cycle it doesn't measured pressure on the other side yet, so it will vent in lesser amount.

P.S. I tried to make the code more readable as possible, so it should be easy to figure out what's going in it. Thumbs up if you like this approach :)
15 Comments
boblefurieu 9 Apr @ 1:09pm 
Got the same error : Error OutOfDeviceBounds at line 87
Macgunius 15 Aug, 2024 @ 7:30am 
dr12/dr13 are OpenedDoor/ClosedDoor
Sakata 24 Mar, 2024 @ 4:13am 
@TryCatch
Hey, just wondering if you planned to update this code. Looks a lot better than some of the other airlock IC's ive seen but the bug on line 87 I don't know how to fix (not sure what dr12/13 are)
Ed 13 Mar, 2024 @ 9:24am 
yea this IC seems broken... :(
Kyr 11 Dec, 2023 @ 12:05pm 
When I turn on the IC Housing I get an "Error OutOfDeviceBounds at line 87".
ShamblerDK 28 Aug, 2022 @ 10:59am 
For some reason it's super slow for us. We are on a planet, with 2 kPa outside and ~35 kPa inside. The airlock is at the top of an elevator with 1 space inbetween the airlock and the elevator, if that is of any importance.
Flat Duck Fridays 13 Mar, 2021 @ 9:02am 
It should be noted that if you are retrofitting an existing airlock, the active vents will have the PressureExternal and/or lock settings set by the old airlock chip. You should deconstruct and reconstruct any existing active vents in your airlock, before turning on the IC housing. This is probably the issue that @Cpt Nuggets was having below.
Vorg 16 Jan, 2021 @ 10:56am 
Going to look at this latter today sometime. Think I know how you are doing this with just 1 chip. A change is coming from testing branch that lets IC10 do batch reading through hash. The advantage is, you don't need to use a pin for that. I always put my airlock on an APC so it's the last thing to go down in power outages. Because of that, you can is "lb/sb" batch commands to work the diode freeing up a pin. If you stick with just one sensor, you can do the same for that. If you use different door types for inside and outside, you can free up 2 pins there. Lots of options.
小月猫 15 Dec, 2020 @ 8:21pm 
i actually already found a fix for airlock speed, i have an active vent inside the wall girder, this is just to set the mode, i then use logic to read the mode the airlock sets on the active vent, then have it flip on 1 of my 2 volume pumps connected to a PASSIVE vent, one volume pump will pump fresh air into the airlock, the other will suck everything out into my filtration system. as it relies only on passive vents, its very fast
Wafflez [CZE] 9 Dec, 2020 @ 11:54pm 
Cpt. Nuggets, the active vent is the only constraint, which can pump out max of 101 kpa. I am afraid you will have to change your design to accommodate this limitation.