Skip to content

Commit

Permalink
Create a profile for AxiDrawBrushlessFast
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrudd2 committed Sep 26, 2023
1 parent cfc0466 commit 138f2fd
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions src/planning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,6 @@ export const Axidraw: Device = {

stepsPerMm: 5,

// Practical min/max that you might ever want the pen servo to go on the AxiDraw (v2)
// Units: 83ns resolution pwm output.
// Defaults: penup at 12000 (1ms), pendown at 16000 (1.33ms).
penServoMin: 7500, // pen down
penServoMax: 28000, // pen up
Expand All @@ -132,17 +130,21 @@ const AxidrawBrushless: Device = {
}
};

const penDownProfile = {
acceleration: 200 * Axidraw.stepsPerMm,
maximumVelocity: 50 * Axidraw.stepsPerMm,
corneringFactor: 0.127 * Axidraw.stepsPerMm
};

const penUpProfile = {
acceleration: 400 * Axidraw.stepsPerMm,
maximumVelocity: 200 * Axidraw.stepsPerMm,
corneringFactor: 0
};

export const AxidrawFast: ToolingProfile = {
penDownProfile: {
acceleration: 200 * Axidraw.stepsPerMm,
maximumVelocity: 50 * Axidraw.stepsPerMm,
corneringFactor: 0.127 * Axidraw.stepsPerMm
},
penUpProfile: {
acceleration: 400 * Axidraw.stepsPerMm,
maximumVelocity: 200 * Axidraw.stepsPerMm,
corneringFactor: 0
},
penDownProfile,
penUpProfile,
penUpPos: Axidraw.penPctToPos(50),
penDownPos: Axidraw.penPctToPos(60),
penDropDuration: 0.12,
Expand Down

0 comments on commit 138f2fd

Please sign in to comment.