Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions matlab/acc2021/test.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
run_mpc_cbf_one = true;
display_mpc_cbf_one = true;
run_mpc_cbf_multiple = true;
run_mpc_cbf_multiple = true;
display_mpc_cbf_multiple = true;
run_mpc_dc = true;
display_mpc_dc = true;

Expand Down Expand Up @@ -151,15 +151,15 @@

%% Simulate MPC-CBF with other N
params_mpc_cbf.N = 8;
if run_mpc_cbf_one
if run_mpc_cbf_multiple
fprintf('Run MPC-CBF\n');
controller_mpc_cbf_multiple = MPCCBF(x0, system, params_mpc_cbf);
controller_mpc_cbf_multiple.obs = obs;
controller_mpc_cbf_multiple.sim(time_total);
end

%% Display MPC-CBF simulation with other N
if display_mpc_cbf_one
if display_mpc_cbf_multiple
% Plot simulation
figure('Renderer', 'painters', 'Position', [0 0 400 400]);
set(gca,'LooseInset',get(gca,'TightInset'));
Expand Down