Skip to content

Commit

Permalink
fixes to planners
Browse files Browse the repository at this point in the history
  • Loading branch information
misko committed Jan 17, 2024
1 parent f11b8c6 commit 721d318
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions spf/grbl/grbl_interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,14 +345,13 @@ def yield_points(self):
current_angle += self.angle_increment


class CalibationV1Planner(Planner):
class CalibrationV1Planner(Planner):
def __init__(
self, dynamics, start_point, stationary_point, step_size=5, y_bump=100
self, dynamics, start_point, step_size=5, y_bump=100
):
super().__init__(
dynamics=dynamics, start_point=start_point, step_size=step_size
)
self.stationary_point = stationary_point
self.y_bump = y_bump

def get_planner_start_position(self):
Expand Down Expand Up @@ -583,8 +582,6 @@ def bounce(self):
)
for c_idx in range(len(self.planners))
]
yield self.get_ready()
self.run()

def tx_circle(self):
self.planners = [
Expand Down Expand Up @@ -623,8 +620,8 @@ def v1_calibrate(self):
start_point=self.controller.position["xy"][0],
stationary_point=rx_calibration_point,
),
BouncePlanner(
self.controller.dynamics, start_point=self.controller.position["xy"][1]
CalibrationV1Planner(
self.controller.dynamics, start_point=self.controller.position["xy"][1],
),
]

Expand Down

0 comments on commit 721d318

Please sign in to comment.