Skip to content

Commit

Permalink
ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
javierggt committed Aug 20, 2024
1 parent 4196c4a commit aaf9eb0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions kadi/commands/commands_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -750,8 +750,7 @@ def manvr_duration(q1, q2):
q_manvr_3 = abs(-q2[0] * q1[0] - q2[1] * q1[1] - q2[2] * q1[2] + q2[3] * -q1[3])

# 4th component is cos(theta/2)
if q_manvr_3 > 1:
q_manvr_3 = 1
q_manvr_3 = min(q_manvr_3, 1)
phimax = 2 * math.acos(q_manvr_3)

epsmax = MANVR_VMAX / MANVR_ALPHAMAX - MANVR_DELTA
Expand All @@ -764,8 +763,7 @@ def manvr_duration(q1, q2):
np.sqrt(MANVR_DELTA**2 + 4 * phimax / MANVR_ALPHAMAX) / 2
- 1.5 * MANVR_DELTA
)
if eps < 0:
eps = 0
eps = max(eps, 0)

tm = 4 * MANVR_DELTA + 2 * eps + tau
return tm
Expand Down

0 comments on commit aaf9eb0

Please sign in to comment.