thesis/set_initial_conditions.m

26 lines
474 B
Matlab
Raw Permalink Normal View History

function q0 = set_initial_conditions(i)
switch i
case 0
q0 = [0; 0; 0];
case 1
q0 = [0; 0; pi];
2024-07-13 11:32:23 +02:00
case 2
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];
case 10
q0 = [0;0;deg2rad(3)];
end
end