#188 refactored RPS no_cool to low_cool

This commit is contained in:
Mikayla Fischler
2023-03-04 22:19:53 -05:00
parent c9f1bddb36
commit 83dc1064f7
12 changed files with 31 additions and 31 deletions

View File

@@ -67,7 +67,7 @@ local IO_PORT = {
R_AUTO_SCRAM = 15, -- active high, if the reactor was automatically scrammed
R_DMG_HIGH = 16, -- active high, if the reactor damage is high
R_HIGH_TEMP = 17, -- active high, if the reactor is at a high temperature
R_NO_COOLANT = 18, -- active high, if the reactor has no coolant
R_LOW_COOLANT = 18, -- active high, if the reactor has very low coolant
R_EXCESS_HC = 19, -- active high, if the reactor has excess heated coolant
R_EXCESS_WS = 20, -- active high, if the reactor has excess waste
R_INSUFF_FUEL = 21, -- active high, if the reactor has insufficent fuel
@@ -110,7 +110,7 @@ function rsio.to_string(port)
"R_AUTO_SCRAM",
"R_DMG_HIGH",
"R_HIGH_TEMP",
"R_NO_COOLANT",
"R_LOW_COOLANT",
"R_EXCESS_HC",
"R_EXCESS_WS",
"R_INSUFF_FUEL",
@@ -175,7 +175,7 @@ local RS_DIO_MAP = {
{ _in = _I_ACTIVE_HIGH, _out = _O_ACTIVE_HIGH, mode = IO_DIR.OUT },
-- R_HIGH_TEMP
{ _in = _I_ACTIVE_HIGH, _out = _O_ACTIVE_HIGH, mode = IO_DIR.OUT },
-- R_NO_COOLANT
-- R_LOW_COOLANT
{ _in = _I_ACTIVE_HIGH, _out = _O_ACTIVE_HIGH, mode = IO_DIR.OUT },
-- R_EXCESS_HC
{ _in = _I_ACTIVE_HIGH, _out = _O_ACTIVE_HIGH, mode = IO_DIR.OUT },
@@ -217,7 +217,7 @@ function rsio.get_io_mode(port)
IO_MODE.DIGITAL_OUT, -- R_AUTO_SCRAM
IO_MODE.DIGITAL_OUT, -- R_DMG_HIGH
IO_MODE.DIGITAL_OUT, -- R_HIGH_TEMP
IO_MODE.DIGITAL_OUT, -- R_NO_COOLANT
IO_MODE.DIGITAL_OUT, -- R_LOW_COOLANT
IO_MODE.DIGITAL_OUT, -- R_EXCESS_HC
IO_MODE.DIGITAL_OUT, -- R_EXCESS_WS
IO_MODE.DIGITAL_OUT, -- R_INSUFF_FUEL

View File

@@ -275,7 +275,7 @@ types.FLUID = {
---| "ok"
---| "dmg_high"
---| "high_temp"
---| "no_coolant"
---| "low_coolant"
---| "ex_waste"
---| "ex_heated_coolant"
---| "no_fuel"
@@ -290,7 +290,7 @@ types.RPS_TRIP_CAUSE = {
OK = "ok",
DMG_HIGH = "dmg_high",
HIGH_TEMP = "high_temp",
NO_COOLANT = "no_coolant",
LOW_COOLANT = "low_coolant",
EX_WASTE = "ex_waste",
EX_HCOOLANT = "ex_heated_coolant",
NO_FUEL = "no_fuel",