85 Commits (4d5566a6b720d9cfde0073d55e551625144983fe)

Author SHA1 Message Date
Scott Lahteine d89d8fe852 Fix Busy State in temperature.cpp
Fix #11954
6 years ago
Scott Lahteine e4389f7d23
Standard methods to wait for heating (#11949) 6 years ago
Scott Lahteine 1718eff54a Code changes supporting up to 6 extruders 6 years ago
Scott Lahteine b220a825a7 Fix raw_filwidth_value error 6 years ago
AnHardt 530a13ab6c [2.0.x] SECURITYFIX missing max temp error when PID is used (#11717) 6 years ago
Dave Johnson c64199941e Compile only selected PIO environment (#11519) 6 years ago
Andy Shaw 624986d423 Ensure ADC conversion is complete before reading (#11336)
The current Marlin implementation relies on a timer interrupt to start the ADC conversion and read it. However in some circumstances the interrupt can be delayed resulting in insufficient time being available for the ADC conversion. This results in a bad reading and false temperature fluctuations. These changes make sure that the conversion is complete (by checking the ADC hardware via the HAL) before reading a value.

See: https://github.com/MarlinFirmware/Marlin/issues/11323
7 years ago
Scott Lahteine 22ebbc091f Tweak some SoftPWM code 7 years ago
etagle 1367df2875 Replace double with float, optimize calculation 7 years ago
Scott Lahteine 3fd1f32b73 Fix ADC key and chamber temp 7 years ago
Scott Lahteine 3701869e6c Add HAL_timer_start for AVR, use stepper timer to time pulses 7 years ago
Scott Lahteine 853a9056ac Long thermistor tables need special consideration 7 years ago
Scott Lahteine 1ce97f1f6d
Faster (bisect) search in thermistor tables (#10883) 7 years ago
Bob Kuhn d557c84a71 [2.0.x] Error for FAST_PWM_FAN with 32 bit CPU (#10798) 7 years ago
etagle 569df3fc0c Fix interrupt-based endstop detection
- Also implemented real endstop reading on interrupt.
7 years ago
etagle a11eb50a3e Refactor and optimize Stepper/Planner
Better encapsulation and considerably reduce stepper jitter
7 years ago
etagle 0566badcef Add memory barrier, optimal interrupt on-off
Disabling an ISR on ARM has 3 instructions of latency. A Memory barrier is REQUIRED to ensure proper and predictable disabling. Memory barriers are expensive, so avoid disabling if already disabled (See https://mcuoneclipse.com/2015/10/16/nvic-disabling-interrupts-on-arm-cortex-m-and-the-need-for-a-memory-barrier-instruction/)
7 years ago
Giuliano e1d9046efc [2.0.x] Temperature reading fix (#10774) 7 years ago
Scott Lahteine 99ecdf59af Smarter MIN, MAX, ABS macros
Use macros that explicitly avoid double-evaluation and can be used for any datatype, replacing `min`, `max`, `abs`, `fabs`, `labs`, and `FABS`.

Co-Authored-By: ejtagle <ejtagle@hotmail.com>
7 years ago
Scott Lahteine 083ec9963e Tweaks to heater / lcd conditions 7 years ago
Scott Lahteine 8f8c6a9bc4
Move get_axis_position_mm to Planner (#10718) 7 years ago
Scott Lahteine a1062eec5b
Better handling of DELAY_NS and DELAY_US (#10716)
Co-Authored-By: ejtagle <ejtagle@hotmail.com>
7 years ago
Scott Lahteine f5aaa2d6c0 Fix some compiler warnings 7 years ago
Scott Lahteine 625035a9ce
Fix M301 access to lpq_len (#10714)
Co-Authored-By: Zwaubel
7 years ago
Scott Lahteine 325bbbc8c2
[2.0.x] Enable AD595 and AD8495 in concert (#10693)
* Allow both AD595 and AD8495 in concert
* General temperature code tweaks
7 years ago
Scott Lahteine 81b632c255 Additional temp-oriented improvements 7 years ago
nightdemonx e911635fb1 Add thermocouple with AD8495 support 7 years ago
Scott Lahteine 5ac226aa93 Further cleanup of inline delays 7 years ago
Chris Pepper 2242b98248 [LPC176x] Emergency Parser Feature (#10516) 7 years ago
Scott Lahteine 9789c1c719 Fix current_temperature_chamber compile error
Fix #10505
7 years ago
Eduardo José Tagle 0c428a66d9 Proper AVR preemptive interrupt handling (#10496)
Also simplify logic on all ARM-based interrupts. Now, it is REQUIRED to properly configure interrupt priority. USART should have highest priority, followed by Stepper, and then all others.
7 years ago
Scott Lahteine cb46cb8480
Add HAS_HEATED_BED conditional (#10495) 7 years ago
Lenbok 0e8242180d Chamber temperature monitoring and auto fan control.
This is an initial cut for feedback, updated for 2.0.x.

Chamber temperature is currently reported along with hot end and bed
temperatures to serial. The format is just like that used for hot end
and bed temperatures, but using 'C' prefix. As there is no heater,
target is always 0. Is this appropriate, is there a better way to report
chamber temperatures?

Chamber temperatures are not reported on the LCD in any way.

When auto chamber fan is enabled, it currently just uses the same
temperature threshold as the other auto controlled fans.

As the chamber temperature is not connected to any heater, it doesn't
undergo mintemp/maxtemp monitoring. This would need to change in the
future if chamber heating became a feature.
7 years ago
Scott Lahteine 1c36606886 Fix MSG_HEATING_FAILED_LCD_BED macro evaluation 7 years ago
Marcio Teixeira 8bc93c6f2b Improve heating/cooling LCD messages (#10293) 7 years ago
Karl Andersson 7cbbc2af7a [2.0.x] Optional heater signal inversion (#10260) 7 years ago
Eduardo José Tagle 97e8a6ebd9 Various fixes for DUE... (#10152)
- Watchdog reset during SD Card initialization.
- Move `DebugMonitor` to `DebugMonitor_Due.cpp`.
- Since the watchdog is enabled on boot do extra resets during init.
- Have `thermalManager` do watchdog reset before its ISR starts to prevent reset.
- Ensure that timers are stopped before reprogramming them to address tone issues.
- Improve SAM3XE reset when reflashed through the native port.
7 years ago
AnHardt 837ac2fdbd [2.0.x] Fix_Autotune_THERMAL_PROTECTION_BED_off (#10166)
- Fix Autotune Thermal Protection
- Make 2 constants in autotune configurable
7 years ago
Scott Lahteine c6ff39cc14 Spacing cleanup 7 years ago
Scott Lahteine ffbf63e6af Add HAS_TEMP_SENSOR conditional 7 years ago
Scott Lahteine 649f375494
Fix: M112 calling kill from interrupt (#9923)
Fix #9906
7 years ago
Scott Lahteine 83d7e95de0
Add MSG_THERMAL_RUNAWAY_BED (#9691) 7 years ago
Scott Lahteine e698998343 More reliable PROBING_HEATERS_OFF with BED_LIMIT_SWITCHING 7 years ago
Scott Lahteine b5e92f4f90
[2.0.x] Enable / disable PSU automatically (#9503) 7 years ago
Scott Lahteine 2bea1bda56 Move more strings to PROGMEM 7 years ago
Scott Lahteine 750cc02b3a
Use delay() in serial temp report 7 years ago
Scott Lahteine a408209d24 More reliable temperature serial report? 7 years ago
Thomas Moore f7efac57b7 Multi-host support 7 years ago
revilor 0e93506985 Fix for issue #9005, #8942 - Bed PID autotuning (#9036) 7 years ago
Scott Lahteine 4af3d436b2 M303 pid autotune cleanup, commentary 7 years ago