Daedalus Dock - Modules - TypesVar Details - Proc Details

pincode_door

Vars

airlock_bolt_stateCurrent airlock bolt state from update packets. If it's mismatched, we correct our state.
airlock_stateCurrent airlock state from update packets. If it's mismatched, we correct our state.
allow_lock_openIs this door allowed to be held open (Press * while unlocked)
command_timeTimestamp for 4-second grace period.
control_modeControl Mode
correct_pinPin to compare to, if null, we need to collect one.
current_stateCurrent state machine state
door_state_timeoutGet our initial airlock state within 10 seconds.
door_timerDoor autoclose timer
dwell_timeAirlock open duration
expected_airlock_stateExpected airlock state
expected_bolt_stateExpected bolt state
fault_stringRecoverable fault string
pin_bufferPin buffer
pin_lengthPin length
tag_request_exitRequest-Exit Button ID
tag_slaveSlaved pad ID
tag_targetTarget airlock ID

Procs

control_airlockSend airlock control packet. Also updates expected states.
doorstop(if allowed) stop the timer and hold the door open.
draw_pin_dotsDraws the pin position indicators, Cut out for cleanliness so it can be called in std_in().
fast_update_doortimerCalculate the door open header, Cut out so it can safely be placed in tick()
faultSoft-Halt
pin_acceptedFired on accepting a pin, If we have a dwell time, start the timer. skip_action - Skip action, just restart the timer.
timer_expireFired upon the expiration (or manual triggering therein) of the door timer. This never gets called if the dwell time is zero.

Var Details

airlock_bolt_state

Current airlock bolt state from update packets. If it's mismatched, we correct our state.

airlock_state

Current airlock state from update packets. If it's mismatched, we correct our state.

allow_lock_open

Is this door allowed to be held open (Press * while unlocked)

command_time

Timestamp for 4-second grace period.

control_mode

Control Mode

correct_pin

Pin to compare to, if null, we need to collect one.

current_state

Current state machine state

door_state_timeout

Get our initial airlock state within 10 seconds.

door_timer

Door autoclose timer

dwell_time

Airlock open duration

expected_airlock_state

Expected airlock state

expected_bolt_state

Expected bolt state

fault_string

Recoverable fault string

pin_buffer

Pin buffer

pin_length

Pin length

tag_request_exit

Request-Exit Button ID

tag_slave

Slaved pad ID

tag_target

Target airlock ID

Proc Details

control_airlock

Send airlock control packet. Also updates expected states.

doorstop

(if allowed) stop the timer and hold the door open.

draw_pin_dots

Draws the pin position indicators, Cut out for cleanliness so it can be called in std_in().

fast_update_doortimer

Calculate the door open header, Cut out so it can safely be placed in tick()

fault

Soft-Halt

pin_accepted

Fired on accepting a pin, If we have a dwell time, start the timer. skip_action - Skip action, just restart the timer.

timer_expire

Fired upon the expiration (or manual triggering therein) of the door timer. This never gets called if the dwell time is zero.