|
@ -65,10 +65,10 @@ void Page_muSettings::updatePage() { |
|
|
UIS->setTxt(PAGE, ob_muSettings_irun1, zitoa(getMxIRun(1))); |
|
|
UIS->setTxt(PAGE, ob_muSettings_irun1, zitoa(getMxIRun(1))); |
|
|
UIS->setTxt(PAGE, ob_muSettings_irun2, zitoa(getMxIRun(2))); |
|
|
UIS->setTxt(PAGE, ob_muSettings_irun2, zitoa(getMxIRun(2))); |
|
|
UIS->setTxt(PAGE, ob_muSettings_irun3, zitoa(getMxIRun(3))); |
|
|
UIS->setTxt(PAGE, ob_muSettings_irun3, zitoa(getMxIRun(3))); |
|
|
UIS->setTxt(PAGE, ob_muSettings_pumpCoef0, zfmt("%.1f", getMotorMLPR(0))); |
|
|
|
|
|
UIS->setTxt(PAGE, ob_muSettings_pumpCoef1, zfmt("%.1f", getMotorMLPR(1))); |
|
|
|
|
|
UIS->setTxt(PAGE, ob_muSettings_pumpCoef2, zfmt("%.1f", getMotorMLPR(2))); |
|
|
|
|
|
UIS->setTxt(PAGE, ob_muSettings_pumpCoef3, zfmt("%.1f", getMotorMLPR(3))); |
|
|
|
|
|
|
|
|
UIS->setTxt(PAGE, ob_muSettings_pumpCoef0, zfmt("%.4f", getMotorMLPR(0))); |
|
|
|
|
|
UIS->setTxt(PAGE, ob_muSettings_pumpCoef1, zfmt("%.4f", getMotorMLPR(1))); |
|
|
|
|
|
UIS->setTxt(PAGE, ob_muSettings_pumpCoef2, zfmt("%.4f", getMotorMLPR(2))); |
|
|
|
|
|
UIS->setTxt(PAGE, ob_muSettings_pumpCoef3, zfmt("%.4f", getMotorMLPR(3))); |
|
|
UIS->setTxt(PAGE, ob_muSettings_pipeLen0, getCfgStr(kcfg_pipeLengthML)); |
|
|
UIS->setTxt(PAGE, ob_muSettings_pipeLen0, getCfgStr(kcfg_pipeLengthML)); |
|
|
// TODO:改成4个输入框
|
|
|
// TODO:改成4个输入框
|
|
|
UIS->setTxt(PAGE, ob_muSettings_addAcidVel0, zitoa(getMxRunRPM(0))); |
|
|
UIS->setTxt(PAGE, ob_muSettings_addAcidVel0, zitoa(getMxRunRPM(0))); |
|
@ -122,16 +122,16 @@ void Page_muSettings::OnInputFieldContentChange(uint8_t bid, const char* text) { |
|
|
|
|
|
|
|
|
if (bid == ob_muSettings_pumpCoef0) { |
|
|
if (bid == ob_muSettings_pumpCoef0) { |
|
|
setMotorMLPR(0, atof(text)); |
|
|
setMotorMLPR(0, atof(text)); |
|
|
UIS->setTxt(bid, zfmt("%.1f", getMotorMLPR(0))); |
|
|
|
|
|
|
|
|
UIS->setTxt(bid, zfmt("%.4f", getMotorMLPR(0))); |
|
|
} else if (bid == ob_muSettings_pumpCoef1) { |
|
|
} else if (bid == ob_muSettings_pumpCoef1) { |
|
|
setMotorMLPR(1, atof(text)); |
|
|
setMotorMLPR(1, atof(text)); |
|
|
UIS->setTxt(bid, zfmt("%.1f", getMotorMLPR(1))); |
|
|
|
|
|
|
|
|
UIS->setTxt(bid, zfmt("%.4f", getMotorMLPR(1))); |
|
|
} else if (bid == ob_muSettings_pumpCoef2) { |
|
|
} else if (bid == ob_muSettings_pumpCoef2) { |
|
|
setMotorMLPR(2, atof(text)); |
|
|
setMotorMLPR(2, atof(text)); |
|
|
UIS->setTxt(bid, zfmt("%.1f", getMotorMLPR(2))); |
|
|
|
|
|
|
|
|
UIS->setTxt(bid, zfmt("%.4f", getMotorMLPR(2))); |
|
|
} else if (bid == ob_muSettings_pumpCoef3) { |
|
|
} else if (bid == ob_muSettings_pumpCoef3) { |
|
|
setMotorMLPR(3, atof(text)); |
|
|
setMotorMLPR(3, atof(text)); |
|
|
UIS->setTxt(bid, zfmt("%.1f", getMotorMLPR(3))); |
|
|
|
|
|
|
|
|
UIS->setTxt(bid, zfmt("%.4f", getMotorMLPR(3))); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/***********************************************************************************************************************
|
|
|
/***********************************************************************************************************************
|
|
@ -161,18 +161,16 @@ void Page_muSettings::OnInputFieldContentChange(uint8_t bid, const char* text) { |
|
|
UIS->alert("转速不能大于1000"); |
|
|
UIS->alert("转速不能大于1000"); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
switch(bid) |
|
|
|
|
|
{ |
|
|
|
|
|
case ob_muSettings_addAcidVel0:setMxRunRPM(0, rpm);break; |
|
|
|
|
|
case ob_muSettings_addAcidVel1:setMxRunRPM(1, rpm);break; |
|
|
|
|
|
case ob_muSettings_addAcidVel2:setMxRunRPM(2, rpm);break; |
|
|
|
|
|
case ob_muSettings_addAcidVel3:setMxRunRPM(3, rpm);break; |
|
|
} |
|
|
} |
|
|
|
|
|
UIS->setTxt(bid, zitoa(rpm)); |
|
|
|
|
|
|
|
|
if (bid == ob_muSettings_addAcidVel0 || |
|
|
|
|
|
bid == ob_muSettings_addAcidVel1 || |
|
|
|
|
|
bid == ob_muSettings_addAcidVel2 || |
|
|
|
|
|
bid == ob_muSettings_addAcidVel3) { |
|
|
|
|
|
int rpm = atoi(text); |
|
|
|
|
|
setMxRunRPM(0, rpm); |
|
|
|
|
|
setMxRunRPM(1, rpm); |
|
|
|
|
|
setMxRunRPM(2, rpm); |
|
|
|
|
|
setMxRunRPM(3, rpm); |
|
|
|
|
|
UIS->setTxt(bid, zitoa(rpm)); |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
updatePage(); |
|
|
updatePage(); |
|
|