Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ThrustExpo/ThrustExpo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down Expand Up @@ -337,7 +338,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 {
Expand Down
Loading