ENH: limit the K Factor to 0-0.3

jira: new

Change-Id: Idc07f3105b38b39b5ac4c8310cca5a7dfec364e8
This commit is contained in:
liz.li 2023-10-18 10:36:27 +08:00 committed by Lane.Wei
parent fa61e25c51
commit 8010f08a0e
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ wxDEFINE_EVENT(EVT_CALIBRATION_JOB_FINISHED, wxCommandEvent);
static const wxString NA_STR = _L("N/A");
static const float MIN_PA_K_VALUE = 0.0;
static const float MAX_PA_K_VALUE = 0.5;
static const float MAX_PA_K_VALUE = 0.3;
static const float MIN_PA_K_VALUE_STEP = 0.001;
bool check_preset_name_valid(const wxString& name) {

View File

@ -100,7 +100,7 @@ bool CalibUtils::validate_input_k_value(wxString k_text, float* output_value)
;
}
if (k_value < 0 || k_value > 0.5) {
if (k_value < 0 || k_value > 0.3) {
*output_value = default_k;
return false;
}