Move PLC into its own module.

This commit is contained in:
Patrick Fairbank
2018-09-03 19:12:22 -07:00
parent 533acf5e99
commit 03a3110075
6 changed files with 7 additions and 6 deletions

View File

@@ -11,6 +11,7 @@ import (
"github.com/Team254/cheesy-arena/led"
"github.com/Team254/cheesy-arena/model"
"github.com/Team254/cheesy-arena/partner"
"github.com/Team254/cheesy-arena/plc"
"github.com/Team254/cheesy-arena/vaultled"
"log"
"math/rand"
@@ -42,7 +43,7 @@ type Arena struct {
EventSettings *model.EventSettings
accessPoint *AccessPoint
networkSwitch *NetworkSwitch
Plc Plc
Plc plc.Plc
TbaClient *partner.TbaClient
StemTvClient *partner.StemTvClient
AllianceStations map[string]*AllianceStation

View File

@@ -1,6 +1,6 @@
// Code generated by "stringer -type=coil"; DO NOT EDIT.
package field
package plc
import "strconv"

View File

@@ -1,6 +1,6 @@
// Code generated by "stringer -type=input"; DO NOT EDIT.
package field
package plc
import "strconv"

View File

@@ -3,7 +3,7 @@
//
// Methods for interfacing with the field PLC.
package field
package plc
import (
"fmt"

View File

@@ -1,7 +1,7 @@
// Copyright 2017 Team 254. All Rights Reserved.
// Author: pat@patfairbank.com (Patrick Fairbank)
package field
package plc
import (
"github.com/stretchr/testify/assert"

View File

@@ -1,6 +1,6 @@
// Code generated by "stringer -type=register"; DO NOT EDIT.
package field
package plc
import "strconv"