menambah case percobaan

master
a2nr 2021-05-19 14:16:30 +07:00
parent 1123db696c
commit 3e4f4ad01c
2 changed files with 34 additions and 7 deletions

View File

@ -1 +1 @@
# Created by Octave 5.2.0, Thu Apr 01 10:57:28 2021 WIB <a2nr@localhost.localdomain>
# Created by Octave 5.2.0, Sat Apr 10 23:13:54 2021 WIB <a2nr@localhost.localdomain>

View File

@ -15,17 +15,44 @@ bParam.edgeL = [1 2 1;
3 1 1;
];
bParam.dScale = 3;
bParam.kp1 = 80;
bParam.kp2 = 7;
bParam.ki1 = 0;
bParam.ki2 = 0;
bParam.nNodeVref = 1;
bParam.ki1 = 0;
bParam.ki2 = 0;
# CASE 1
bParam.kp1 = 50;
bParam.kp2 = 3;
# CASE 2
##bParam.kp1 = 80;
##bParam.kp2 = 7;
# CASE 3
##bParam.kp1 = 100;
##bParam.kp2 = 15;
#### KOOR 1
##corRobot = [0; 0;0;
## 1; 2;0;
## -2; 3;0;
## ]; % xy xy xy
#### KOOR 2
##corRobot = [0; 0;0;
## -2; -4;0;
## 3; -2;0;
## ]; % xy xy xy
#### KOOR 3
corRobot = [0; 0;0;
1; 2;0;
3; -3;0;
]; % xy xy xy
## KOOR 4
##corRobot = [0; 0;0;
## -2; -3;0;
## 3; 2;0;
## ]; % xy xy xy
robStateLen = size(bParam.model.origin.A,1);
B = [
1 0; 0 1;
@ -64,8 +91,8 @@ printf("Mulai memecakan masalah \n\n");
startExe = tic;
% continue
dydt = @(t, y) algo_init(sys,y,fvref(t));
##dydt = @(t, y) sys.ss(y,fvref(t));
##dydt = @(t, y) algo_init(sys,y,fvref(t));
dydt = @(t, y) sys.ss(y,fvref(t));
[t,y] = ode45(dydt, tspan, state_init);
% discrate taylor methode