From a22f5562cf16daff7f802c9891a0b45f320c242b Mon Sep 17 00:00:00 2001 From: Mikayla Fischler Date: Tue, 9 Apr 2024 22:19:53 -0400 Subject: [PATCH] only ramp up on reactor plc --- reactor-plc/startup.lua | 2 +- reactor-plc/threads.lua | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/reactor-plc/startup.lua b/reactor-plc/startup.lua index d610639..8931652 100644 --- a/reactor-plc/startup.lua +++ b/reactor-plc/startup.lua @@ -18,7 +18,7 @@ local plc = require("reactor-plc.plc") local renderer = require("reactor-plc.renderer") local threads = require("reactor-plc.threads") -local R_PLC_VERSION = "v1.7.5" +local R_PLC_VERSION = "v1.7.6" local println = util.println local println_ts = util.println_ts diff --git a/reactor-plc/threads.lua b/reactor-plc/threads.lua index 8071fd8..6ccf43e 100644 --- a/reactor-plc/threads.lua +++ b/reactor-plc/threads.lua @@ -662,8 +662,9 @@ function threads.thread__setpoint_control(smem) if (type(cur_burn_rate) == "number") and (setpoints.burn_rate ~= cur_burn_rate) and rps.is_active() then last_burn_sp = setpoints.burn_rate - -- update without ramp if <= 2.5 mB/t change - running = math.abs(setpoints.burn_rate - cur_burn_rate) > 2.5 + -- update without ramp if <= 2.5 mB/t increase + -- no need to ramp down, as the ramp up poses the safety risks + running = (setpoints.burn_rate - cur_burn_rate) > 2.5 if running then log.debug(util.c("SPCTL: starting burn rate ramp from ", cur_burn_rate, " mB/t to ", setpoints.burn_rate, " mB/t"))