#102 #20 #19 #21 work in progress on auto control, added control loop, started auto scram checks, implemented limiting and balancing, re-organized for priority groups

This commit is contained in:
Mikayla Fischler
2023-01-03 16:50:31 -05:00
parent 6fe257d1d7
commit 41838ee340
7 changed files with 1040 additions and 616 deletions

View File

@@ -253,7 +253,7 @@ function coordinator.new_session(id, in_queue, out_queue, facility)
end
elseif cmd == UNIT_COMMANDS.SET_GROUP then
if pkt.length == 3 then
unit.set_group(pkt.data[3])
facility.set_group(unit.get_id(), pkt.data[3])
_send(SCADA_CRDN_TYPES.UNIT_CMD, { cmd, uid, pkt.data[3] })
else
log.debug(log_header .. "CRDN command unit set group missing group id")