Skip to content

Commit

Permalink
Remove old commented-out code
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewHWang1605 committed Apr 30, 2024
1 parent 1ad0e2e commit dd418df
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions ff_sim/ff_sim/simulator_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,10 +403,6 @@ def compute_dynamics_dt(self, x_k, u_k, dt, discretization="Euler"):
print("[FreeFlyerSimulator::compute_dynamics_dt]: Unknown Discretization Scheme.")

# Wrap theta to [-pi, pi]

# x_next[2] = ((x_next[2] % (2 * np.pi)) + 2 * np.pi) % (2 * np.pi)
# if x_next[2] > np.pi:
# x_next[2] -= 2 * np.pi
x_next[2] = (x_next[2] + np.pi) % (2 * np.pi) - np.pi

return x_next
Expand Down

0 comments on commit dd418df

Please sign in to comment.