mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-09 13:46:44 -04:00
Add PLC integration for field sensors, motors, and lights.
This commit is contained in:
@@ -98,7 +98,7 @@ func (web *Web) audienceDisplayWebsocketHandler(w http.ResponseWriter, r *http.R
|
||||
BlueScore *game.Score
|
||||
RedScoreSummary *game.ScoreSummary
|
||||
BlueScoreSummary *game.ScoreSummary
|
||||
}{web.arena.RedRealtimeScore.CurrentScore, web.arena.BlueRealtimeScore.CurrentScore,
|
||||
}{&web.arena.RedRealtimeScore.CurrentScore, &web.arena.BlueRealtimeScore.CurrentScore,
|
||||
web.arena.RedScoreSummary(), web.arena.BlueScoreSummary()}
|
||||
err = websocket.Write("realtimeScore", data)
|
||||
if err != nil {
|
||||
@@ -160,7 +160,7 @@ func (web *Web) audienceDisplayWebsocketHandler(w http.ResponseWriter, r *http.R
|
||||
BlueScore *game.Score
|
||||
RedScoreSummary *game.ScoreSummary
|
||||
BlueScoreSummary *game.ScoreSummary
|
||||
}{web.arena.RedRealtimeScore.CurrentScore, web.arena.BlueRealtimeScore.CurrentScore,
|
||||
}{&web.arena.RedRealtimeScore.CurrentScore, &web.arena.BlueRealtimeScore.CurrentScore,
|
||||
web.arena.RedScoreSummary(), web.arena.BlueScoreSummary()}
|
||||
case _, ok := <-scorePostedListener:
|
||||
if !ok {
|
||||
|
||||
Reference in New Issue
Block a user