-
Notifications
You must be signed in to change notification settings - Fork 439
Improved the Vertical takeoff and landing aircraft notebook #390
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
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
Also replaced hardcoded image with latex code.
Notebook used to say "Since the python-control package only supports SISO systems, in order to compute the closed loop dynamics, we must extract the dynamics for the lateral and altitude dynamics as individual systems." This is not true anymore. So I simplified the code. Also added explanations as to what the code is doing and fixed some typos.
bnavigator
reviewed
May 17, 2020
examples/pvtol-lqr-nested.ipynb
Outdated
Comment on lines
75
to
79
{ | ||
"cell_type": "code", | ||
"execution_count": 2, | ||
"metadata": {}, | ||
"outputs": [ | ||
{ | ||
"name": "stdout", | ||
"output_type": "stream", | ||
"text": [ | ||
"m = 4.000000\n", | ||
"J = 0.047500\n", | ||
"r = 0.250000\n", | ||
"g = 9.800000\n", | ||
"c = 0.050000\n" | ||
] | ||
} | ||
], | ||
"execution_count": null, | ||
"metadata": {}, | ||
"outputs": [], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should xecute the notebook, so that the checked in version can be viewed completely on github.
Compare
https://github.com/python-control/python-control/blob/master/examples/pvtol-lqr-nested.ipynb
to
I sent a PR with the requested fixes. |
add plots + remove some unneeded outputs
repagh
pushed a commit
to repagh/python-control
that referenced
this pull request
Jun 9, 2020
…ontrol#390) * Fixed typo in PVTOL notebook (forgot to divide by m). Also replaced hardcoded image with latex code. * Removed a lot of the unnecessary decoupling code. Notebook used to say "Since the python-control package only supports SISO systems, in order to compute the closed loop dynamics, we must extract the dynamics for the lateral and altitude dynamics as individual systems." This is not true anymore. So I simplified the code. Also added explanations as to what the code is doing and fixed some typos.
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.
The PVTOL notebook contained some typos and mistakes.
I only changed the first part ("System Description" and "LQR state feedback controller" sections. Didn't touch the "Lateral control using inner/outer loop design" section).
I changed some of the hardcoded images to latex code instead.
I cleaned up the code (some of which was unnecessary and confusing) and added more explanations where I deemed necessary.
Everything is working on my machine, but let me know if I introduced some bugs (for example I noticed I changed the kernel python version in my first commit), or if you are unhappy with some of the changes I made.