Partitioned control trajectory following (stable, linear system, perfect model)
Differential equation
Define simple second-order differential equation with input
Display differential equation
Numeric system values
Numerical model values
Controller specification
Controller type
Controller frequency (Hz)
Simulation parameters
Total simulation time
Desired trajectory (cubic interpolation)
Create desired trajectory as interpolation function
Control simulation #1 (small gains)
Control gain vectors
Control simulation
Visualization of results #1
Join trajectories
Error plot
Applied torques
Control simulation #2 (larger gains)
Control gain vectors
Control simulation
Visualization of results #2
Join trajectories
Error plot
Applied torques
Compare the two simulations
Created by Mathematica (November 12, 2003)