diff --git a/SafeDrones/core/SafeDrones.py b/SafeDrones/core/SafeDrones.py index fc5312c..649ffbc 100644 --- a/SafeDrones/core/SafeDrones.py +++ b/SafeDrones/core/SafeDrones.py @@ -578,7 +578,7 @@ def Chip_MTTF_Model(self,MTTFref=None, Tr=None, Ta = None, u=None,b = None, time return P_Fail.evalf(subs={t: time}), MTTFchip.evalf(subs={t: time}) - def GPS_Failure_Risk_Calc(self.SatStatus, self.GPS_Lambda, self.time): + def GPS_Failure_Risk_Calc(self): L = self.GPS_Lambda t = self.time @@ -592,7 +592,8 @@ def GPS_Failure_Risk_Calc(self.SatStatus, self.GPS_Lambda, self.time): [ 0, 0, 0, 0, 0, 0, 8*L, -7*L, 0], [ 0, 0, 0, 0, 0, 0, 0, 7*L, 0]]) - P = np.dot(expm(M*t), self.SatStatus) + P = np.dot(sym.exp(M*t), self.SatStatus) + P_Fail = P[-1] N = np.array([[-14*L, 0, 0, 0, 0, 0, 0, 0],