From 7b32ec88fdd7aea0ca0bc6c54b84b4f672369c15 Mon Sep 17 00:00:00 2001 From: franckgaga Date: Wed, 10 Jun 2026 08:34:32 -0400 Subject: [PATCH 1/2] doc: minor corrections --- docs/src/manual/linmpc.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/manual/linmpc.md b/docs/src/manual/linmpc.md index e4deb10dc..fcecf2a76 100644 --- a/docs/src/manual/linmpc.md +++ b/docs/src/manual/linmpc.md @@ -349,7 +349,7 @@ The closed-loop simulation matches the results of the previous section, as expec can now generate the C code using: ```julia -LinearMPC.codegen(c_mpc_d; dir="codegen", fname="mpc_funcs") +LinearMPC.codegen(c_mpc_d; dir="codegen", fname="mpc_funcs"); ``` The three C functions to call at each control period are declared in the generated @@ -383,7 +383,7 @@ int main(){ } ``` -compile with using `gcc *.c -o main.bin` and run it with `./main.bin`. The printed `u` value +compile it using `gcc *.c -o main.bin` and run it with `./main.bin`. The printed `u` value should be identical to: ```@example 1 From 8e649880cfcd209ea29a65551db9171f4fa7d5f8 Mon Sep 17 00:00:00 2001 From: franckgaga Date: Wed, 10 Jun 2026 09:12:37 -0400 Subject: [PATCH 2/2] doc: idem --- docs/src/manual/linmpc.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/manual/linmpc.md b/docs/src/manual/linmpc.md index fcecf2a76..9a1a1c109 100644 --- a/docs/src/manual/linmpc.md +++ b/docs/src/manual/linmpc.md @@ -348,8 +348,8 @@ savefig("plot5_LinMPC.svg"); nothing # hide The closed-loop simulation matches the results of the previous section, as expected. We can now generate the C code using: -```julia -LinearMPC.codegen(c_mpc_d; dir="codegen", fname="mpc_funcs"); +```@example 1 +LinearMPC.codegen(c_mpc_d; dir="codegen", fname="mpc_funcs") ``` The three C functions to call at each control period are declared in the generated