Commit Graph

24 Commits

Author SHA1 Message Date
Sravan Balaji
6416cc762b Reference Trajectory States & Global Variable Clean-Up
- Add generated states from part 1 as variable
  `ROB535_ControlProject_part1_state` to
  `ROB535_ControlProject_part1_Team3.mat`
- Make step size and prediction horizon global variables
- Remove references to unused global variables
- Fix reference trajectory indexing with "i" based
  on `ROB535_ControlProject_part1_state` variable
- Replace `dt` with `T_s` in `linearized_bike_model`
2021-12-09 14:27:38 -05:00
Sravan Balaji
3e873fc597 Simulation Parameters & File Loading
- Rename `xenia_sravan_nonlinearopt.m` to `part2_MPC_controller.m`
- Add commands to close figures, clear workspace, and clear terminal
- Load track information & reference trajectory
- Add simulation parameters (step size & prediction horizon)
2021-12-09 14:18:53 -05:00
Sravan Balaji
28ad7d9d21 Clean-Up & Compute Linearized Model
- Delete nonlinear optimization functions
- Move intermediate kinematic model computations to
  `bike_model_helper` function
- Compute discrete-time linearized model in `linearized_bike_model`
  function
2021-12-09 14:05:43 -05:00
Sravan Balaji
79711d6e7a Start Implementing MPC based on Xenia's work
- Copy `xenia_nonlinearopt.m` to `xenia_sravan_nonlinearopt.m`
- Clean up nonlinear bike model: add comments, whitespace,
  intermediate variables, etc.
- Add helper function `clamp` to clamp a value between min
  and max limits
2021-12-09 13:02:37 -05:00
Sravan Balaji
c3c9546342 Incorporate xenia-nonlinear branch changes
- Copy-paste `xenia_nonlinearopt.m` from xenia-nonlinear branch
2021-12-09 12:58:51 -05:00
Sravan Balaji
f7b9eb687c Extend end of part 1 trajectory so car crosses finish line
- Increase the number of steps in last sector so the
  car actually crosses the finish line and registers
  a "t_finished" in the getTrajectoryInfo output
2021-12-08 11:26:43 -05:00
Sravan Balaji
4ea4a830de Add Project Document w/ Updated Due Date 2021-12-08 11:19:42 -05:00
Sravan Balaji
b036087001 Add Gitignore & Garbage Submission for Part 2
- Add gitignore for matlab's "asv" files
- Provide garbage inputs for qualifying session submission of part 2
2021-11-30 15:45:46 -05:00
Sravan Balaji
33945f6414 Re-Organize Files Again
- Deliverables folder holds final files for submission
- Experimentation holds scripts and things related to our development of
  a final solution
- Simulation holds the provided files
- Added template for part 2 submission with comments
2021-11-30 11:17:24 -05:00
Sravan Balaji
b0ad7defd3 Move Files out of "SimPkg_F21(student_ver)" folder 2021-11-30 10:46:06 -05:00
xdemenchuk
2de1b54ba9 typo.... not sure how this didn't come up earlier but ok 2021-11-29 18:18:41 -05:00
xdemenchuk
3a954497dc nonlinear trajectory based on sravan segments 2021-11-29 18:00:10 -05:00
xdemenchuk
21434cb4de iteration attempt 2021-11-29 14:09:19 -05:00
xdemenchuk
3637368bfb typo. 2021-11-28 18:56:57 -05:00
xdemenchuk
cc4d3a4ea2 change to phi bounds 2021-11-28 18:53:09 -05:00
xdemenchuk
81363e8e2a commiting 2021-11-28 18:35:59 -05:00
ppongsa
eed2424543 Add files via upload
Added calculation for dg for "nonlcon" function; Added diff_g function to calculate dg_dz
2021-11-28 12:24:44 -05:00
ppongsa
1a20a1f4a3 Add files via upload
*Ignore the stuff that runs* Added "bounds" function to generate lower and upper bound; Added "nonlcon" function  that generates g vector
2021-11-27 21:22:09 -05:00
Sravan Balaji
420dc67a26 Plot Trajectory of Submission Inputs
- Load the mat file with part 1 deliverable inputs
- Plot second figure with final submission trajectory
2021-11-26 15:48:04 -05:00
Sravan Balaji
6cde3df187 Save part 1 deliverable
- Rename `sravan_part_1.m` to `part1_generate_trajectory.m`
- Save inputs to variable called `ROB535_ControlProject_part1_input`
- Save variable to `ROB535_ControlProject_part1_Team3.mat`
2021-11-26 15:32:29 -05:00
Sravan Balaji
a1aa4e87f0 Generate Valid Trajectory to Complete Track
- Update input values
- Generate full set of inputs and simulate entire trajectory
2021-11-26 15:27:09 -05:00
Sravan Balaji
a37a1d62d3 Working on Generating Trajectory Manually
- Move provided files out of "SimPkg_F21(student_ver)" folder
- Add `sravan_part_1.m` that generates segments of trajectory
- Currently at 57.34% track completion
2021-11-26 14:42:21 -05:00
Sravan Balaji
15263a552e Model Parameters
- Add sravan_part_1.m with vehicle parameters and initial conditions
2021-11-24 09:09:32 -05:00
Sravan Balaji
0d1791887a Initial Commit
- Add provided template code for control project
- Add control project documentation pdf
2021-11-08 17:01:23 -05:00