Fixed error in motor voltage computation.