Added gauge-off code
This commit is contained in:
@@ -126,6 +126,7 @@ go_channels = {
|
||||
}
|
||||
|
||||
statusCh = Channel('status', 'Pump.Run_Status', 'str', 0, 0)
|
||||
gaugeOffCh = Channel('go','Gauge_Off_Command', 'boolean', 0, 0)
|
||||
|
||||
channels = {
|
||||
'downhole_adjusted_gross_stroke': Channel('downhole_adjusted_gross_stroke', 'Card_Past[1].Downhole_AdjustedGrossStroke', 'float', 5.0, 3600),
|
||||
@@ -274,7 +275,9 @@ class start(threading.Thread, deviceBase):
|
||||
self.channelCheck(dt_channels[dt], self.forceSend)
|
||||
|
||||
runLoopStatus = "checkGaugeOffData"
|
||||
# self.checkGaugeOffData()
|
||||
if gaugeOffCh.read(self.forceSend):
|
||||
for go in go_channels:
|
||||
self.channelCheck(go_channels[go], self.forceSend)
|
||||
|
||||
|
||||
runLoopStatus = "Stroke Parameter Data"
|
||||
@@ -310,8 +313,6 @@ class start(threading.Thread, deviceBase):
|
||||
time.sleep(sleep_timer)
|
||||
|
||||
def checkStatus(self):
|
||||
print("!! Made it to checkStatus")
|
||||
print(readTag)
|
||||
statusMap = {
|
||||
0: 'Stopped',
|
||||
1: 'Running',
|
||||
|
||||
Reference in New Issue
Block a user