Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MicroCART_17-18
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bbartels
MicroCART_17-18
Commits
823a813d
Commit
823a813d
authored
8 years ago
by
Andy Snawerdt
Browse files
Options
Downloads
Patches
Plain Diff
Uploaded developing version of model and updated model parameters file
parent
959c84b3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
controls/model/modelParameters.m
+31
-21
31 additions, 21 deletions
controls/model/modelParameters.m
controls/model/test_model.slx
+0
-0
0 additions, 0 deletions
controls/model/test_model.slx
with
31 additions
and
21 deletions
controls/model/modelParameters.m
+
31
−
21
View file @
823a813d
% Model Parameters
m
=
1.19
;
% Quadrotor + battery mass
g
=
9.81
;
% Acceleration of gravity
Jxx
=
0.0218
;
% Quadrotor and battery motor of inertia around bx (pitch)
Jyy
=
0.0277
;
% Quadrotor and battery motor of inertia around by (roll)
Jzz
=
0.0332
;
% Quadrotor and battery motor of inertia around bz (yaw)
Jreq
=
4.2012e-05
;
% Rotor and motor moment of inertia around axis of rotation
Kt
=
8.1558
*
10
^-
6
;
% Rotor thrust constant
Kh
=
0
;
% Rotor in-plane drag constant
Kd
=
1.8087e-07
;
% Rotor drag constant
rhx
=
0.016
;
% X-axis distance from center of mass to a rotor hub
rhy
=
0.016
;
% Y-axis distance from center of mass to a rotor hub
rhz
=
0.003
;
% Z-axis distance from center of mass to a rotor hub
Rm
=
0.2308
;
% Motor resistance
Kq
=
96.3422
;
% Motor torque constant
Kv
=
96.3422
;
% Motor back emf constant
If
=
0.511
;
% Motor internal friction current
Pmin
=
0.40
;
% Minimum zybo output duty cycle command
Pmax
=
0.80
;
% Maximum zybo output duty cycle command
Tc
=
0.01
;
% Camera system sampling period
tau_c
=
0
;
% Camera system total latency
Vb
=
11.1
;
% Nominal battery voltage (V)
\ No newline at end of file
m
=
1.19
;
% Quadrotor + battery mass
g
=
9.81
;
% Acceleration of gravity
Jxx
=
0.0218
;
% Quadrotor and battery motor of inertia around bx (pitch)
Jyy
=
0.0277
;
% Quadrotor and battery motor of inertia around by (roll)
Jzz
=
0.0332
;
% Quadrotor and battery motor of inertia around bz (yaw)
Jreq
=
4.2012e-05
;
% Rotor and motor moment of inertia around axis of rotation
Kt
=
8.1558
*
10
^-
6
;
% Rotor thrust constant
Kh
=
0
;
% Rotor in-plane drag constant
Kd
=
1.8087e-07
;
% Rotor drag constant
rhx
=
0.016
;
% X-axis distance from center of mass to a rotor hub
rhy
=
0.016
;
% Y-axis distance from center of mass to a rotor hub
rhz
=
0.003
;
% Z-axis distance from center of mass to a rotor hub
Rm
=
0.2308
;
% Motor resistance
Kq
=
96.3422
;
% Motor torque constant
Kv
=
96.3422
;
% Motor back emf constant
If
=
0.511
;
% Motor internal friction current
Pmin
=
0.40
;
% Minimum zybo output duty cycle command
Pmax
=
0.80
;
% Maximum zybo output duty cycle command
Tc
=
0.01
;
% Camera system sampling period
tau_c
=
0
;
% Camera system total latency
Vb
=
11.1
;
% Nominal battery voltage (V)
omega_o
=
598.088
;
% Equilibrium Rotor Speed
x_controlled_o
=
0
;
% Equilibrium lateral controller output
y_controlled_o
=
0
;
% Equilibrium longitudinal controller output
yaw_controlled_o
=
0
;
% Equilibrium yaw controller output
% Equilibrium height controller output
height_controlled_o
=
(((
Rm
*
If
+
...
+
(((
omega_o
*
2
*
Rm
*
Kv
*
Kq
...
*
Kd
+
1
)
^
2
)
-
1
)/(
4
*
Rm
*
Kv
^
2
*
Kq
...
*
Kd
))/
Vb
)
*
(
Pmax
-
Pmin
)
+
Pmin
)
*
100
;
\ No newline at end of file
This diff is collapsed.
Click to expand it.
controls/model/test_model.slx
0 → 100644
+
0
−
0
View file @
823a813d
File added
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment