use of io.openems.impl.protocol.studer.internal.object.FloatUserinfoObject in project openems by OpenEMS.
the class StuderVs70Charger method defineStuderProtocol.
/*
* Methods
*/
@Override
protected StuderProtocol defineStuderProtocol() throws ConfigException {
StuderProtocol p = new StuderProtocol();
FloatParameterObject batteryChargeCurrent = new FloatParameterObject(14217, "batteryChargeCurrent", "Adc", this);
p.addObject(batteryChargeCurrent);
batteryChargeCurrentValue = batteryChargeCurrent.value().channel();
batteryChargeCurrentUnsavedValue = batteryChargeCurrent.unsavedValue().channel();
IntParameterObject start = new IntParameterObject(14038, "start", "", this);
p.addObject(start);
setStart = start.value().channel();
IntParameterObject stop = new IntParameterObject(14039, "stop", "", this);
p.addObject(stop);
setStop = stop.value().channel();
FloatUserinfoObject vBatt = new FloatUserinfoObject(15000, "BatteryVoltage", "V", this);
p.addObject(vBatt);
@SuppressWarnings("unchecked") ReadChannel<Float> batteryVoltage = (ReadChannel<Float>) vBatt.value().channel();
this.batteryVoltage = batteryVoltage;
return p;
}
Aggregations