diff --git a/docs/src/define_controller.md b/docs/src/define_controller.md index f8fc36239..554df8830 100644 --- a/docs/src/define_controller.md +++ b/docs/src/define_controller.md @@ -33,7 +33,7 @@ function controller!(mechanism, t) x = get_minimal_state(mechanism) ## Gains - K = [5.0 0.5] * 0.1 + K = [75.0 0.5] * 0.1 # Control inputs u = -K * (x - x_goal) @@ -50,7 +50,7 @@ initialize!(mechanism, :pendulum, We simulate the system for 2 seconds using the `controller!`. ```julia -storage = simulate!(mechanism, 2.0, controller!, +storage = simulate!(mechanism, 20.0, controller!, record=true, verbose=true); ```