Introduce setCurrentLevel, getCurrentLevel and measureCurrent (and similar for voltage).
Loading
Addresses issue #20 (closed).
Changes the set/get functions the the following:
IPowerSupply::setVoltageLevel
: set voltage level (used to be setVoltage
)IPowerSupply::getVoltageLevel
: get currently set voltage levelIPowerSupply::measureVoltage
: measure the actual output voltage (used to be getVoltage
)In addition, the code is refactored such that:
The powersupply
command now has the following commands:
set-voltage V [I]
: Set voltage V [V] with maximum current I [A] (same as before)get-voltage
: Get set voltage level [V] (new, reuse a previous command name)meas-voltage
: Get reading of voltage [V] (new, used to be get-voltage
)