Skip to content

Commit 623eca9

Browse files
committed
Adds uncertain mass quadrotor example
1 parent a388293 commit 623eca9

11 files changed

Lines changed: 15 additions & 15 deletions
-9.97 KB
Binary file not shown.
2.47 KB
Binary file not shown.
1.25 KB
Binary file not shown.
1.31 KB
Binary file not shown.
1.32 KB
Binary file not shown.
1.32 KB
Binary file not shown.
1.32 KB
Binary file not shown.
1.32 KB
Binary file not shown.
1.32 KB
Binary file not shown.

LPV_Uncertain_system_example/main_LPV_example.m

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,29 +9,29 @@
99

1010
% Sector bounds
1111
m=1; % lower bound on the sector
12-
L=1:1:30; % Upper bound on the sector
12+
L=1:0.5:10; % Upper bound on the sector
1313
n_L=length(L);
1414

1515
% Optimization tolerences
1616
tolerences.cvx_tol=1e-3;
1717
tolerences.bisect_tol=1e-3;
1818
tolerences.cond_tol=1e8;
1919

20-
% Mass with friction dynamics
21-
kp=[1,1];
22-
kd=[5,10];
23-
mass=[1,1];
24-
dim=2;% spatial dimension (of positions and velocities)
25-
G_veh=define_G_mass_with_friction_LPV_affine(dim,kd,mass,kp);
26-
27-
% % Quadrotor dynamics
28-
% addpath(genpath('..\vehicles\quadrotor'))
20+
% % Mass with friction dynamics
2921
% kp=[1,1];
30-
% kd=[5,5];
31-
% mass=[0.5,2];
22+
% kd=[5,10];
23+
% mass=[1,1];
3224
% dim=2;% spatial dimension (of positions and velocities)
33-
% % Current implementation only supports dim=2 for quadrotors
34-
% G_veh=define_G_quad_LPV_wrapped(dim,kp,kd,mass);
25+
% G_veh=define_G_mass_with_friction_LPV_affine(dim,kd,mass,kp);
26+
27+
% Quadrotor dynamics
28+
addpath(genpath('..\vehicles\quadrotor'))
29+
kp=[1,1];
30+
kd=[5,5];
31+
mass=[0.2,2];
32+
dim=2;% spatial dimension (of positions and velocities)
33+
% Current implementation only supports dim=2 for quadrotors
34+
G_veh=define_G_quad_LPV_wrapped(dim,kp,kd,mass);
3535

3636
% Multiplier class
3737
% Select a multiplier class from the following choices

0 commit comments

Comments
 (0)