Sets motor currents based on input motorvalue