Skip to content

Commit

Permalink
Changed magic number to be like Ivan sim (still not work)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mokaz committed Jan 24, 2024
1 parent 426945a commit c16897b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion guidance/los_guidance/los_guidance/los_guidance.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
class LOSGuidance:
def __init__(self, p0: list[float], p1: list[float]):
self.set_path(p0, p1)
self.heading_ref = 30*np.pi/180 # magic init number!!!
self.heading_ref = 50*np.pi/180 # magic init number!!!

def set_path(self, p0: list[float], p1: list[float]):
self.p0 = np.array(p0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def wrench_input_cb(self, msg):
self.x_history[self.num_steps_simulated] = x_next
self.x_ref_history[self.num_steps_simulated, : ] = self.x_ref
self.u_history[self.num_steps_simulated] = u
print(f"self.x_ref_history[{self.num_steps_simulated}]: {self.x_ref_history[self.num_steps_simulated]}")
# print(f"self.x_ref_history[{self.num_steps_simulated}]: {self.x_ref_history[self.num_steps_simulated]}")

if (self.num_steps_simulated >= self.num_steps):
self.plot_history()
Expand Down

0 comments on commit c16897b

Please sign in to comment.