[mpcc-49] C++ MPCC interface bugs fixed, interface was changed to absolute values of throttle and brakes#97
Open
KarasevPavel wants to merge 24 commits intodevelopfrom
Open
[mpcc-49] C++ MPCC interface bugs fixed, interface was changed to absolute values of throttle and brakes#97KarasevPavel wants to merge 24 commits intodevelopfrom
KarasevPavel wants to merge 24 commits intodevelopfrom
Conversation
…MPCC into dev/pkarasev/MPCC-49
… torques ob brakes and engine are used now as input values
mak22223
reviewed
Oct 9, 2024
mak22223
left a comment
There was a problem hiding this comment.
Hard to check maths of the model and all these parameters. Eventually we should add tests.
…d to 4 params from 11
mak22223
previously approved these changes
Oct 6, 2025
Comment on lines
-30
to
34
| "lowerInputBounds":{ | ||
| "dThrottleL": -1.0, | ||
| "dThrottleL": -240.0, | ||
| "dSteeringAngleL": -1.0, | ||
| "dBrakesL": -1.0, | ||
| "dBrakesL": -1862.0, | ||
| "dVsL": -5.0 |
There was a problem hiding this comment.
That means that we potentially can have negative motor and brake torques?
Author
There was a problem hiding this comment.
It is maximum negative rate of change
C++/CMakeLists.txt
Outdated
|
|
||
| set(CMAKE_CXX_STANDARD 14) | ||
| set(CMAKE_CXX_STANDARD 17) | ||
| set(CMAKE_CXX_FLAGS "-O0 -g") |
C++/src/MPC/mpc.cpp
Outdated
Comment on lines
31
to
34
| nSqp = n_sqp; | ||
| sqpMixing = sqp_mixing; | ||
| nNoSolvesSqp = 0; | ||
| nReset = n_reset; |
There was a problem hiding this comment.
These can be included in initialization list
C++/src/MPC/mpc.cpp
Outdated
| State x = x0; | ||
| auto t1 = std::chrono::high_resolution_clock::now(); | ||
| int solver_status = -1; | ||
| x(sIdx) = track_.porjectOnSpline(x); |
Comment on lines
137
to
140
| if (validInitialGuess) | ||
| updateInitialGuess(x); | ||
| else | ||
| generateNewInitialGuess(x); |
Comment on lines
170
to
171
| if (nNoSolvesSqpMax < nSqp) | ||
| initialGuess = tempGuess; |
C++/src/Models/models.cpp
Outdated
Comment on lines
95
to
97
|
|
||
|
|
||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.