Motor variable determination based on the ON-resistance of a power switch