Merge pull request #20 from AustinSchuh/cheesychamps_2016_updates

Cheesychamps 2016 updates
This commit is contained in:
Patrick Fairbank
2016-09-27 15:51:04 -07:00
committed by GitHub
3 changed files with 2 additions and 2 deletions

View File

@@ -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
}

View File

@@ -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.