mirror of
https://github.com/ROB-535-F21-Team-3/Control-Project.git
synced 2025-08-24 11:12:44 +00:00
Update part2 function to use MPC_Class
- Update part2 deliverable function to use `MPC_Class` - Clean-up some comments in `MPC_Class` - Add MPC tunable parameters to `MPC_Class` - Add TODO comments
This commit is contained in:
@@ -34,8 +34,10 @@ function [Utemp, FLAG_terminate] = ROB535_ControlProject_part2_Team3(TestTrack,X
|
||||
%
|
||||
% Written by: Sravan Balaji, Xenia Demenchuk, and Peter Pongsachai
|
||||
% Created: 30 Nov 2021
|
||||
Utemp = NaN(51,2);
|
||||
Utemp(:,1) = 0 .* ones(51,1); % delta
|
||||
Utemp(:,2) = 5000 .* ones(51,1); % F_x
|
||||
FLAG_terminate = rand(1,1) > 0.9;
|
||||
end
|
||||
load('ROB535_ControlProject_part1_Team3.mat');
|
||||
Y_ref = ROB535_ControlProject_part1_state;
|
||||
U_ref = ROB535_ControlProject_part1_input;
|
||||
|
||||
obj = MPC_Class(TestTrack, Y_ref, U_ref);
|
||||
[Utemp, FLAG_terminate] = obj.compute_inputs(Xobs_seen, curr_state);
|
||||
end
|
||||
|
Reference in New Issue
Block a user