Skip to content

Commit f5f2e8f

Browse files
committed
fix merging
Signed-off-by: wsribunm <worawissribunma@gmail.com>
2 parents b1e35a6 + f8b9214 commit f5f2e8f

File tree

4 files changed

+118
-217
lines changed

4 files changed

+118
-217
lines changed

cyecca/models/fixedwing.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ def derive_model(coeff_data):
3232
Jy = ca.SX.sym("Jy") # Moment of Inertia in y direction
3333
Jz = ca.SX.sym("Jz") # Moment of Inertia in z direction
3434
J = ca.diag(ca.vertcat(Jx, Jy, Jz)) # Moment of Inertia Array
35+
Cm_p = ca.SX.sym("Cm_p") # moment coefficient for roll
36+
Cm_q = ca.SX.sym("Cm_q") # moment coefficient for pitch
37+
Cm_r = ca.SX.sym("Cm_r") # moment coefficent for yaw
3538
cbar = ca.SX.sym("cbar") # mean chord (m)
3639
span = ca.SX.sym("span") # wing span (m)
3740

@@ -75,6 +78,9 @@ def derive_model(coeff_data):
7578
Jx,
7679
Jy,
7780
Jz,
81+
Cm_p,
82+
Cm_q,
83+
Cm_r,
7884
cbar,
7985
span,
8086
Cm0,
@@ -167,6 +173,7 @@ def derive_model(coeff_data):
167173

168174
# input
169175
throttle_cmd = ca.SX.sym("throttle_cmd")
176+
ail_cmd = ca.SX.sym("ail_cmd")
170177
elev_cmd = ca.SX.sym("elev_cmd")
171178
rud_cmd = ca.SX.sym("rud_cmd")
172179

@@ -223,6 +230,7 @@ def derive_model(coeff_data):
223230
##############################################################################################
224231

225232
# Force and Moment Model
233+
cl = cl0 + cla * (-1 * alpha) # Lift Coefficient
226234

227235
# ##############################################################################################
228236
# ## From Look Up table

0 commit comments

Comments
 (0)