Commits on Dec 13, 2011
  1. Configuration samples: don't use preprocessor math for STEPS_PER_M.

    Since the introduction of STEPS_PER_M instead of STEPS_PER_MM
    it's no longer allowed. Unfortunately.
    Traumflug committed Dec 13, 2011
Commits on Dec 6, 2011
  1. home.c: fix a typo.

    Traumflug committed Dec 6, 2011
Commits on Dec 4, 2011
Commits on Nov 21, 2011
  1. timer.c: simplify clock counting a bit.

    Nothing fancy, but it saves 8 bytes, so likely 8 cycles.
    Traumflug committed Nov 16, 2011
  2. timer.c: get rid of explicitely disabling the step timer.

    This is no longer neccessary, as the step timer is not designed to
    fire always exactly once.
    Saves 54 bytes binary size.
    Traumflug committed Nov 17, 2011
  3. Get rid of defered enabling of the step interrupt again.

    This makes the code cleaner and the reduction of code
    probably easily compensates for keeping global interrupts
    enabled for a bit longer. Talked to macscifi about this.
    Saves about 300 bytes of binary size.
    Traumflug committed Nov 17, 2011
  4. dda.c: get rid of did_step.

    We want to stop stepping as there are no steps left, not one step later.
    Accordingly, we get rid of a small pause between two movements and
    also have to decelerate one step earlier.
    Traumflug committed Nov 16, 2011
Commits on Nov 17, 2011
  1. dda.c: also reset startpoint_steps.E on relative extruder movements.

    Thanks to bgamari for identifying this bug.
    Traumflug committed Nov 12, 2011
  2. Store distances in the TARGET strucure in micrometers for all axes.

    This extends the previous commit from X to Y, Z and E.
    Traumflug committed Oct 14, 2011
  3. Store distances in the TARGET structure always in micrometers.

    This is a intrusive patch and for now, it's done for the X axis only.
    To make comparison with the former approach easier ...
    The advantages of this change:
    - Converting from mm to steps in gcode_parse.c and back in dda.c
      wastes cycles and accuracy.
    - In dda.c, UM_PER_STEP simply goes away, so distance calculations
      work now with STEPS_PER_MM > 500 just fine. 1/16 microstepping
      on threaded rods (Z axis) becomes possible.
    - Distance calculations (feedrate, acceleration, ...) become much
    - A wide range of STEPS_PER_M can now be handled at reasonable
      (4 decimal digit) accuracy with a simple macro. Formerly,
      we were limited to 500 steps/mm, now we can do 4'096 steps/mm
      and could easily raise this another digit.
    - STEPS_PER_MM is gone in config.h, using STEPS_PER_M is required,
      because the preprocessor refuses to compare numbers with decimal
      points in them.
    - The DDA has to store the position in steps anyways to avoid
      rounding errors.
    Traumflug committed May 17, 2011
Commits on Nov 12, 2011
  1. Clean up default thermistor tables, analog to config.default.h.

    Most likely, these tables don't depend on the type of electronics,
    but on the type of thermistor.
    Traumflug committed Nov 12, 2011
  2. Move ThermistorTable.h out of the repository.

    Having this available immediately is nice, having this table
    overwritten with each update is a lot worse, though.
    Traumflug committed Nov 12, 2011
Commits on Nov 7, 2011
  1. Deleted the "endstop" branch.

    This is an empty commit just to notify interested parties.
    All the interesting bits formerly in the endstop branch
    can be found also in the "newdda" branch.
    Traumflug committed Nov 7, 2011
Commits on Oct 28, 2011
  1. Add the missing E_INVERT_ENABLE to the config templates.

    Catch by brnrd, thanks.
    Traumflug committed Oct 28, 2011
  2. config.ramps-1.2.h: invert X/Y/Z enable pins by default.

    Suggestion by brnrd, thanks.
    Traumflug committed Oct 28, 2011
  3. home.c: catch by brnrd: inconsistency with Z_MIN_PIN and Z_MAX_PIN.

    If both were defined, it was different from handling of X and Y.
    Thanks, brnrd.
    Traumflug committed Oct 28, 2011
  4. home.c: catched by brnrd: two missing &.

    Thanks, brnrd.
    Traumflug committed Oct 28, 2011
Commits on Oct 23, 2011
  1. dda.c: reset ramping after an endstop stop.

    As the new homing code ramps up, but not down, we have to reset
    move_state.c before starting the next move.
    Traumflug committed Oct 8, 2011
  2. Update current_position only as needed.

    This saves almost 200 bytes and 100 runs of
    update_current_position() per second.
    Traumflug committed Oct 7, 2011
  3. home.c: make queueing home movements while the machine is running work

    current_position is the position at the start of the queue,
    startpoint is the position at the end of the queue and we add
    at the end, obviously.
    Traumflug committed Oct 6, 2011
  4. Rename config.h.dist to something with a .h suffix.

    This eases working with colouring text editors and is more
    consistent with all those board-specific configs.
    Traumflug committed Oct 5, 2011
  5. home.c: remove now obsolete power-on stuff.

    This went obsolete, as homing movements are enqueued now.
    Traumflug committed Oct 5, 2011
  6. Rework endstop homing.

    The DDA is now used for motion control.
    Note from Traumflug: thanks a lot for this excellent patch, Ben.
    bgamari committed with Traumflug Sep 16, 2011
Commits on Oct 5, 2011
  1. Picked up Sanguinololu config files from the RepRap forum.

    Contribution by Sublime, many thanks.
    Traumflug committed Oct 3, 2011
  2. Config: don't enable soft axis limits by default.

    This is confusing for newbies when their host of choice tries
    to move into negative space.
    You know ...
    "Just installed Teacup and it's trash, because motors don't move!"
    Traumflug committed Aug 13, 2011

    No functional change, just match the naming of single stepper
    enable pins.
    Traumflug committed Jul 24, 2011
  4. Clean up enable pin handling.

    This includes:
    - Initialize them in mendel.c.
    - While running, switch the pin only.
    - Sort mendel.c the same order as in pinio.h.
    - Remove the requirement of a parameter for this flag, like
      it's with all other flags.
    Traumflug committed Jul 24, 2011