setVoltage

fun setVoltage(voltage: Voltage)

Set voltage control mode and voltage setpoint.

Adjusts power to maintain the specified voltage, accounting for the current input rail voltage (to remain relatively hardware-independent).

Parameters

voltage

Target voltage setpoint.