forked from RnD/machineGroupControl
updates from laptop
This commit is contained in:
@@ -61,7 +61,6 @@ class MachineGroup {
|
|||||||
//listen for machine pressure changes
|
//listen for machine pressure changes
|
||||||
this.logger.debug(`Listening for pressure changes from machine ${child.config.general.id}`);
|
this.logger.debug(`Listening for pressure changes from machine ${child.config.general.id}`);
|
||||||
|
|
||||||
|
|
||||||
child.measurements.emitter.on("pressure.measured.differential", (eventData) => {
|
child.measurements.emitter.on("pressure.measured.differential", (eventData) => {
|
||||||
this.logger.debug(`Pressure update from ${child.config.general.id}: ${eventData.value} ${eventData.unit}`);
|
this.logger.debug(`Pressure update from ${child.config.general.id}: ${eventData.value} ${eventData.unit}`);
|
||||||
this.handlePressureChange();
|
this.handlePressureChange();
|
||||||
@@ -906,6 +905,7 @@ class MachineGroup {
|
|||||||
}
|
}
|
||||||
await this.prioPercentageControl(demandQout,priorityList);
|
await this.prioPercentageControl(demandQout,priorityList);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "optimalcontrol":
|
case "optimalcontrol":
|
||||||
this.logger.debug(`Calculating optimal control. Input flow demand: ${demandQ} scaling : ${scaling} -> ${demandQout}`);
|
this.logger.debug(`Calculating optimal control. Input flow demand: ${demandQ} scaling : ${scaling} -> ${demandQout}`);
|
||||||
await this.optimalControl(demandQout,powerCap);
|
await this.optimalControl(demandQout,powerCap);
|
||||||
|
|||||||
Reference in New Issue
Block a user