#176 generator trip display on coordinator

This commit is contained in:
Mikayla Fischler
2023-04-03 17:18:30 -04:00
parent 0f735d049e
commit 91f72ace24
6 changed files with 44 additions and 28 deletions

View File

@@ -353,7 +353,7 @@ function logic.update_annunciator(self)
- can later identified by presence of steam in tank with a 0 flow rate
]]--
local has_steam = db.state.steam_input_rate > 0 or db.tanks.steam_fill > 0.01
self.db.annunciator.TurbineTrip[turbine.get_device_idx()] = has_steam and db.state.flow_rate == 0
self.db.annunciator.TurbineTrip[idx] = has_steam and db.state.flow_rate == 0
end
-- update auto control ready state for this unit