Skip to content
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

Riley Franklin's HW#3 #4

Open
wants to merge 27 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
615f1ce
Riley Franklin's HW#1
RileyFranklin Sep 3, 2019
eac27e2
Merge branch 'master' of https://github.com/jgoppert/aae497-f19
RileyFranklin Sep 9, 2019
64dcf5b
Merge branch 'master' of https://github.com/jgoppert/aae497-f19
RileyFranklin Sep 11, 2019
fe1f25c
Merge branch 'master' of https://github.com/jgoppert/aae497-f19
RileyFranklin Sep 11, 2019
e2dfe52
Merge branch 'master' of github.com:jgoppert/aae497-f19
RileyFranklin Sep 16, 2019
1d5bf9f
Merge branch 'master' of github.com:jgoppert/aae497-f19
RileyFranklin Sep 16, 2019
bffb74a
Merge branch 'master' of github.com:jgoppert/aae497-f19
RileyFranklin Sep 16, 2019
e637507
sdfa
RileyFranklin Sep 16, 2019
4c64075
Merge branch 'master' of github.com:jgoppert/aae497-f19
RileyFranklin Sep 18, 2019
c6fea5b
Merge branch 'master' of github.com:jgoppert/aae497-f19
RileyFranklin Sep 18, 2019
e264044
Merge branch 'master' of github.com:jgoppert/aae497-f19
RileyFranklin Sep 20, 2019
a37711c
Merge branch 'master' of github.com:jgoppert/aae497-f19
RileyFranklin Sep 23, 2019
abf49b0
Completed Homework #3
RileyFranklin Sep 23, 2019
2c9ef60
Merge branch 'master' of github.com:jgoppert/aae497-f19
RileyFranklin Sep 27, 2019
6a68a43
Merge branch 'master' of github.com:jgoppert/aae497-f19
RileyFranklin Sep 30, 2019
f649dbf
Merge branch 'master' of github.com:jgoppert/aae497-f19
RileyFranklin Sep 30, 2019
9ae8a92
Merge branch 'master' of github.com:jgoppert/aae497-f19
RileyFranklin Oct 4, 2019
912fcf1
Merge branch 'master' of github.com:jgoppert/aae497-f19
RileyFranklin Oct 14, 2019
4a5c7d2
Merge branch 'master' of github.com:jgoppert/aae497-f19
RileyFranklin Oct 14, 2019
325e3a2
Merge branch 'master' of github.com:jgoppert/aae497-f19
RileyFranklin Oct 16, 2019
05e6b2d
Merge branch 'master' of github.com:jgoppert/aae497-f19
RileyFranklin Oct 16, 2019
6285f8c
Merge branch 'master' of github.com:jgoppert/aae497-f19
RileyFranklin Oct 18, 2019
7f03862
Merge branch 'master' of github.com:jgoppert/aae497-f19
RileyFranklin Oct 31, 2019
712e317
finished hw 7
RileyFranklin Nov 1, 2019
d729370
Merge branch 'master' of github.com:jgoppert/aae497-f19
RileyFranklin Nov 11, 2019
abd3654
Removed PX4.
RileyFranklin Nov 11, 2019
b9254ff
Remove casadi.
RileyFranklin Nov 11, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 0 additions & 58 deletions homework/1-F16-Pitch.ipynb

This file was deleted.

111 changes: 111 additions & 0 deletions homework/CASADIHW.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 18,
"metadata": {},
"outputs": [],
"source": [
"import casadi as ca\n",
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"import casadi.tools.graph as\n",
"%matplotlib inline"
]
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {},
"outputs": [],
"source": [
"S = 2170\n",
"CBAR = 17.5\n",
"MASS = 5000\n",
"IYY = 4.1 * 10 **6\n",
"TSTAT = 60000\n",
"DTDV = -38\n",
"ZE = 2.0\n",
"CDCLS = .042\n",
"CLA = .085\n",
"CMA = -.022\n",
"CMDE = -.016\n",
"\n",
"CMQ = -16\n",
"CMADOT = -6\n",
"CLADOT = 0\n",
"RTOD = 57.29578\n",
"GD = 32.17\n",
"u = ca.SX.sym('u',4)\n",
"THTL = u[0]\n",
"ELEV = u[1]\n",
"XCG = u[2]\n",
"LAND = [3]\n",
"x = ca.SX.sym('x',5)\n",
"VT = x[0]\n",
"ALPHA = RTOD * x[1]\n",
"THETA = x[2]\n",
"Q = x[3]\n",
"H = x[4]\n"
]
},
{
"cell_type": "code",
"execution_count": 28,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Landing Gear and Flaps?\n"
]
}
],
"source": [
"#[MACH,QBAR] = ADC(VT,H)\n",
"#QS = QBAR *S;\n",
"SALP = ca.sin(x[2]); CALP = ca.cos(x[2])\n",
"GAM =THETA - x[2]; SGAM = ca.sin(GAM); CGAM =ca.cos(GAM);\n",
"if (LAND == 0):\n",
" CLO = .2;CDO=.016; \n",
"elif(LAND ==1):\n",
" \n",
" CLO = 1; CDO = .08\n",
" CMO = -.2; DCDG = .02; DCMG = -.05;\n",
"else:\n",
" print('Landing Gear and Flaps?')\n",
"\n",
"THR = "
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.3"
}
},
"nbformat": 4,
"nbformat_minor": 4
}
531 changes: 531 additions & 0 deletions homework/Hw1.ipynb

