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 26, 2023
1 parent 9ea5615 commit 3acd3a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SafeDrones/core/SafeDrones.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def Motor_Failure_Risk_Calc(self, MotorStatus=None, Motors_Configuration=None, M

if Motors_Configuration == 'PNPN':
if len(MotorStatus) > 4:
disp('The MotorStatus vector should match Motors_Configuration vector')
print('The MotorStatus vector should match Motors_Configuration vector')
else:
if SysState < 4:
P_Fail = 1
Expand Down Expand Up @@ -509,7 +509,7 @@ def Battery_Failure_Risk_Calc(self, BatteryLevel=None, time=None, Lambda = None,
[ L, 0, L, 0, L, 0, 0, 0]], dtype=np.float64)


P_Battery1 = expm(M_Battery*np.float64(time))*P0_Battery
P_Battery1 = sym.exp(M_Battery*np.float64(t))*P0_Battery

This comment has been minimized.

Copy link
@n-akram

n-akram Oct 2, 2023

Collaborator

@koo-ec This line seems to give error. The old expression expm and Time seens to work better.

    P_Battery1 = expm(M_Battery*np.float64(time))*P0_Battery

Is there something missing? Do we need this change?


P_Battery_Fail = P_Battery1[-1] + P_Battery1[-2]

Expand Down

0 comments on commit 3acd3a2

Please sign in to comment.