debug messages

More
21 Mar 2019 17:22 #129198 by sdf
debug messages was created by sdf
someone know how can I display only 3 decimal places in the "debug messages" instead the default 6 decimal places?

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

More
21 Mar 2019 23:43 #129232 by andypugh
Replied by andypugh on topic debug messages
I am pretty sure that you can't control that without editing the source code.

Which we would be happy to tell you how to do, if you want to go that far.

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

More
23 Mar 2019 03:51 #129325 by sdf
Replied by sdf on topic debug messages
yes, I will be happy to know how to reduce the decimal places.

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

More
23 Mar 2019 11:54 - 23 Mar 2019 11:55 #129349 by andypugh
Replied by andypugh on topic debug messages

sdf wrote: yes, I will be happy to know how to reduce the decimal places.


It is the snprintf in line 1359 of interp_conver.tcc
github.com/LinuxCNC/linuxcnc/blob/master...erp_convert.cc#L1359

You would need to change the %lf to a string that defines the decimal places required. (and then recompile LinuxCNC)

Perhaps there are better ways to display the information you want than using the G-code debug comment?
Last edit: 23 Mar 2019 11:55 by andypugh.

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

More
23 Mar 2019 14:40 #129364 by pl7i92
Replied by pl7i92 on topic debug messages
as you are in AXIS display your message to a pyvcp panel that you got full controll

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

More
24 Mar 2019 21:27 #129521 by sdf
Replied by sdf on topic debug messages
Thanks!
but
I can't find the file,
what is the path for it?

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

More
24 Mar 2019 22:13 #129527 by andypugh
Replied by andypugh on topic debug messages
You might not even have the file if you didn't compile from source.

The Linux "find" command will find it if you did.

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

Time to create page: 0.089 seconds
Powered by Kunena Forum