ENH: limit the K Factor to 0-0.3
jira: new Change-Id: Idc07f3105b38b39b5ac4c8310cca5a7dfec364e8
This commit is contained in:
parent
fa61e25c51
commit
8010f08a0e
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue