Axis DRO Velocity when using adaptive feed

More
30 Apr 2023 04:08 #270289 by dberndt
Not really sure where to drop this note, but maybe here is as good as anywhere else.

It might be nice if the velocity displayed in DRO "Vel:" would in some way represent the status of adaptive_feed, so maybe it should gain a negative sign when m52 is enabled and motion.adaptive-feed < 0 causing reverse motion?

I'm  not sure what data you'd pull out of linuxcnc.stat() or wherever else to make that happen, so maybe it's more of a core linuxcnc than axis thing.

Does anyone have any suggestions? Am I missing some other place where I might see data about adaptive feeds status displayed? I realize I can fairly easily deal with this in a pyvcp panel...

-Dave

Please Log in or Create an account to join the conversation.

More
30 Apr 2023 14:56 #270309 by D.L.
To do this, you need to edit the file glcanon.py.
After this line:
spd = self.to_internal_linear_unit(s.current_vel)
Add this line:
spd = math.copysign(spd, hal.get_value("motion.adaptive-feed"))

 
Attachments:
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
01 May 2023 00:35 #270356 by dberndt
Awesome. Thanks D.L. Haven't tested with real g-code yet but seems ok in basic testing.

Please Log in or Create an account to join the conversation.

Time to create page: 0.227 seconds
Powered by Kunena Forum