Skip to content

Commit

Permalink
Update SafeDrones.py
Browse files Browse the repository at this point in the history
  • Loading branch information
koo-ec authored Sep 27, 2023
1 parent 3acd3a2 commit 975ecc1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions SafeDrones/core/SafeDrones.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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],
Expand Down

0 comments on commit 975ecc1

Please sign in to comment.