react: add more output

This commit is contained in:
Navid Sassan 2024-10-25 01:03:40 +02:00
parent 0544d04e85
commit 3f5d469402

3
react
View File

@ -47,13 +47,16 @@ do
if (energy > NORMAL_THRESHOLD_U) if (energy > NORMAL_THRESHOLD_U)
then then
print("Energy over NORMAL_THRESHOLD_U, deactivating reactor")
active = false active = false
else else
if (energy < NORMAL_THRESHOLD_L) if (energy < NORMAL_THRESHOLD_L)
then then
print("Energy under NORMAL_THRESHOLD_L, activating reactor")
active = true active = true
if (energy < HIGH_THRESHOLD) if (energy < HIGH_THRESHOLD)
then then
print("Energy under HIGH_THRESHOLD, activating proportional rod control")
--proportional control --proportional control
ctrl_rods = NORMAL_ROD_POS * (energy / HIGH_THRESHOLD) ctrl_rods = NORMAL_ROD_POS * (energy / HIGH_THRESHOLD)
end end