Code Monkey home page Code Monkey logo

g81_relative's Introduction

Build and Deploy

https://github.com/PrusaOwners/prusaowners/wiki/Bed_Leveling_without_Wave_Springs

Following that tutorial and because I didn't want to update my firmware only to have relative numbers, I made a script to convert the output from Marlin to the relative numbers you need.
Script takes a file as parameter with G81 output, like that:

Recv:   0.16500  0.18463  0.19991  0.21083  0.21741  0.21963  0.21750
Recv:   0.16046  0.18181  0.20058  0.21676  0.23036  0.24138  0.24981
Recv:   0.15630  0.18067  0.20295  0.22315  0.24126  0.25727  0.27120
Recv:   0.15250  0.18120  0.20704  0.23000  0.25009  0.26731  0.28167
Recv:   0.14907  0.18342  0.21283  0.23731  0.25687  0.27150  0.28120
Recv:   0.14602  0.18730  0.22033  0.24509  0.26159  0.26984  0.26981
Recv:   0.14333  0.19287  0.22954  0.25333  0.26426  0.26231  0.24750

Then when you do:

$> ruby gen.rb output.txt

      Raw values:
      -0.07	-0.02	-0.01
      -0.08	0	0.05
      -0.09	0.02	0.02

      Degrees:
      50°CCW	14°CCW	7°CCW
      58°CCW	0	36°CW
      65°CCW	14°CW	14°CW

      Fractional Turns:
      1/10CCW	0CCW	0CCW
      1/5CCW	0	1/10CW
      1/5CCW	0CCW	0CCW

You get the proper output relative to the center. You also get the degrees and fractional turns from the correct position for each screw.
In the current example you should turn the upper left screw 50° counter clockwise.
You can also access the converter directly online by going to: https://pcboy.github.io/g81_relative/

Contributors

chrisbcole for the degrees/fractional turns output

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.