2024-07-27 14:51:23 +02:00
|
|
|
function q0 = set_initial_conditions(i)
|
2024-07-12 19:13:29 +02:00
|
|
|
switch i
|
|
|
|
case 0
|
2024-07-27 14:51:23 +02:00
|
|
|
q0 = [0; 0; 0];
|
2024-07-12 19:13:29 +02:00
|
|
|
case 1
|
2024-07-27 14:51:23 +02:00
|
|
|
q0 = [0; 0; pi];
|
2024-07-13 11:32:23 +02:00
|
|
|
case 2
|
2024-07-27 14:51:23 +02:00
|
|
|
q0 = [0; 0; pi/6];
|
|
|
|
case 3
|
|
|
|
q0 = [1; 0; 0];
|
2024-07-28 12:58:36 +02:00
|
|
|
case 4
|
|
|
|
q0 = [1; 0; -pi/6];
|
2024-07-30 11:28:26 +02:00
|
|
|
case 5
|
|
|
|
q0 = [1; 0; pi/2];
|
2024-08-05 18:18:22 +02:00
|
|
|
case 6
|
|
|
|
q0 = [0; 0.5; 0];
|
|
|
|
case 7
|
|
|
|
q0 = [0.75; 0; pi/2];
|
|
|
|
case 8
|
|
|
|
q0 = [0;0;pi/2];
|
|
|
|
case 9
|
|
|
|
q0 = [2.5; 0; pi/2];
|
2024-09-21 11:46:33 +02:00
|
|
|
case 10
|
|
|
|
q0 = [0;0;deg2rad(3)];
|
2024-07-12 19:13:29 +02:00
|
|
|
end
|
|
|
|
end
|