From 37752fd6df6f5dbd5d7d7d3131956c250b29adab Mon Sep 17 00:00:00 2001 From: lawgicau Date: Thu, 15 Jul 2021 00:25:56 +1000 Subject: [PATCH] Merge gcode processing into one function Instead of functions for each gcode generator, one function that processes common changes plus specific for each test. Much less code and easier to add future tests. --- calibration.html | 14 +- js/acceleration.js | 604 +++++++++++++++++++++--------------------- js/baseline.js | 4 +- js/commongcode.js | 7 +- js/createform.js | 1 + js/firstlayer.js | 5 +- js/gcodeprocessing.js | 401 +++++++++++++++++++++++++++- js/retraction.js | 4 +- js/temperature.js | 4 +- 9 files changed, 725 insertions(+), 319 deletions(-) diff --git a/calibration.html b/calibration.html index a758b2f..06316ca 100644 --- a/calibration.html +++ b/calibration.html @@ -50,7 +50,7 @@
  • 1.75mm filament (However M221 S38 for 2.85 mm filament and M221 S34 for 3.0 mm filament can be applied in the custom start gcode field as compensation)
  • 0.4mm nozzle and 0.2mm layer height, although now additional configurations are now possible
  • 0.4mm nozzle
  • -
  • Defaut feedrate of 60mm/sec, 50% for perimeters, 80% for solid infill, 50% first layer.
  • +
  • Defaut feedrate of 60mm/sec, 60% for perimeters, 80% for solid infill, 50% first layer.
  • Travel moves of 100 mm/sec for X/Y and 20 mm/sec for Z
  • Flow rate of 0.9. Please see the note on the bottom of the flow tab for instructions on adapting this to your printer.
  • Nozzle priming has been turned off to avoid bed clips or problems with deltas. Use the custom start gcode feature to insert the priming dequence from your slicer profile.
  • @@ -119,7 +119,7 @@

    Acceleration test: