Skip to content

Commit

Permalink
fix data collector for grbl
Browse files Browse the repository at this point in the history
  • Loading branch information
misko committed Mar 23, 2024
1 parent 9a0160a commit 563484c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions spf/data_collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,8 +495,11 @@ def radios_to_online(self):

class GrblDataCollector(DataCollector):
def __init__(self, *args, **kwargs):
super(GrblDataCollector, self).__init__(*args, **kwargs)
self.column_names = v2_column_names(nthetas=self.yaml_config["n-thetas"])
super(GrblDataCollector, self).__init__(
*args,
column_names=v2_column_names(nthetas=kwargs["yaml_config"]["n-thetas"]),
**kwargs,
)

def write_to_record_matrix(self, thread_idx, record_idx, data):
tx_pos = self.position_controller.controller.position["xy"][
Expand Down

0 comments on commit 563484c

Please sign in to comment.