Estimation or adaptation of motor parameters