forked from RnD/machineGroupControl
ok
This commit is contained in:
@@ -59,7 +59,7 @@ class MachineGroup {
|
||||
this.machines[child.config.general.id] === undefined ? this.machines[child.config.general.id] = child : this.logger.warn(`Machine ${child.config.general.id} is already registered.`);
|
||||
|
||||
//listen for machine pressure changes
|
||||
this.logger.debug(`Listening for changes from child ${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) => {
|
||||
this.logger.debug(`Pressure update from ${child.config.general.id}: ${eventData.value} ${eventData.unit}`);
|
||||
@@ -905,6 +905,7 @@ class MachineGroup {
|
||||
}
|
||||
await this.prioPercentageControl(demandQout,priorityList);
|
||||
break;
|
||||
|
||||
case "optimalcontrol":
|
||||
this.logger.debug(`Calculating optimal control. Input flow demand: ${demandQ} scaling : ${scaling} -> ${demandQout}`);
|
||||
await this.optimalControl(demandQout,powerCap);
|
||||
|
||||
Reference in New Issue
Block a user