Skip to content

Commit

Permalink
Merge pull request #288 from MikaylaFischler/devel
Browse files Browse the repository at this point in the history
2023.07.17 Hotfix
  • Loading branch information
MikaylaFischler authored Jul 18, 2023
2 parents acb7b5b + c0f45cf commit 8f7d7c3
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
4 changes: 4 additions & 0 deletions coordinator/process.lua
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ function process.init(iocontrol, coord_comms)
end

log.info("PROCESS: loaded auto control settings from coord.settings")

-- notify supervisor of auto waste config
self.comms.send_fac_command(FAC_COMMAND.SET_WASTE_MODE, self.config.waste_product)
self.comms.send_fac_command(FAC_COMMAND.SET_PU_FB, self.config.pu_fallback)
end

-- unit waste states
Expand Down
2 changes: 1 addition & 1 deletion coordinator/startup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ local sounder = require("coordinator.sounder")

local apisessions = require("coordinator.session.apisessions")

local COORDINATOR_VERSION = "v0.21.0"
local COORDINATOR_VERSION = "v0.21.1"

local println = util.println
local println_ts = util.println_ts
Expand Down
2 changes: 1 addition & 1 deletion supervisor/startup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ local supervisor = require("supervisor.supervisor")

local svsessions = require("supervisor.session.svsessions")

local SUPERVISOR_VERSION = "v0.20.2"
local SUPERVISOR_VERSION = "v0.20.3"

local println = util.println
local println_ts = util.println_ts
Expand Down
16 changes: 7 additions & 9 deletions supervisor/unitlogic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -327,13 +327,14 @@ function logic.update_annunciator(self)

--[[
Generator Trip
a generator trip is when a generator suddenly and unexpectedly loses it's external load
oftentimes this is when a power plant is disconnected from the grid for one reason or another
in this case we just:
- check if internal power storage of turbine is increasing
that means there is no external load and there will be a turbine trip soon if this is not resolved
a generator trip is when a generator suddenly and unexpectedly loses it's external load, which occurs when a power plant
is disconnected from the grid. in our case, this is when the turbine is disconnected, or what it's connected to becomes
fully charged. this is identified by detecting if:
- the internal power storage of the turbine is increasing AND
- there is at least 5% energy fill (preventing false trips with periodic power extraction from other mods)
this would then mean there is no external load and there will be a turbine trip soon if this is not resolved
]]--
self.db.annunciator.GeneratorTrip[idx] = _get_dt(DT_KEYS.TurbinePower .. idx) > 0.0
self.db.annunciator.GeneratorTrip[idx] = (_get_dt(DT_KEYS.TurbinePower .. idx) > 0.0) and (db.tanks.energy_fill > 0.05)

--[[
Turbine Trip
Expand Down Expand Up @@ -504,9 +505,6 @@ function logic.update_alarms(self)

local rcs_trans = any_low or any_over or gen_trip or annunc.RCPTrip or annunc.MaxWaterReturnFeed

-- only care about RCS flow low early with boilers
if self.num_boilers > 0 then rcs_trans = rcs_trans or annunc.RCSFlowLow end

-- annunciator indicators for these states may not indicate a real issue when:
-- > flow is ramping up right after reactor start
-- > flow is ramping down after reactor shutdown
Expand Down

0 comments on commit 8f7d7c3

Please sign in to comment.