mirror of
https://github.com/ROB-535-F21-Team-3/Control-Project.git
synced 2025-08-24 03:02:45 +00:00
Bunch of new properties, remove unnecessary function arguments
- Add properties for prediction horizon of states & inputs - Add properties for obstacles, current state, reference index, and termination flag - Update constructor to take in and set new properties - Move properties with calculated values to constructor - Remove function inputs for new properties - Rename `curr_state` to `Y_curr` in `MPC_Class.m` - Use object properties instead of function arguments (e.g., obj.ref_idx)
This commit is contained in:
@@ -38,6 +38,6 @@ 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);
|
||||
obj = MPC_Class(TestTrack, Xobs_seen, curr_state, Y_ref, U_ref);
|
||||
[Utemp, FLAG_terminate] = obj.compute_inputs();
|
||||
end
|
||||
|
Reference in New Issue
Block a user