From adb1417978620976e1c037be1bc4e6d61a7d4ec8 Mon Sep 17 00:00:00 2001 From: j-w9 <295470691+j-w9@users.noreply.github.com> Date: Sun, 22 Nov 2026 11:23:19 -0500 Subject: [PATCH 1/2] ThrustExpo: keep a manual MOT_THST_EXPO of 0 The manual value was tested for truthiness, so an entered 0 (linear) was refitted and overwritten. An empty box still runs the fit. --- ThrustExpo/ThrustExpo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ThrustExpo/ThrustExpo.js b/ThrustExpo/ThrustExpo.js index a989a981..95fefc8f 100644 --- a/ThrustExpo/ThrustExpo.js +++ b/ThrustExpo/ThrustExpo.js @@ -337,7 +337,7 @@ function updateThrustExpoPlot(thrustExpo = null) { } let result; - if (thrustExpo) { + if (thrustExpo !== null && !isNaN(thrustExpo)) { // don't optimize if user has provided a value result = get_corrected_thrust(thrustExpo); } else { From c51af3aeccfc02c0897faa7f32ea1a3cdce45229 Mon Sep 17 00:00:00 2001 From: j-w9 <295470691+j-w9@users.noreply.github.com> Date: Sun, 22 Nov 2026 11:23:19 -0500 Subject: [PATCH 2/2] ThrustExpo: use MOT_SPIN_MIN loaded from a parameter file A loaded MOT_SPIN_MIN was shown in the box but only the input event stored it, so the plots and the saved file kept the previous value. --- ThrustExpo/ThrustExpo.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ThrustExpo/ThrustExpo.js b/ThrustExpo/ThrustExpo.js index 95fefc8f..b2d931eb 100644 --- a/ThrustExpo/ThrustExpo.js +++ b/ThrustExpo/ThrustExpo.js @@ -94,6 +94,7 @@ function initParamInputs() { params[paramName].value = parseFloat(this.value); }); input.addEventListener("change", function (e) { + params[paramName].value = parseFloat(this.value); updatePlotData(); }); } else if (paramName === "MOT_THST_EXPO") {