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

Fix autoleveller output format #583

Merged
merged 1 commit into from
May 24, 2021

Conversation

eyal0
Copy link
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
Contributor Author

eyal0 commented May 24, 2021

This fixes #582

@coveralls
Copy link
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.

None yet

3 participants