| | |
| | | }
|
| | | return true;
|
| | | }
|
| | | |
| | | public double getNowCurr(int nowCurrIdx,int batt_idx) {
|
| | | double curr = 0;
|
| | | if(nowCurrIdx == batt_idx) {
|
| | | curr = chargeCurr;
|
| | | }
|
| | | return curr;
|
| | | }
|
| | | |
| | |
|
| | | public void addErrorCount() {
|
| | | this.dev_errcommcount ++;
|
| | |
| | | + chargeCurr + ", testCap=" + testCap + ", maxVolNum=" + maxVolNum + ", maxVol=" + maxVol
|
| | | + ", minVolNum=" + minVolNum + ", minVol=" + minVol + "]";
|
| | | }
|
| | |
|
| | | /**
|
| | | * 校验当前电流
|
| | | */
|
| | | public void checkTestCurr() {
|
| | | double test_curr = Math.abs(this.chargeCurr);
|
| | | if(FGCD_ComBase.WORK_STATE_STOPDIS == this.dev_workstate || |
| | | FGCD_ComBase.WORK_STATE_DISTEST == this.dev_workstate) {
|
| | | test_curr = (-1) * test_curr;
|
| | | }
|
| | | this.chargeCurr = test_curr;
|
| | | }
|
| | | }
|