test(tecs): skip case with zero error entirely

This commit is contained in:
Balduin committed 2026-11-24 16:27:00 +01:00
1 parent 8fd4f54cd9
commit 904378afee
2 files changed
+4 -3

No files matched your search

@@ -645,6 +645,10 @@ TEST_F(TECSControlClosedLoopTest, EnergyErrorPhasePortrait)
for (int ske_sign = -1; ske_sign <= 1; ske_sign++) {
for (int spe_sign = -1; spe_sign <= 1; spe_sign++) {
// All zero case, not interesting
if (!ske_sign && !spe_sign) { continue; }
const float ske_error = ske_sign * ENERGY_ERROR;
const float spe_error = spe_sign * ENERGY_ERROR;
-3
View File
@@ -165,9 +165,6 @@ def plot_phase(d, title):
e_spe = G * (d["alt_sp"][m] - d["h"][m])
key = (int(np.sign(np.round(e_ske[0], 3))), int(np.sign(np.round(e_spe[0], 3))))
if key not in PHASE_CASES:
continue # zero initial error: nothing to draw
label, c = PHASE_CASES[key]
ax.plot(e_ske, e_spe, color=c, lw=2)
ax.plot(e_ske[0], e_spe[0], "o", color=c, ms=9)