Now motor_set_max_current() works - it outputs the correct voltage on DAC.