@@ -32,23 +32,23 @@ def __init__(self, flight_params: FlightParams):
3232 self .KD_tran_PD_baseline = np .matrix (1 * np .diag ([8 ,8 ,3 ]))
3333
3434 # **Rotational** baseline parameters
35- # self.KP_rot = np.matrix(1e2 * np.diag([1,1,0.5]))
36- # self.KP_rot = np.matrix(5e1 * np.diag([0.1,0.1,0.5]))
37- self .KP_rot = np .matrix (5e1 * np .diag ([0.05 ,0.05 ,0.5 ]))
35+ # self.KP_rot = np.matrix(5e1 * np.diag([0.05,0.05,0.5]))
3836 # self.KI_rot = np.matrix(1e2 * np.diag([1,1,1]))
39- self .KI_rot = np .matrix (1e2 * np .diag ([1 ,1 ,1 ]))
37+ self .KP_rot = np .matrix (1 * np .diag ([100 ,100 ,50 ]))
38+ self .KI_rot = np .matrix (0 * np .diag ([0 ,0 ,0 ]))
4039
4140 # **Rotational** parameters for the PI baseline controller (Moment_baseline_PI)
42- # self.KP_rot_PI_baseline = np.matrix(40 * np.diag([1,1,1 ]))
41+ # self.KP_rot_PI_baseline = np.matrix(200 * np.diag([1,1,0.3 ]))
4342 # self.KD_rot_PI_baseline = np.matrix(0 * np.diag([1,1,0.5]))
44- # self.KI_rot_PI_baseline = np.matrix(1e-1 * np.diag([1,1 ,0.5]))
45- self .KP_rot_PI_baseline = np .matrix (200 * np .diag ([1 ,1 ,0.3 ]))
43+ # self.KI_rot_PI_baseline = np.matrix(1e2 * np.diag([10,10 ,0.5]))
44+ self .KP_rot_PI_baseline = np .matrix (40 * np .diag ([1 ,1 ,0.5 ]))
4645 self .KD_rot_PI_baseline = np .matrix (0 * np .diag ([1 ,1 ,0.5 ]))
47- self .KI_rot_PI_baseline = np .matrix (1e2 * np .diag ([10 , 10 ,0.5 ]))
46+ self .KI_rot_PI_baseline = np .matrix (0.1 * np .diag ([1 , 1 ,0.5 ]))
4847
49- # self.K_P_omega_ref = np.matrix(1.5e-1 * np.diag([5,5,10]))
50- self .K_P_omega_ref = np .matrix (1.5e0 * np .diag ([50 ,50 ,10 ]))
51- self .K_I_omega_ref = np .matrix (1e2 * np .diag ([1 ,1 ,1 ]))
48+ # self.K_P_omega_ref = np.matrix(1.5e0 * np.diag([50,50,10]))
49+ # self.K_I_omega_ref = np.matrix(1e2 * np.diag([1,1,1]))
50+ self .K_P_omega_ref = np .matrix (1.5e-1 * np .diag ([5 ,5 ,10 ]))
51+ self .K_I_omega_ref = np .matrix (0 * np .diag ([0 ,0 ,0 ]))
5252
5353 # ----------------------------------------------------------------
5454 # Translational Parameters MRAC
@@ -99,17 +99,17 @@ def __init__(self, flight_params: FlightParams):
9999 self .B_ref_rot = np .matrix (np .eye (3 ))
100100
101101 # **Rotational** parameters Lyapunov equation
102- # self.Q_rot = np.matrix(7e-3 * np.diag([1,1 ,2]))
103- self .Q_rot = np .matrix (7e-3 * np .diag ([2 , 2 , 2 ]))
102+ # self.Q_rot = np.matrix(7e-3 * np.diag([2,2 ,2]))
103+ self .Q_rot = np .matrix (7e-3 * np .diag ([1 , 1 , 1 ]))
104104 self .P_rot = np .matrix (linalg .solve_continuous_lyapunov (self .A_ref_rot .T , - self .Q_rot ))
105105
106106 # **Rotational** adaptive parameters
107- # self.Gamma_x_rot = np.matrix(1e1 * np.diag([1,1,10 ])) # Adaptive rates
108- # self.Gamma_r_rot = np.matrix(1e-4 * np.diag([1,1,1])) # Adaptive rates
109- # self.Gamma_Theta_rot = np.matrix(1e0 * np.diag([1,1,1,1,1,1])) # Adaptive rates
110- self .Gamma_x_rot = np .matrix (1e4 * np .diag ([1 ,1 ,1 ])) # Adaptive rates
111- self .Gamma_r_rot = np .matrix (1e1 * np .diag ([1 ,1 ,1 ])) # Adaptive rates
112- self .Gamma_Theta_rot = np .matrix (1e2 * np .diag ([1 ,1 ,1 ,1 ,1 ,1 ])) # Adaptive rates
107+ # self.Gamma_x_rot = np.matrix(1e4 * np.diag([1,1,1 ])) # Adaptive rates
108+ # self.Gamma_r_rot = np.matrix(1e1 * np.diag([1,1,1])) # Adaptive rates
109+ # self.Gamma_Theta_rot = np.matrix(1e2 * np.diag([1,1,1,1,1,1])) # Adaptive rates
110+ self .Gamma_x_rot = np .matrix (1e1 * np .diag ([1 ,1 ,1 ])) # Adaptive rates
111+ self .Gamma_r_rot = np .matrix (1e-4 * np .diag ([1 ,1 ,1 ])) # Adaptive rates
112+ self .Gamma_Theta_rot = np .matrix (1e0 * np .diag ([1 ,1 ,1 ,1 ,1 ,1 ])) # Adaptive rates
113113
114114 # ----------------------------------------------------------------
115115 # Safety Mechanism Parameters
0 commit comments