Skip to content

Commit

Permalink
Add start of digital input logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jfabellera committed Sep 13, 2024
1 parent 16c2b25 commit 720f8ab
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions back-end/realtime/src/rooms/FCS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ export default class FCS extends Room {
this.reinitializeWleds();
});

socket.on('fcs:digitalInputs', (packet) => {
// TODO(jan): Update match data
});

socket.emit('fcs:update', this.latestFcsStatus);
}

Expand Down
5 changes: 5 additions & 0 deletions lib/models/src/fcs/Packets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,11 @@ function buildInitPacket(fieldOptions: FieldOptions): FieldControlInitPacket {
}
});

result.hubs[RevHub.CENTER_CONTROL_HUB]!.digitalInputs!.push({
channel: 0,
triggerOptions: null
});

return result;
}

Expand Down

0 comments on commit 720f8ab

Please sign in to comment.