Int ToDoList // Queue future events in an integer array executed when PriorityList is empty. Int SubsequentWaitTime = -1 //How long the following movement will take. Int NextMoveTime //Time we are allowed to begin the next movement (i.e., when the current move will be complete). Int lastPosition // Record last encoded position for drawing Int MotorLocatorX // Position of motor locator Int val // Data received from the serial port Serial myPort // Create object from Serial class int ServoWash // Brush DOWN position, native units Int ServoPaint // Brush DOWN position, native units. Int ServoUp // Brush UP position, native units Int yBrushRestPositionPixels = yMotorOffsetPixels Int xBrushRestPositionPixels = 18 // Brush rest position, in pixels Int xMotorOffsetPixels = 0 // Corrections to initial motor position w.r.t. Int xMotorPaperOffset = 1400 // For 1/8 steps Use 2900 for 1/16? float MotorStepsPerPixel = 16.75 // For use with 1/16 stepsįloat MotorStepsPerPixel = 8.36 // Good for 1/8 steps- standard behavior. String BackgroundImageName = "background.png" PImage imgBackground // Stores background data image only. Offscreen buffer images for holding drawn elements, makes redrawing MUCH faster int minDist = 4 // Minimum drag distance to record Int ServoWashPct = 20 // Brush DOWN position for washing brush, % (higher number lifts higher). Int ServoPaintPct = 30 // Brush DOWN position, % (higher number lifts higher). Int ServoUpPct = 70 // Brush UP position, % (higher number lifts higher). Really raw axidraw controller (code taken from RobotpaintRT)įloat MotorSpeed = 1500.0 // Steps per second, 1500 default To do that, I found a code on the Internet where I could “control” AxiDraw… import de.looksgood.ani.* For example, let’s take a snake pattern, the robot goes along the x-axis (solely), then when it has reached his maximal value (let’s say 21cm), it goes on the y-axis for 3cm, then goes back to the x-axis and so on. I need help on a project about making an AxiDraw v3 robot (painting robot in short) move following a pattern that I will create. Just want to precise first that I’m not a native English speaker so please be merciful with me if you spot grammar mistakes or anything…
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |