aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* config: add configuration for Creality Ender 2Arksine2018-06-271-0/+86
| | | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* display: add M117 "show message" supportArksine2018-06-271-2/+42
| | | | | | | | | | When M117 is followed by an empty string, the display will reset to Klipper's default. Internal modules may look up the display and directly call set_message(), with a timeout if desired. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* display: M73 UpdatesArksine2018-06-271-17/+50
| | | | | | | | | - Add M73 support for HD44780 - Include HD44780 USB and SD glyphs to differentiate progress type - Fix bug that prevented M73 from updated when virtual_sd is enabled - Add 5 second timeout to reset display when not Printing Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* gpiocmds: Add update_digital_out commandKevin O'Connor2018-06-271-0/+15
| | | | | | | Add a command that can immediately set the value of a digital output pin created with config_digital_out. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* avr: Don't set SS high on spi_init()Kevin O'Connor2018-06-271-1/+3
| | | | | | | | | | The AVR requires that the SS pin be an output pin for correct SPI operation. Some boards use the SS pin to control devices separate from SPI, however. Don't change the output level if the pin is already an output, and prefer setting it low if it is not already an output pin. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pru: Disable ADC reading directly from the PRUKevin O'Connor2018-06-273-6/+9
| | | | | | | | The PRU code size has grown too close to the maximum - remove the ADC code to reduce its overall size. (On the beaglebone, the Linux process can, and typically does, do the ADC reading.) Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* toolhead: Disable all extruder motors on a motor_off()Kevin O'Connor2018-06-231-1/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lcd_st7920: Use a longer delay at the start of each command/dataKevin O'Connor2018-06-224-22/+33
| | | | | | | | | | | It appears the st7920 requires a longer delay when switching from command to data mode (and vice-versa). Slower MCUs don't show a problem because the klipper command processing time results in a sufficient delay. However, some of the faster MCUs can process klipper commands fast enough that the next st7920 transfer is sent too fast. Add an additional delay to account for this. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* delta: Don't peak into PrinterRail class from get_calibrate_params()Kevin O'Connor2018-06-221-3/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* probe: Rename get_position() callback to get_probed_position()Kevin O'Connor2018-06-224-4/+4
| | | | | | | The different uses of get_position() can be confusing, so choose a different name for the ProbePointsHelper callback. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* mathutil: Move trilateration code from delta.py to mathutil.pyKevin O'Connor2018-06-222-58/+67
| | | | | | | Move the trilateration algorithm to mathutil.py. It may be useful outside of delta kinematics, and it complicates the delta code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* delta: Remove the unnecessary StepList constantKevin O'Connor2018-06-221-5/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* corexy: Remove the unnecessary StepList constantKevin O'Connor2018-06-221-5/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* cartesian: Remove the unnecessary StepList constantKevin O'Connor2018-06-221-8/+6
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* itersolve: Support setting the stepper position via a cartesian coordinateKevin O'Connor2018-06-229-29/+34
| | | | | | | | | Add support for an itersolve_set_position() function that sets a stepper position from a cartesian coordinate. This eliminates the need for both the python and C code to be able to translate from a cartesian coordinate to a stepper position. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* delta: Rename get_position() to calc_position()Kevin O'Connor2018-06-228-12/+12
| | | | | | | | Calculating the cartesian position from the stepper positions can be complex and cpu intensive, so rename it to calc_position() to be more descriptive. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* probe: No need to call kin.get_position() to report positionKevin O'Connor2018-06-221-4/+3
| | | | | | | | After a probe operation, homing_move() will already have recalculated the toolhead position. The get_position() method can be slow, so use the already calculated position. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stepper: Replace PrinterHomingStepper with PrinterRailKevin O'Connor2018-06-227-194/+200
| | | | | | | | Update the code to use the term "rail" when dealing with a motor controlled "axis". A rail has a series of steppers and endstops that control that motor controlled "axis". Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stepper: Add a get_homing_info() method to PrinterHomingStepperKevin O'Connor2018-06-224-32/+43
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stepper: Add a get_range() method to PrinterHomingStepperKevin O'Connor2018-06-223-10/+11
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stepper: Don't peak into PrinterStepper membersKevin O'Connor2018-06-227-24/+26
| | | | | | | Add additional wrapper functions so that no outside callers need to peak into the member variables of PrinterStepper. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stepper: Add a is_stepper_enabled() method to PrinterStepperKevin O'Connor2018-06-224-3/+5
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stepper: Don't store step_dist in PrinterStepperKevin O'Connor2018-06-222-12/+16
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stepper: Add a get_name() method to PrinterStepperKevin O'Connor2018-06-223-12/+16
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stepper: No need to pass printer reference to kinematic/stepper constructorsKevin O'Connor2018-06-226-45/+40
| | | | | | The config reference already stores a reference to the printer object. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Add generic config for Re-Arm (LPC1768)AxMod 3D Print2018-06-211-0/+100
| | | Signed-off-by: Ax Smith-Laffin (ax@darknetweb.co.uk)
* display: Allow the ST7920_DISPLAY parameter to be configuredKevin O'Connor2018-06-212-1/+6
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* docs: Update documentation with iterative solver changesKevin O'Connor2018-06-208-891/+100
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* itersolve: Move tracking of commanded position to itersolve codeKevin O'Connor2018-06-203-20/+23
| | | | | | | Track the commanded position in just the itersolve.c code instead of in mcu.py. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* kin_cartesian: Remove stepcompress_push_const()Kevin O'Connor2018-06-206-154/+6
| | | | | | | All the kinematic code now uses the iterative solver to generate steps. Remove the old stepcompress_push_const() mechanism. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stepper_buzz: Convert to iterative solverKevin O'Connor2018-06-202-2/+20
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* extruder: Convert to using iterative solverKevin O'Connor2018-06-205-74/+104
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* cartesian: Convert cartesian kinematics to use the iterative solverKevin O'Connor2018-06-201-30/+18
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* corexy: Convert corexy to use the iterative solverKevin O'Connor2018-06-205-42/+138
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* delta: Convert delta kinematics to use iterative solverKevin O'Connor2018-06-205-188/+60
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* itersolve: Add kinematic iterative solver codeKevin O'Connor2018-06-205-4/+315
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stepcompress: Allow stepcompress_alloc() to be called earlyKevin O'Connor2018-06-204-22/+30
| | | | | | Don't require an mcu connection to allocate the stepcompress object. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* chelper: Move cartesian and delta kinematics code to their own C filesKevin O'Connor2018-06-205-254/+327
| | | | | | | Move the cartesian and delta specific code to new files kin_cartesian.c and kin_delta.c. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* chelper: Compile with gcc -fwhole-program optionKevin O'Connor2018-06-204-33/+34
| | | | | | | Use the -fwhole-program option when compiling the host C code. This makes it easier to support inlining across C files. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* chelper: Add compiler.h headerKevin O'Connor2018-06-203-7/+49
| | | | | | | Add the compiler.h header file to the chelper code - this adds a number of useful gcc definitions. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stepper_buzz: Move STEPPER_BUZZ command from stepper.py to new fileKevin O'Connor2018-06-202-28/+49
| | | | | | | Add a klippy/extras/stepper_buzz.py file to handle the STEPPER_BUZZ command. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* klippy: try_load_module() should return the module loadedKevin O'Connor2018-06-201-2/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* scripts: Add installation script for CentOS (#367)pyr0ball2018-06-191-0/+101
| | | | | | The purpose of this PR is to add an installation script to klipper for use on Centos. Several packages names are different from debian based installs, and the system service is handled via systemd rather than LSB. Signed-off-by: Alan Weinstock <pyroballpcs@gmail.com>
* temperature_fan: Fix issue 403 use max_speedDouglas Hammond2018-06-191-1/+1
| | | Signed-off-by Douglas Hammond <wizhippo@gmail.com>
* config: anet e10 updateOli2018-06-191-2/+2
| | | Signed-off-by: Zsolt Olah <beer.olius@gmail.com>
* test: Try to cache gcc arm download during travis-ci buildsKevin O'Connor2018-06-182-2/+14
| | | | | | | The gcc arm download sometimes fails - try to cache it within the travis-ci system to prevent that. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lpc176x: Build with LCD supportKevin O'Connor2018-06-181-0/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* test_klippy: Default to only showing log information on an errorKevin O'Connor2018-06-171-11/+27
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* scripts: Add additional explicit dependencies to install-octopi.shKevin O'Connor2018-06-171-1/+2
| | | | | | | | Add virtualenv, build-essential, gcc-arm-none-eabi, and binutils-arm-none-eabi packages - just in case they aren't already installed. Reported by @AxMod3DPrint. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* test: Add a dual_carriage test caseKevin O'Connor2018-06-172-0/+145
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>