Skip to content
Snippets Groups Projects
Commit e0c9184e authored by Šimon Lehký's avatar Šimon Lehký
Browse files

Updated balancing mode and hybrid SF model

parent 4f3e5ff7
No related branches found
No related tags found
No related merge requests found
clear prms
clear rpi
setenv('TMPDIR','/home/simon/project/');
%% PARAMETERS
prms.g = 9.807; % gravitational acceleration
......
No preview for this file type
File added
......@@ -39,7 +39,10 @@ B = diff(f, tau);
B = double(subs(B,{'theta','Dtheta','d','Dd','tau'},{xp(1),xp(2),xp(3),xp(4),taup}));
% matrix C
C = diag(ones(4,1));
C = [1 0 0 0;
0 0 0 0;
0 0 1 0;
0 0 0 0];
% matrix D
D = 0;
......
function [A, B] = bm_matrices(X, coefs)
function [A, B] = bal_mat(X, coefs)
% X = [theta; Dtheta; d; Dd]
theta = X(1);
......
......@@ -40,7 +40,10 @@ B = diff(f, tau);
B = double(subs(B,{'theta','Dtheta','alpha','Dalpha','tau'},{xp(1),xp(2),xp(3),xp(4),taup}));
% matrix C
C = diag(ones(4,1));
C = [1 0 0 0;
0 0 0 0;
0 0 1 0;
0 0 0 0];
% matrix D
D = 0;
......
function [A, B] = rm_matrices(X, coefs)
function [A, B] = rev_mat(X, coefs)
% x = [theta; Dtheta; alpha; Dalpha];
theta = X(1);
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment