Nonlinear adaptive inverse control