public double getCurrent() { if (!ibd.isLocked()) current = afilter.getValue(ibd.getValue(ibd.ADC1) * I_CONST); return current; }
public double getVoltage() { if (!ibd.isLocked()) voltage = vfilter.getValue(ibd.getValue(ibd.ADC0) * V_CONST); return voltage; }