Large diffs are not rendered by default.

561 changes: 561 additions & 0 deletions homework/Riley HW#3.ipynb

Large diffs are not rendered by default.

111 changes: 111 additions & 0 deletions homework/Untitled.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 18,
"metadata": {},
"outputs": [],
"source": [
"import casadi as ca\n",
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"import casadi.tools.graph as\n",
"%matplotlib inline"
]
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {},
"outputs": [],
"source": [
"S = 2170\n",
"CBAR = 17.5\n",
"MASS = 5000\n",
"IYY = 4.1 * 10 **6\n",
"TSTAT = 60000\n",
"DTDV = -38\n",
"ZE = 2.0\n",
"CDCLS = .042\n",
"CLA = .085\n",
"CMA = -.022\n",
"CMDE = -.016\n",
"\n",
"CMQ = -16\n",
"CMADOT = -6\n",
"CLADOT = 0\n",
"RTOD = 57.29578\n",
"GD = 32.17\n",
"u = ca.SX.sym('u',4)\n",
"THTL = u[0]\n",
"ELEV = u[1]\n",
"XCG = u[2]\n",
"LAND = [3]\n",
"x = ca.SX.sym('x',5)\n",
"VT = x[0]\n",
"ALPHA = RTOD * x[1]\n",
"THETA = x[2]\n",
"Q = x[3]\n",
"H = x[4]\n"
]
},
{
"cell_type": "code",
"execution_count": 28,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Landing Gear and Flaps?\n"
]
}
],
"source": [
"#[MACH,QBAR] = ADC(VT,H)\n",
"#QS = QBAR *S;\n",
"SALP = ca.sin(x[2]); CALP = ca.cos(x[2])\n",
"GAM =THETA - x[2]; SGAM = ca.sin(GAM); CGAM =ca.cos(GAM);\n",
"if (LAND == 0):\n",
" CLO = .2;CDO=.016; \n",
"elif(LAND ==1):\n",
" \n",
" CLO = 1; CDO = .08\n",
" CMO = -.2; DCDG = .02; DCMG = -.05;\n",
"else:\n",
" print('Landing Gear and Flaps?')\n",
"\n",
"THR = "
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.3"
}
},
"nbformat": 4,
"nbformat_minor": 4
}
75 changes: 75 additions & 0 deletions homework/Untitled1.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"import casadi as ca\n",
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"import control\n",
"#matplotlib inline"
]
},
{
"cell_type": "code",
"execution_count": 11,
"metadata": {},
"outputs": [],
"source": [
"df = ca.SX.sym('df')\n",
"v = ca.SX.sym('v')\n",
"cl0 = 0.0\n",
"\n",
"cla = 2 * np.pi \n",
"rho = 1.225\n",
"q = rho * .5 * v**2\n",
"kclcd =.01\n",
"cd0 = 0.0\n",
"sf = .1\n",
"lf =1\n",
"CL = cl0 + cla * df\n",
"CD = cd0 +kclcd *CL**2\n",
"CDb = .01\n",
"Lf = CD * q *sf\n",
"Df = CDb\n",
"sb = np.pi**2\n",
"Db = CDb * q * sb\n",
"\n",
"m_aero = lf *Lf"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"U"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.3"
}
},
"nbformat": 4,
"nbformat_minor": 4
}
1 change: 1 addition & 0 deletions homework/blue-eyes-white-dragon
Submodule blue-eyes-white-dragon added at 05f7ad
Loading