Consigne reseau : la part voiture suit la puissance reelle quand la voiture plafonne (boost Volvo du 14/10 : batterie rechargee en HP)
This commit is contained in:
@@ -184,6 +184,13 @@ for (const sc of scenarios) {
|
||||
|
||||
const diffs = [];
|
||||
for (const [k, v] of Object.entries(sc.expect || {})) {
|
||||
// 14/10/2026 : bornes sur la consigne reseau ecrite ce cycle.
|
||||
if (k === 'gridSetpointBelowW' || k === 'gridSetpointAtLeastW') {
|
||||
const w = got.gridSetpointW;
|
||||
const ok = Number.isFinite(w) && (k === 'gridSetpointBelowW' ? w < v : w >= v);
|
||||
if (!ok) diffs.push(`${k}: attendu ${k === 'gridSetpointBelowW' ? '<' : '>='} ${v}, obtenu ${JSON.stringify(w)}`);
|
||||
continue;
|
||||
}
|
||||
if (JSON.stringify(got[k]) !== JSON.stringify(v)) diffs.push(`${k}: attendu ${JSON.stringify(v)}, obtenu ${JSON.stringify(got[k])}`);
|
||||
}
|
||||
if (diffs.length) {
|
||||
|
||||
Reference in New Issue
Block a user