Axis DRO Velocity when using adaptive feed

More
3 years 6 months ago #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 to join the conversation.

More
3 years 6 months ago #270309 by D.L.
To do this, you need to edit the file glcanon.py.
After this line:
Code:
spd = self.to_internal_linear_unit(s.current_vel)
Add this line:
Code:
spd = math.copysign(spd, hal.get_value("motion.adaptive-feed"))

Attachment not found


 

Please Log in to join the conversation.

More
3 years 5 months ago #270356 by dberndt
Awesome. Thanks D.L. Haven't tested with real g-code yet but seems ok in basic testing.

Please Log in to join the conversation.

Time to create page: 0.093 seconds
Powered by Kunena Forum