Switch pump to Qdrain_sp
This commit is contained in:
parent
19b235bfb6
commit
4ee303f854
|
|
@ -170,7 +170,7 @@ class CANBackend:
|
|||
"MV06_sp": int.from_bytes(data[0:2], 'little') / 100.0,
|
||||
"MV07_sp": int.from_bytes(data[2:4], 'little') / 100.0,
|
||||
"MV08_sp": int.from_bytes(data[4:6], 'little') / 100.0,
|
||||
"Pump_sp": int.from_bytes(data[6:8], 'little') / 100.0,
|
||||
"Qdrain_sp": int.from_bytes(data[6:8], 'little') / 100.0,
|
||||
})
|
||||
|
||||
elif cob_id == 0x2B1 and len(data) >= 7:
|
||||
|
|
|
|||
2
main.py
2
main.py
|
|
@ -100,7 +100,7 @@ def format_PU_data(data):
|
|||
"MV07_sp": np.round(data.get("MV07_sp", 0.0), 1),
|
||||
"MV08": np.round(data.get("MV08", 0.0), 1),
|
||||
"MV08_sp": np.round(data.get("MV08_sp", 0.0), 1),
|
||||
"Pump_sp" : np.round(data.get("Pump_sp", 0.0), 1),
|
||||
"Qdrain_sp" : np.round(data.get("Qdrain_sp", 0.0), 1),
|
||||
}
|
||||
|
||||
def format_DS_data(data):
|
||||
|
|
|
|||
|
|
@ -89,9 +89,9 @@
|
|||
}, [0, 1], maxPoints);
|
||||
|
||||
Plotly.extendTraces('flow-plot-2', {
|
||||
x: [[t], [t], [t], [t], [t]],
|
||||
y: [[puData.Qdrain], [puData.Qrecirc], [SkidData.QSkid], [puData.QdrainEDI], [DSData.Qconso]]
|
||||
}, [0, 1, 2, 3, 4], maxPoints);
|
||||
x: [[t], [t], [t], [t], [t], [t]],
|
||||
y: [[puData.Qdrain], [puData.Qrecirc], [SkidData.QSkid], [puData.QdrainEDI], [DSData.Qconso], [puData.Qdrain_sp]]
|
||||
}, [0, 1, 2, 3, 4, 5], maxPoints);
|
||||
|
||||
Plotly.extendTraces('pressure-plot-1', {
|
||||
x: [[t], [t]],
|
||||
|
|
@ -179,7 +179,7 @@
|
|||
{ x: time0, y: [0], name: 'QSkid', mode: 'lines' },
|
||||
{ x: time0, y: [0], name: 'QdrainEDI', mode: 'lines' },
|
||||
{ x: time0, y: [0], name: 'Qconso', mode: 'lines' },
|
||||
|
||||
{ x: time0, y: [0], name: 'Qdrain_sp', mode: 'lines' },
|
||||
], {
|
||||
title: 'Other Flows', xaxis: { type: 'date' }, yaxis: { title: 'Flow (L/h)' }
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user