mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-09 13:46:44 -04:00
Add ethernet connected, trip time, missed packets, and tooltips to the field monitor (closes #63).
This commit is contained in:
14
plc/plc.go
14
plc/plc.go
@@ -159,6 +159,20 @@ func (plc *Plc) GetTeamEstops() ([3]bool, [3]bool) {
|
||||
return redEstops, blueEstops
|
||||
}
|
||||
|
||||
// Returns whether anything is connected to each station's designated Ethernet port on the SCC.
|
||||
func (plc *Plc) GetEthernetConnected() ([3]bool, [3]bool) {
|
||||
return [3]bool{
|
||||
plc.inputs[redConnected1],
|
||||
plc.inputs[redConnected2],
|
||||
plc.inputs[redConnected3],
|
||||
},
|
||||
[3]bool{
|
||||
plc.inputs[blueConnected1],
|
||||
plc.inputs[blueConnected2],
|
||||
plc.inputs[blueConnected3],
|
||||
}
|
||||
}
|
||||
|
||||
// Set the on/off state of the stack lights on the scoring table.
|
||||
func (plc *Plc) SetStackLights(red, blue, orange, green bool) {
|
||||
plc.coils[stackLightRed] = red
|
||||
|
||||
Reference in New Issue
Block a user