Inverted Pendulum Control
Linear Quadratic Regulator (LQR) on Cart-Pole System
📖 Read the Beginner's Guide
Physical Parameters
Cart Mass \( M \) (kg)
Pendulum Mass \( m \) (kg)
Pendulum Length \( l \) (m)
LQR Tuning
State Cost \( Q_{pos} \) (x)
State Cost \( Q_{angle} \) (θ)
Control Cost \( R \)
Initial Angle (deg)
Re-Calculate LQR & Reset
Computed Feedback Gains
\( u = -K \mathbf{x} \) where \( \mathbf{x} = [x, \dot{x}, \theta, \dot{\theta}]^T \)
\( K_x \):
-
\( K_{\dot{x}} \):
-
\( K_\theta \):
-
\( K_{\dot{\theta}} \):
-
Real-Time Simulation
0°
Angle
0m
Position
0N
Force
0s
Time
Add Disturbance (+5N impulse)