Skip to content

Pressure Sensor

An atmospheric pressure probe that landed broken. Its readings come out scrambled until a script stabilizes the repair signal, after which it reads pressure directly.

Access: get_component("pressure_sensor") · Like every component, exposes .id and .name.

Current unstable repair reading as an integer. If the value is odd, add 1; if it is even, use it unchanged. After repair, this method returns real atmospheric pressure in kPa.

Returns: Number (unstable repair reading; kPa after repair)

Start the black-box stabilization suite with the corrected even reading: result = self.stabilize(corrected_value). The suite then checks the whole script against several readings. A fully correct suite repairs the sensor; failed test cases remain visible in the console.

Returns: ActionResult

StatusKindMeaning
"started"successThe operation started
"already_repaired"successThe target is already repaired
"no_source"rejectionNo source is configured or available
"already_testing"transientThe requested test is already running

peek_command() · next_command() · command_count() · clear_commands() (SELF ONLY): identical on every scriptable machine, see Script Commands.

component = get_component("pressure_sensor")
value = component.get_value()
print(value)
  • Atmosphere: get_pressure() requires this sensor repaired
  • First Steps: repairing Pressure opens Harvesting and Contracts