Text this: Nonlinear model predictive control of underactuated mechatronic systems