From aa87487b2a1504729464ef9a02436ab03a5b9345 Mon Sep 17 00:00:00 2001 From: fetty Date: Tue, 16 Jan 2024 17:39:50 +0100 Subject: [PATCH] README updated --- README.md | 39 ++++++++++++++++++++++++++++++++++----- 1 file changed, 34 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index bd08596..f6cb9de 100644 --- a/README.md +++ b/README.md @@ -17,12 +17,15 @@
  • Tuning
  • +
  • + Results +
  • Here you can find the main Autonomous Systems controller for CAT15x, the [BCN eMotorsport](https://bcnemotorsport.upc.edu) 2022-23 car. Within this repo you will find 3 different MPC controllers: time-variant, spatial-variant and lateral (also time-variant). The one used for the 2022-2023 season is the lateral approach, leaving the others for a future implementation as they demand much more testing time, which we don't ever have :( -If you want to see the performance of this controller watch [this trackdrive](https://youtu.be/mk9U0lRWr-0?si=S0-yVm7wfKk2jvPq). +If you want to see the performance of this controller watch [THIS TRACKDRIVE](https://youtu.be/mk9U0lRWr-0?si=S0-yVm7wfKk2jvPq).
    Logo @@ -30,12 +33,12 @@ If you want to see the performance of this controller watch [this trackdrive](ht

    -This software is shared as part of my [Final Degree Thesis](docs/tfg.pdf). The controller actually used for competing during the 2022-2023 Formula Student season has been the `lateral` approach, so it's the one explained in the thesis (and the one that is driving the car in the video mentioned above). +This software is shared as part of my [Final Degree Thesis](docs/tfg_oriolmartinez.pdf). The controller actually used for competing during the 2022-2023 Formula Student season has been the `lateral` approach, so it's the one explained in the thesis (and the one that is driving the car in the [trackdrive video](https://youtu.be/mk9U0lRWr-0?si=S0-yVm7wfKk2jvPq)). Both other architectures were left apart due to the added tuning complexity of coupled NMPCs. However, the `master` approach is ready to drive :). The `spatial` approach is the one I found the most difficult to tune so it's not really fine tuned at the moment. ## Disclaimer -This is a tailored control solution made for the CAT15x Formula Student vehicle. In order to make a proper use of this algorithm, it's the user duty to make sure the dynamic model (presented [here](docs/tfg.pdf)) actually approximates the behaviour of the car. +This is a tailored control solution made for the CAT15x Formula Student vehicle. In order to make a proper use of this algorithm, it's the user duty to make sure the dynamic model (presented [here](docs/tfg_oriolmartinez.pdf)) actually approximates the behaviour of the car. If you use this control algorithm in a Formula Student competition the **only** thing I ask for is to **ALWAYS REFERENCE** the team ___BCN eMotorsport___. @@ -48,7 +51,7 @@ If you use this control algorithm in a Formula Student competition the **only** ## Approach -For specific information on how the lateral controller work read [Tailored MPC](docs/tfg.pdf)'s paper. +For specific information on how the lateral controller work read [Tailored MPC](docs/tfg_oriolmartinez.pdf)'s paper. For the sake of simplicity the different controllers are named after their more important characteristic. However, all the specified MPC controllers are curvature-based and follow a simplified non linear bicycle model. @@ -100,4 +103,30 @@ In order to solve the Non Linear Optimization Problem (NLOP) defined with the [s * __Progress Prediction__: finally, a progress (s) prediction should be computed using the NLOP solution in order to use this information when setting the curvature values for the next solver call (next iteration). _Basically, knowing the progress for each predicted state we can look for the closest planner points for each state and pick their curvature values for the next iteration. This heuristic procedure tends to help the NLOP convergence._ ## Tuning -_Future explanation of all parameters_ \ No newline at end of file +Explanation of all parameters from the lateral branch: + +| Parameter | Summary | Value [SI] | +| -------------- | --------------------------------- | ----------- | +| Qs | Progress rate weight | 10.0 | +| Qn | Normal distance weight | 550.0 | +| Qmu | Heading (track reference) weight | 0.1 | +| Qslip | Slip difference weight | 2.0 | +| Qslack | Track constraint slack weight | 1000.0 | +| Rd | Steering rate weight | 100.0 | +| RMtv | Additional moment weight | 1.0 | +| Bf | Pacejka Constant | 10.5507 | +| Br | Pacejka Constant | 10.5507 | +| Cf | Pacejka Constant | -1.2705 | +| Cr | Pacejka Constant | -1.2705 | +| Df | Pacejka Constant | 2208.0635 | +| Dr | Pacejka Constant | 2563.599 | +| Lf | Distance from CoG to front axis | 0.708 | +| Lr | Distance from CoG to rear axis | 0.822 | +| L | Total car's length | 2.72 | +| W | Total car's width | 1.5 | +| m | Car's mass | 210.0 | +| Iz | Inertial moment around z axis | 180.0 | + + +## Results +The technical performance of the controller is discussed [here](docs/tfg_oriolmartinez.pdf). \ No newline at end of file