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

Leave pen up at end of plot #178

Open
osresearch opened this issue Jul 29, 2023 · 4 comments
Open

Leave pen up at end of plot #178

osresearch opened this issue Jul 29, 2023 · 4 comments

Comments

@osresearch
Copy link
Contributor

It seems that after a successful plot, the carriage returns to home and executes a pen down. Is there a way to turn this off so that it doesn't mark the paper? I'm not sure why it does this, since the code in function plan seems to end with a max-up pen position:

  // finally, move back to (0, 0).
  motions.push(constantAccelerationPlan([curPos, {x: 0, y: 0}], profile.penUpProfile));
  motions.push(new PenMotion(Device.Axidraw.penPctToPos(penMaxUpPos), profile.penUpPos, profile.penDropDuration));
  return new Plan(motions);

unless it is being modified in withPenHeights()? I'm not clear on exactly what is happening here, although it seems odd that the last motion is being treated special and overriding the actual command:

                if (j === this.motions.length - 3) {
                    return new PenMotion(penDownHeight, exports.Device.Axidraw.penPctToPos(0), motion.duration());
                }
                else if (j === this.motions.length - 1) {
                    return new PenMotion(exports.Device.Axidraw.penPctToPos(0), penUpHeight, motion.duration());
                }

(I'm running this on a Pi Zero with the saxi version 0.15.0 installed via npm)

@jedahan
Copy link
Contributor

jedahan commented Aug 9, 2023

I am not observing this behavior - sounds dumb but could you share an SVG that does this and I can try it out?

@lostPixels
Copy link

Currently experiencing this on two Axidraws. It never used to happen. Please let me know if I can help with debugging info.

@judbd
Copy link

judbd commented Dec 11, 2023

I have this behavior on my Axidraw SE/A3 too.

@morozgrafix
Copy link

Just installed it on Raspberry Pi and confirming that pen goes down at the end of the plot.

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

No branches or pull requests

5 participants