Skip to content

Fix autoleveller output format#583

Merged
eyal0 merged 1 commit intopcb2gcode:masterfrom
eyal0:autoleveller_format_string
May 24, 2021
Merged

Fix autoleveller output format#583
eyal0 merged 1 commit intopcb2gcode:masterfrom
eyal0:autoleveller_format_string

Conversation

@eyal0
Copy link
Copy Markdown
Contributor

@eyal0 eyal0 commented May 24, 2021

The %s format sometimes produces invalid g-code as
small numbers are converted to exponential form. In
addition larger numbers are truncated.

Therefore change the format to %.5f which, as an
example, outputs

o1 call [0.00003] [13.26319] [-0.08000]

instead of

o1 call [2.54e-05] [13.2632] [-0.08]

Signed-off-by: Nicola Di Lieto nicola.dilieto@gmail.com

The %s format sometimes produces invalid g-code as
small numbers are converted to exponential form. In
addition larger numbers are truncated.

Therefore change the format to %.5f which, as an
example, outputs

> o1 call [0.00003] [13.26319] [-0.08000]

instead of

> o1 call [2.54e-05] [13.2632] [-0.08]

Signed-off-by: Nicola Di Lieto <nicola.dilieto@gmail.com>
@eyal0
Copy link
Copy Markdown
Contributor Author

eyal0 commented May 24, 2021

This fixes #582

@coveralls
Copy link
Copy Markdown
Collaborator

Coverage Status

Coverage remained the same at 69.251% when pulling a266da6 on eyal0:autoleveller_format_string into ed67bef on pcb2gcode:master.

@eyal0 eyal0 merged commit 41b1c52 into pcb2gcode:master May 24, 2021
@eyal0 eyal0 deleted the autoleveller_format_string branch May 24, 2021 23:43
@eyal0 eyal0 restored the autoleveller_format_string branch August 31, 2021 02:40
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.

3 participants