mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-09 21:56:50 -04:00
Merge pull request #20 from AustinSchuh/cheesychamps_2016_updates
Cheesychamps 2016 updates
This commit is contained in:
@@ -79,7 +79,7 @@ func ListenForDsUdpPackets() {
|
||||
|
||||
var dsConn *DriverStationConnection
|
||||
for _, allianceStation := range mainArena.AllianceStations {
|
||||
if allianceStation.team.Id == teamId {
|
||||
if allianceStation.team != nil && allianceStation.team.Id == teamId {
|
||||
dsConn = allianceStation.DsConn
|
||||
break
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ func (lightPacket *LightPacket) setColorFade(channel int, color string, fade byt
|
||||
case "green":
|
||||
lightPacket.setRgbFade(channel, 0, 15, 0, fade)
|
||||
case "yellow":
|
||||
lightPacket.setRgbFade(channel, 15, 13, 5, fade)
|
||||
lightPacket.setRgbFade(channel, 13, 15, 7, fade)
|
||||
case "darkred":
|
||||
lightPacket.setRgbFade(channel, 1, 0, 0, fade)
|
||||
case "darkblue":
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user