Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

basic A and B rotational support #107

Merged
merged 16 commits into from
Jan 6, 2023
Merged

basic A and B rotational support #107

merged 16 commits into from
Jan 6, 2023

Conversation

paukstelis
Copy link
Contributor

Basic functionality for A and B axes. Settings enable jog and status. Messages may need another couple of conditions (A, no B; B, no A) but maybe there is a more clever way to do it.

@synman
Copy link
Owner

synman commented Dec 31, 2022

I'm out of town for a couple days. Will get on this once back home mid next week.

Copy link
Owner

@synman synman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's keep .vscode metadata out of the repo.

@synman
Copy link
Owner

synman commented Jan 6, 2023

I'm going to merge this and clean up the .vscode stuff

@synman synman merged commit 7b798de into synman:devel Jan 6, 2023
@paukstelis
Copy link
Contributor Author

Weird, it should have been in .gitignore...

@synman
Copy link
Owner

synman commented Jan 6, 2023

nbd... looks like I've got some post merge cleanup to do. my devel machine is not happy.

Screenshot 2023-01-05 at 7 55 27 PM

@synman
Copy link
Owner

synman commented Jan 6, 2023

Error instantiating bettergrblsupportViewModel : TypeError: self.settings.hasA is not a function
at new BettergrblsupportViewModel (http://octopi-laser/static/webassets/packed_plugins.js?1b3c85b6:430:35)
at _createViewModelInstance (http://octopi-laser/static/webassets/packed_core.js?d44a1aa2:1117:213)
at HTMLDocument. (http://octopi-laser/static/webassets/packed_core.js?d44a1aa2:1121:45)
at e (http://octopi-laser/static/webassets/packed_libs.js?7111420c:13:30005)
at t (http://octopi-laser/static/webassets/packed_libs.js?7111420c:13:30307)
(anonymous) @ packed_core.js?d44a1aa2:1122
packed_core.js?d44a1aa2:1131

@synman
Copy link
Owner

synman commented Jan 6, 2023

weird.. this may be an nfs sync issue on my end.

@paukstelis
Copy link
Contributor Author

That was stuff I was messing with after PR submission. I did not realize that would get pulled along. I was trying to figure out how to add the origin_axes conditionally based on the settings.

@synman
Copy link
Owner

synman commented Jan 6, 2023

I'll take care of this... but yeah, everything you do in the PR branch amends the PR. I'm still not sure we have an actual problem. I see these settings defined in init.py

@synman
Copy link
Owner

synman commented Jan 6, 2023

ah... yeah, it's broke.

should be:

self.settings.settings.plugins.bettergrblsupport.hasA and self.settings.settings.plugins.bettergrblsupport.hasB

@paukstelis
Copy link
Contributor Author

ah... yeah, it's broke.

should be:

self.settings.settings.plugins.bettergrblsupport.hasA and self.settings.settings.plugins.bettergrblsupport.hasB

I tried that, still didn't work for me.

@synman
Copy link
Owner

synman commented Jan 6, 2023

it's because the view model isn't fully built in its constructor. settings gets wired up right before onBeforeBinding.

All better now. I have no way to test this as I don't have 5 axes machine, but it's binding properly now.

41640fe

@synman
Copy link
Owner

synman commented Jan 6, 2023

ok, maybe I can test a little. I love the look here

Screenshot 2023-01-05 at 8 13 32 PM

@synman
Copy link
Owner

synman commented Jan 6, 2023

Screenshot 2023-01-05 at 8 16 26 PM

I think we can do this a little more cleanly. Pretty sure there is a way to push within a list in js. I'm even tempted to push them to index 0... that way they'd show up before Z.

@synman
Copy link
Owner

synman commented Jan 6, 2023

hmm... do we even need them? It doesn't look like they are tied to setting or traveling to an origin. Selecting "A" and hitting home, generated the following GCODE:

Send: G0 G90 X0 Y0 Z0

I half expected to see "G0 G90 A0"

you can find this logic here: https://github.com/synman/Octoprint-Bettergrblsupport/blob/devel/octoprint_bettergrblsupport/__init__.py#L1341

@synman
Copy link
Owner

synman commented Jan 6, 2023

@paukstelis
Copy link
Contributor Author

hmm... do we even need them? It doesn't look like they are tied to setting or traveling to an origin. Selecting "A" and hitting home, generated the following GCODE:

Send: G0 G90 X0 Y0 Z0

I half expected to see "G0 G90 A0"

you can find this logic here: https://github.com/synman/Octoprint-Bettergrblsupport/blob/devel/octoprint_bettergrblsupport/__init__.py#L1341

I debated if it was necessary, but I think it would be useful for zeroing work space coordinates for all axes with a single click.

@synman
Copy link
Owner

synman commented Jan 6, 2023

Once you have it squared away, feel free to submit another PR. Let's get A/B cleaned up in the axes bar too. I think they'll look best to the left of Z.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants