388 Commits (541165e8786b63e6864c47738977d5ea61b294f6)

Author SHA1 Message Date
Scott Lahteine e88575c8ec Init next_auto_fan_check_ms to zero 8 years ago
Scott Lahteine b63d70b186 Fix serial output for MBL, M303 8 years ago
Scott Lahteine b7b5b50a84 Throw bed min temp error only if heating 8 years ago
Scott Lahteine d3ba878f70 Drop intermediate float in HEATER_0_USES_MAX6675 test 8 years ago
Scott Lahteine 3e8f9ecd1c Extend min/max_temp_error for the bed 8 years ago
AnHardt aa9b52b2e7 MISO is an input 8 years ago
AnHardt 9ab94bd2c1 fix-babysrepping 8 years ago
Scott Lahteine 63fd1f49a6 PID_EXTRUSION_SCALING, disabled by default 8 years ago
AnHardt e4942d2163 Switch SD2cadrLib to fastio
Replace all fastDigitalRead/Write() with READ/WRITE()

Define SCK_PIN, MISO_PIN, MOSI_PIN in pins.h if not already defined in the pins_*.h files.

Remove these conditional pin definitions from the pin-files. They are now always defined.

Define separate sets of SPI-pins for AT90USB with and without Teensy support in fastio.h.
Likely this was the main reason for all that confusion about the AT90USB-SPI pins.
8 years ago
Scott Lahteine 2d378fac1b No need to include thermistortables.h in Configuration.h 8 years ago
Scott Lahteine d8f2876753 Replace some float division with multiplication 8 years ago
Scott Lahteine f8b5749235 Replace division in planner with multiplication 8 years ago
João Brázio 3ebad4e020 Moves all global enums to a central file 8 years ago
esenapaj c2c8ab4698 Follow-up the PR #4278 (Fixups for PID_ADD_EXTRUSION_RATE and HOTENDS==1) 8 years ago
Scott Lahteine cdd77d23bb Neaten up temperature member data 8 years ago
Scott Lahteine d4c68279c8 Add "P" parameter to M302 8 years ago
Scott Lahteine 11dcbae7a2 Only a single E axis. Can tool-change reseed position[E_AXIS]? 8 years ago
Scott Lahteine 182c8d7f8f Dyze High Temp Thermistor Support 8 years ago
Scott Lahteine ee0983ab57 Further reduction when HOTENDS == 1 8 years ago
Scott Lahteine b72238f406 Invariant get_pid_output with HOTENDS < 2 8 years ago
AnHardt a129078927 Add an emergency-command parser to MarlinSerial (supporting M108)
Add an emergency-command parser to MarlinSerial's RX interrupt.

The parser tries to find and execute M108,M112,M410 before the commands disappear in the RX-buffer.

To avoid false positives for M117, comments and commands followed by filenames (M23, M28, M30, M32, M33) are filtered.

This enables Marlin to receive and react on the Emergency command at all times - regardless of whether the buffers are full or not. It remains to convince hosts to send the commands. To inform the hosts about the new feature a new entry in the M115-report was made. "`EMERGENCY_CODES:M112,M108,M410;`".

The parser is fast. It only ever needs two switch decisions and one assignment of the new state for every character.

One problem remains. If the host has sent an incomplete line before sending an emergency command the emergency command could be omitted when the parser is in `state_IGNORE`.
In that case the host should send "\ncommand\n"

Also introduces M108 to break the waiting for the heaters in M109, M190 and M303.

Rename `cancel_heatup` to `wait_for_heatup` to better see the purpose.
8 years ago
Scott Lahteine bd491818d6 Reduce storage requirements for strings, make some PGM 9 years ago
Scott Lahteine 7b2fadd598 Apply some fixes from Andreas
Derived from
https://github.com/AnHardt/Marlin/commit/6e8ede8c694fa4d9e3c769840b09d56
7f8d8e0dd
9 years ago
Scott Lahteine dcb8ec32ee Fix compile error with watch_bed_next_ms 9 years ago
Scott Lahteine ee5be92206 Fix broken DISABLE_HEATER macro 9 years ago
Scott Lahteine e2d4919c01 Merge pull request #3991 from thinkyhead/rc_axis_units
Rename some vars to clarify their relationship to acceleration
9 years ago
Scott Lahteine 72c6f2923f axis_steps_per_unit => axis_steps_per_mm 9 years ago
Scott Lahteine 3c68be79dc Throw an error in PID_autotune for E < -1 9 years ago
Scott Lahteine cd441ce652 SINGLENOZZLE: EXTRUDERS versus HOTENDS 9 years ago
Scott Lahteine 3fd9b331f0 Merge pull request #3924 from thinkyhead/rc_statics_temperature
Apply static to Temperature class
9 years ago
Scott Lahteine 78fb02a5ad Apply static to Temperature class 9 years ago
Scott Lahteine fad7680605 Slower SPI speed for MAX31855 9 years ago
Scott Lahteine 0c7c45063b PID_ADD_EXTRUSION_RATE based on MarlinKimbra 9 years ago
Scott Lahteine 8218558953 Update comments, rename next_ping_ms, followup to #3797 9 years ago
Scott Lahteine 58339aea5f Merge pull request #3769 from jbrazio/bugfix/iteration-invokes-undef-behavior
Bugfix: iteration invokes undefined behavior
9 years ago
Scott Lahteine 2f14934c65 Fix checkExtruderAutoFans
Make sure to only set the fan state once when extruders share a fan
9 years ago
João Brázio ecd490ed49
Bugfix: iteration invokes undefined behavior 9 years ago
Scott Lahteine 4d6bb52b26 Don't try to enable unused auto fans
Addressing #3743
9 years ago
Scott Lahteine 9b92bb8f31 Set the initial state based on target temperature 9 years ago
Scott Lahteine 6b13c430ae The TRReset state is not needed with fall-through 9 years ago
Scott Lahteine c2522ce1f5 Fallthru in thermal runaway test when TRState changes 9 years ago
esenapaj 9186be7b83 Fix compilation error in debugging code
Fix compilation error in Thermal Runaway debugging code
9 years ago
Scott Lahteine 084f6b5b44 Temperature singleton class 9 years ago
Scott Lahteine 85e732d5fd Fix BABYSTEPPING, add it to Travis test 9 years ago
Scott Lahteine 60c6efb75c Merge pull request #3653 from thinkyhead/rc_bed_temp_watch_merge
Introduce temp watch protection for the bed
9 years ago
gralco 908229dbb3 Introduce temp watch protection for the bed
When setting the bed temp via M140/M190 if the thermistor does not read an increase of WATCH_BED_TEMP_INCREASE degrees by WATCH_BED_TEMP_PERIOD seconds then it will throw "Error:Heating failed, system stopped! Heater_ID: bed" and call the kill() function.

Conflicts:
	Marlin/Configuration_adv.h
9 years ago
Scott Lahteine 96f51f400f Planner singleton class 9 years ago
Scott Lahteine 5e4e535ce8 Stepper and Endstops as singleton objects 9 years ago
Scott Lahteine 3db5a75f30 Merge pull request #3568 from thinkyhead/rc_various_fixes
General code cleanup, improved naming, etc.
9 years ago
Scott Lahteine 8a2587f017 Read size for MAX6675 from sizeof(max6675_temp) 9 years ago
Scott Lahteine ba84d8d091 Allow setting PIDTEMP and PIDTEMPBED together or apart 9 years ago
Scott Lahteine a26d70e932 Apply indentation to gcode_M303, PID_autotune 9 years ago
Scott Lahteine ba66336503 Output error for disabled M303 9 years ago
Scott Lahteine 8429ae6beb Merge pull request #3525 from thinkyhead/rc_fix_pid_params_per_extruder
Fix broken PID_PARAMS_PER_EXTRUDER
9 years ago
Scott Lahteine d4a848c72a Fix broken PID_PARAMS_PER_EXTRUDER
As noted by @FalloutBe in #3519
9 years ago
esenapaj 832e1c1f2a Follow-up and fix for the PR #3453(ELAPSED / PENDING for rollover-safe time checking)
・Add more "UL" suffix
・Restore removed "UL" suffix
9 years ago
Scott Lahteine c5a8755cc0 Fix a messed up ELAPSED instance 9 years ago
Scott Lahteine 386140f361 Test time difference in safe way 9 years ago
Scott Lahteine d7cbb2eec9 Merge pull request #3403 from jbrazio/feature/stopwatch
Print job timer rework
9 years ago
Scott Lahteine 865dcf3fb4 Fix FILAMENT_WIDTH_SENSOR measurement
Only measure and store filament width when E is going forward.
9 years ago
João Brázio eb61051556 Rework the print job timer to use the stopwatch class 9 years ago
Scott Lahteine d24f14a799 Add HAS_TEMP_HOTEND define 9 years ago
Scott Lahteine 1a79b13b7a FILAMENT_SENSOR -> FILAMENT_WIDTH_SENSOR 9 years ago
Scott Lahteine ab412a2153 PIDTEMPBED on #endif 9 years ago
Scott Lahteine 5955a3063f Sanity check PIDTEMPBED plus BED_LIMIT_SWITCHING 9 years ago
Scott Lahteine 0da744b7b0 Further cleanup of comments, partial Doxygen-style
Following up on #3231
9 years ago
jbrazio 5e5d250832 Added gplv3 header to all Marlin files 9 years ago
Scott Lahteine 04fa9d4f47 Make Autotune options into Menu Edit Items 9 years ago
WPBack e3f583a3be Fixes for PID AutoTune from menu
Fixes for #3189

Setting a temp is still missing
9 years ago
WPBack 3b3e8a02b5 Initial implementation of PID Autotune Menu Items
Adds the parameter U to M303. If U1 is included , it will use the
PID-values from the auto-tune.
9 years ago
Scott Lahteine 06332f20be Merge pull request #3113 from jbrazio/bugfix/3061-stop-print-time-counter
Stop print timer with M105/M109
9 years ago
Scott Lahteine 4bbea5124d Support for multiple PWM fans 9 years ago
Scott Lahteine 2ef49a9d53 Wrap DEFAULT_Ki, DEFAULT_Kd, PID_dT
Addition to #3140
9 years ago
Scott Lahteine 1c384930f3 Merge pull request #3140 from thinkyhead/rc_fix_macro_expansion
Wrap macros to prevent bad expansions
9 years ago
Scott Lahteine 30c3a21d1f Merge pull request #3112 from thinkyhead/rc_support_MAX31855 9 years ago
Scott Lahteine f9ded2a7c4 Wrap macros to prevent bad expansions 9 years ago
jbrazio a645860431 All print timer related activity now uses print_job_start(), print_job_timer() or print_job_stop() 9 years ago
Scott Lahteine 81aab828e2 Fix a "Heating failed" error
Addressing #3085. If the target_temperature is set directly it never invokes or disables the timer set in `start_watching_heater`, so after _stopping a print_ or turning off _all heaters_ you could get a “Heating failed” error.
9 years ago
Scott Lahteine 27f244ba2c Support MAX31855 as Temperature Sensor -3 9 years ago
jbrazio 986b508ff7 Print timer now stops when it sees the last extruder temperature being shutdown 9 years ago
Scott Lahteine ff13070b59 Use _BV macros, patch up others 9 years ago
Scott Lahteine 209f5f21e0 Use macros where possible
Apply `constrain`, `NOMORE`, `NOLESS` and `CRITICAL_SECTION` macros
wherever possible.
9 years ago
Scott Lahteine 3a3d358df9 Fix Printrboard with LCD (redo)
Based on #2860 - rebased for RCBugFix
9 years ago
Blue-Marlin 0631541166 Fix disable_all_heaters() for MAX6675 9 years ago
AnHardt 57da1b8497 Host parseble output for M109, M190 and M303
Make the output of M105 more similar to Repetier.
Make the text-print pert of M105 an extra function to make it reusable. `print_heaterstates()`
Use `print_heaterstates()` in M019, M190 and M303
9 years ago
Richard Wackerbarth 956418c674 Kc is also a multi-PID parameter 9 years ago
Scott Lahteine dbd4c17096 Init Kp, Ki, Kd to 0 9 years ago
Scott Lahteine b4af4441c5 Clean up watchdog impl. 9 years ago
Scott Lahteine 9bdab4f3a8 Clean up "else" and other spacing 9 years ago
Richard Wackerbarth 25d636c9e0 Compiler issues (PR#2696) 9 years ago
AnHardt 47401ec97b MSG_EXTRUDER_SWITCHED_OFF was renamed to MSG_REDUNDANCY
in language.h, but was not renamed here. If TEMP_SENSOR_1 is enabled as redundant then
an error is thrown that MSG_EXTRUDER_SWITCHED_OFF is not defined.

Originaly by @12dstring
9 years ago
Scott Lahteine 0c7f7ebcfb Styling adjustments (PR#2668 & PR#2670)
Keep "astyled" reformatting
9 years ago
Scott Lahteine bc50db9cf6 Implement PID_ADD_EXTRUSION_RATE 9 years ago
Scott Lahteine 51e89a269c Overridable Options - Part 9 (PR#2561)
Apply `ENABLED` / `DISABLED` macros to temperature-related files.
9 years ago
AnHardt d17f7ebc8a Multiply WATCH_TEMP_PERIOD by 1000UL (PR#2535)
instead of 1000.  Else we get errors with times over 32 seconds.
9 years ago
Scott Lahteine e4c01f1c7e Simplify init with ARRAY_BY_EXTRUDERS1 macro (PR#2507) 9 years ago
Scott Lahteine 77e80ef367 Require extruders for thermal code 9 years ago
Scott Lahteine 3bde4f4855 Require temp sensor for bed thermal protection 9 years ago
ayberkozgur 7268d46508 Always calculate extruder temperature PID d term (PR#2432) 9 years ago
Scott Lahteine a274769f4f Clean up spacing and comments
Also clean up some trailing spaces in a few other sources
10 years ago