Skip to content

Commit

Permalink
Add reset and alternate IO stop state functions to FakePlc
Browse files Browse the repository at this point in the history
  • Loading branch information
cpapplefamily committed Dec 23, 2024
1 parent f5c3c83 commit 2339977
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions field/fake_plc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,32 @@ func (plc *FakePlc) SetAmpLights(redLow, redHigh, redCoop, blueLow, blueHigh, bl
func (plc *FakePlc) SetPostMatchSubwooferLights(state bool) {
plc.postMatchSubwooferLights = state
}


// used for Alternate IO stops

func (plc *FakePlc) ResetEstops(){
plc.fieldEStop = true
plc.redEStops[0] = true
plc.redEStops[1] = true
plc.redEStops[2] = true
plc.blueEStops[0] = true
plc.blueEStops[1] = true
plc.blueEStops[2] = true
plc.redAStops[0] = true
plc.redAStops[1] = true
plc.redAStops[2] = true
plc.blueAStops[0] = true
plc.blueAStops[1] = true
plc.blueAStops[2] = true

}

func (plc *FakePlc) SetAlternateIOStopState(input int, state bool){
//plc.inputs[input] = state
}


func (plc *FakePlc) GetFieldStackLight() (bool, bool, bool, bool) {
return plc.stackLights[0], plc.stackLights[1], plc.stackLights[2], plc.stackLights[3]
}

0 comments on commit 2339977

Please sign in to comment.