updated comments

This commit is contained in:
Mikayla Fischler 2023-07-17 22:47:19 -04:00
parent 455653074a
commit c0f45cfb8b

View File

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