An impedance simulating motion controller for orthotic and prosthetic devices includes an equilibrium trajectory generator that receives locomotion data regarding the locomotion of a user, a dynamic trajectory compensator that generates one or more control parameters based on the locomotion data and one or more physiological characteristics of the user, and a dynamic gain tuner that adjusts the one or more control parameters based on a gain scaling factor that is calculated using a measured deflection point and an expected deflection point. The adjusted control parameters are used to control movement of an actuator of an orthotic or prosthetic device.