Skip to content

Commit aed090e

Browse files
committed
Minor formatting update
1 parent a0281cc commit aed090e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

mobotpy/models.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,8 +529,12 @@ def ackermann(self, x):
529529
ackermann_angles : ndarray of length 2
530530
The left and right wheel angles (phi_L, phi_R).
531531
"""
532-
phi_L = np.arctan(2 * self.ell_W * np.tan(x[3]) / (2 * self.ell_W - self.ell_T * np.tan(x[3])))
533-
phi_R = np.arctan(2 * self.ell_W * np.tan(x[3]) / (2 * self.ell_W + self.ell_T * np.tan(x[3])))
532+
phi_L = np.arctan(
533+
2 * self.ell_W * np.tan(x[3]) / (2 * self.ell_W - self.ell_T * np.tan(x[3]))
534+
)
535+
phi_R = np.arctan(
536+
2 * self.ell_W * np.tan(x[3]) / (2 * self.ell_W + self.ell_T * np.tan(x[3]))
537+
)
534538
ackermann_angles = np.array([phi_L, phi_R])
535539
return ackermann_angles
536540

0 commit comments

Comments
 (0)