Skip to content

Commit

Permalink
change epsilon to larger
Browse files Browse the repository at this point in the history
  • Loading branch information
misko committed Jan 7, 2024
1 parent 7382978 commit e6319c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spf/grbl/grbl_interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,12 @@ def get_boundary_vector_near_point(self, p):
class Planner:
def __init__(self, dynamics):
self.dynamics = dynamics
self.current_direction = None
self.current_direction = None
self.epsilon = 1 # original was 0.001

def get_bounce_pos_and_new_direction(self, p, direction):
epsilon = 0.001
distance_to_bounce = self.dynamics.binary_search_edge(
0, 10000, p, direction, epsilon
0, 10000, p, direction, self.epsilon
)
last_point_before_bounce = distance_to_bounce * direction + p

Expand Down

0 comments on commit e6319c8

Please sign in to comment.