D.R.racer
6c9c1423c6
Remove temporary changes from SdBaseFile.h
2021-01-28 09:42:50 +01:00
D.R.racer
71d825d0f2
Return SdBaseFile into previous state
...
no changes necessary afterall
2021-01-28 09:41:30 +01:00
D.R.racer
7279de7403
Separate reading G-code files and writing to a file
...
- extract common strings
- cleanup openFileWrite and openFileReadFilteredGcode formatting a bit
Alltogether - code size 400B down
2021-01-28 09:37:58 +01:00
D.R.racer
c05b625b1c
Fix occasionally skipped valid G-code lines
...
which also allowed for removal of the pre-increment -> post-increment
workaround
2021-01-28 08:13:16 +01:00
D.R.racer
d1fd5a555f
Clean up gfReset()
2021-01-27 14:12:11 +01:00
D.R.racer
b2cf5b7b6c
Fix seekSetFilteredGcode()
...
+some more debug code which will vanish after all is done and verified
2021-01-27 13:01:25 +01:00
D.R.racer
b6c59e08ac
Workaround ++gfCacheP into postincrement ld r22, Z+
...
TODO: ideally improve the automaton to work with postincrement only, at
least in this case.
2021-01-27 09:52:20 +01:00
D.R.racer
d275fe0e83
Extract gcode filter from SdBaseFile into SdFile + optimization
...
- Start saving instructions as the whole PR was >1KB long.
- It turned out the compiler was unable to understand the core skipping
cycle and an ASM version had to be used.
- Add seekSet aware of the G-code filter
2021-01-27 09:33:28 +01:00
D.R.racer
c3758d350e
Fast skipping of large comment blocks
...
This is an extension/optimization of PR #2956 .
It uses the cached 512B block buffer to avoid heavy-weight read() in SdBaseFile.
Even though this principle allowed the AVR to skip ~600KB of data within ~5 seconds,
the impact on code base is huge, especially into well proven and long-term stable
parts like reading a file from the SD card.
The sole purpose of this PR is to show/verify the possibility of the AVR CPU
in relation to adding thumbnails into MK3 G-codes.
Moreover, this PR shall not be merged unless the missing/commented features
are restored - especially file seeking and M84 search.
PFW-1175
2021-01-27 07:03:51 +01:00
D.R.racer
dcc6605809
Workaround for skipping large comment blocks
...
If there are large blocks of comments in the G-code,
the printer may get shot down by its own watchdog.
Watchdog is generally set to 4s and updated only
in manage_heaters (and some other spots in some specific cases).
So far, the code reading the file and feeding it into Marlin
cycles indefinitely until it finds valid G-code lines and fills up the
command queue.
If the block is large enough, the printer cannot read it completely
within those 4s.
A simple workaround - bail out after some consecutive empty/comment
lines to enable other parts of code do their job (especially
manage_heaters).
Tested on MK404, previous FW fails with 600KB of comment lines at the
beginning, this patch survives. The printer even draws some update
on its status screen before starting a real print.
2021-01-27 07:03:51 +01:00
Yuri D'Elia
a9625747db
Reinstate the nop instruction as delay in non-DEDGE
...
When TMC2130_MINIMUM_PULSE is 0 a minimum delay is implied.
In this case, use a single "nop" instruction.
2021-01-26 19:43:29 +01:00
Yuri D'Elia
d3734b02cc
Also fix delay instances inside unused BACKLASH_[XY]
2021-01-26 16:18:23 +01:00
Yuri D'Elia
b17cdcd4d7
Ensure MINIMUM_PULSE is always 0 in DEDGE mode
...
This ensures delays are always properly elided without having to check
for DEDGE all over the place.
2021-01-26 16:12:59 +01:00
Yuri D'Elia
2a6989ecd5
Remove TMC2130 special-cases
...
With the new STEPPER_MINIMUM_DELAY being automatically removed for
TMC2130 we no longer need to add specialized #ifdefs for DEDGE in
babystep.
2021-01-26 16:09:23 +01:00
Yuri D'Elia
4fed728e08
Elide delayMicroseconds for TMC2130 in non-DEDGE mode
...
Introduce new macros TMC2130_MINIMUM_DELAY/STEPPER_MINIMUM_DELAY for
blocking pauses.
If MINIMUM_PULSE has defined to be zero, avoid the delay call entirely.
2021-01-26 16:02:53 +01:00
3d-gussner
f40c593d11
Fix few translations not being used due to spaces or upper case
2021-01-26 14:15:34 +01:00
D.R.racer
c28e5a9dbc
Farmer's request 2
...
Farmers request having the Change filament menu item always visible in
the main menu and located after the Live Adjust Z (which disappears
after the first few printed layers).
2021-01-26 12:19:41 +01:00
DRracer
bfe93d3959
Merge pull request #2951 from DRracer/pvb-08
...
Add PVB preheat and 0.8mm nozzle presets
2021-01-26 12:09:41 +01:00
3d-gussner
ad5d068690
Update char lengths part 1
...
Fix some too long translations
2021-01-26 12:09:35 +01:00
DRracer
891f37a622
Merge pull request #2982 from DRracer/codesize
...
Reduce code size and RAM usage
2021-01-26 12:04:39 +01:00
3d-gussner
c555907a12
Remove duplicate string `G-code sliced for a different printer type. Please re-slice the model again. Print cancelled.` using `MSG_GCODE_DIFF_PRINTER_CANCELLED`
2021-01-26 11:01:50 +01:00
3d-gussner
51d1e0bd8a
Remove duplicate string `G-code sliced for a different printer type. Continue?` using `MSG_GCODE_DIFF_PRINTER_CONTINUE`
2021-01-26 10:42:56 +01:00
3d-gussner
7916f8b9e8
Merge branch 'codesize' of https://github.com/DRracer/Prusa-Firmware into DRracer_codesize
2021-01-26 10:13:11 +01:00
D.R.racer
0eb7261e29
Save ~100B on menu implementation
2021-01-26 09:29:17 +01:00
3d-gussner
ba8386573a
Remove duplicate string `Resume print` using `MSG_RESUME_PRINT`
2021-01-26 09:23:55 +01:00
3d-gussner
c6a01b3806
Remove duplicate string `Reset` using `MSG_RESET`
2021-01-26 09:15:46 +01:00
3d-gussner
ab5aad636f
Remove duplicate string `Mesh Bed Leveling` and `Mesh bed leveling` using `MSG_MESH_BED_LEVELING`
...
Fixed few too long translations
2021-01-26 09:05:38 +01:00
DRracer
f4cee7ce84
Merge pull request #2983 from leptun/MK3_fix_sm4.h_line_ending
...
Fix sm4.h line ending
2021-01-26 08:45:07 +01:00
DRracer
bce9f8c949
Merge pull request #2984 from leptun/MK3_Serial_LF_only
...
Do not send CR on the serial line
2021-01-26 08:42:47 +01:00
DRracer
c465417f50
Merge pull request #2987 from leptun/PFW-1144-LongPathName
...
"M20 L" support. Print long filenames
2021-01-26 08:40:26 +01:00
3d-gussner
84ed0725f2
Merge branch 'codesize' of https://github.com/DRracer/Prusa-Firmware into DRracer_codesize
2021-01-26 08:32:03 +01:00
3d-gussner
bce8501eea
Remove duplicate string `Extruder` using `MSG_Extruder`
2021-01-26 08:31:21 +01:00
Voinea Dragos
c6588193ad
Fix some more stuff in cardreader.cpp
...
Saved 4B of flash and 60B of RAM
2021-01-26 09:25:41 +02:00
3d-gussner
ab18a3ccc3
Merge branch 'codesize' of https://github.com/DRracer/Prusa-Firmware into DRracer_codesize
2021-01-26 08:24:11 +01:00
3d-gussner
530b9f50b8
Remove duplicate string `Eject filament` using `MSG_EJECT_FILAMENT`
...
Fix few translations
2021-01-26 08:22:08 +01:00
D.R.racer
348902240e
Fix code_seen_P("fv") broken by one of the merges
2021-01-26 08:02:33 +01:00
3d-gussner
269fabc330
Remove duplicate string `Cut filament` using `MSG_CUT_FILAMENT`
2021-01-26 07:15:46 +01:00
3d-gussner
797d8e74a3
Remove duplicate string `Checking X axis` and `Checking Y axis` using `MSG_CHECKING_X` and `MSG_CHECKING_Y`
2021-01-26 07:10:57 +01:00
3d-gussner
2d1e1e4cee
Remove duplicate string `Fans check` using `MSG_FANS_CHECK`
2021-01-25 20:13:12 +01:00
3d-gussner
d117a299f7
Remove duplicate string `Fil. runouts ` using `MSG_FIL_RUNOUTS`
2021-01-25 20:04:18 +01:00
3d-gussner
10bbd64b41
Remove duplicate string `Crash` using `MSG_CRASH`
...
Better Italian translation, thanks to @wavexx
Fix Polish translation as it was too long for the menue and caused LCD issues.
2021-01-25 18:53:53 +01:00
3d-gussner
4878db7365
Remove duplicate string `Last print failures` using `MSG_LAST_PRINT_FAILURES`
...
Fix too long translations in Spanish and Italian for this message
2021-01-25 18:38:35 +01:00
3d-gussner
99867c8fbd
Remove duplicate string `Total failures` using `MSG_TOTAL_FAILURES`
2021-01-25 18:06:47 +01:00
3d-gussner
8f0a45e8a4
Remove duplicate string `Steel sheets` and `Total` using `MSG_STEEL_SHEETS` and `MSG_TOTAL`
2021-01-25 17:58:51 +01:00
3d-gussner
7222cf05cf
Remove duplicate string `MMU Fails` and `MMU Load Fails` using `MSG_MMU_FAILS` and `MSG_MMU_LOAD_FAILS`
2021-01-25 17:38:36 +01:00
3d-gussner
fbb3fad64b
Remove duplicate string `Last print` using `MSG_LAST_PRINT`
2021-01-25 16:54:26 +01:00
3d-gussner
7891d12a32
Remove duplicate string `Is filament loaded?` using `MSG_FILAMENT_LOADED`
2021-01-25 16:44:55 +01:00
3d-gussner
223f32deae
Remove duplicate string `HW Setup" using `MSG_HW_SETUP`
2021-01-25 16:15:57 +01:00
3d-gussner
5c1da227fe
Merge branch 'codesize' of https://github.com/DRracer/Prusa-Firmware into DRracer_codesize
2021-01-25 16:00:46 +01:00
3d-gussner
377a59c624
Remove duplicate string `Belt status`
2021-01-25 15:53:31 +01:00
D.R.racer
d8917a304a
Reuse lcd_space() instead of in-place printing of spaces in a cycle
...
Saves another ~40B
2021-01-25 15:21:25 +01:00
D.R.racer
783e4bbaf9
Add lcd_putc_at (code down >150B), refactor lcd_selftest_screen_step
...
(RAM down 10B)
2021-01-25 14:58:57 +01:00
DRracer
3975415490
Merge branch 'MK3' into codesize
2021-01-25 12:43:30 +01:00
DRracer
58351fb27a
Merge pull request #2977 from DRracer/farm-patch1
...
Farmers' requests
2021-01-25 11:15:44 +01:00
D.R.racer
514321f2ce
Remove farm_no completely + reuse prusa_stat_farm_number() where
...
applicable
2021-01-25 11:09:28 +01:00
Voinea Dragos
2b3729125d
Prevent wdt reset during file listing
2021-01-25 11:46:51 +02:00
D.R.racer
c1ff6242b0
Avoid copying FW version number into RAM - use the PROGMEM string
2021-01-25 09:03:04 +01:00
Voinea Dragos
4f769f0faa
PRUSA RESET safety precaution
2021-01-25 09:58:12 +02:00
Voinea Dragos
9fa9d6b063
Move farm strings to PROGMEM
2021-01-25 09:48:17 +02:00
D.R.racer
6a62674bd8
Keep PRUSA RESET available even in non-farm mode
2021-01-25 08:43:37 +01:00
D.R.racer
98a4da571d
Merge branch 'farm-patch1' of github.com:DRracer/Prusa-Firmware into farm-patch1
2021-01-25 08:39:20 +01:00
D.R.racer
9bfada94f0
Remove commented code
2021-01-25 08:38:44 +01:00
Voinea Dragos
e8e4aabfdb
Add gcode documentation
2021-01-22 21:07:14 +02:00
Voinea Dragos
31a6270f69
Abuse \n in lcd printing instead of constantly calling other functions
...
"other functions" being lcd_set_cursor and lcd_print(char). Saves 100B of flash
2021-01-22 20:12:11 +02:00
Voinea Dragos
4d3f056b81
Fix factory reset menu rendering
2021-01-22 20:07:27 +02:00
Voinea Dragos
37c431abd9
another lcd_puts_at_P
2021-01-22 19:44:46 +02:00
D.R.racer
3ccd1b2b2b
Refactor lcd_set_cursor + lcd_puts_P -> lcd_puts_at_P
...
saves considerable amount of flash
2021-01-22 18:34:47 +01:00
Voinea Dragos
bc7d36b6ff
Fix sm4.h line ending
2021-01-22 18:57:24 +02:00
Voinea Dragos
da21916473
Change printf_P without format arguments and NL to puts_P only
2021-01-22 18:56:05 +02:00
D.R.racer
9b34789398
Cleanup reset_menu()
2021-01-22 17:54:44 +01:00
D.R.racer
90d22a376d
Remove unused vars in xyzcal.cpp
2021-01-22 17:50:08 +01:00
D.R.racer
2780a03967
Improve duplicate_Tcode_ignored
...
kudos to @leptun
2021-01-22 17:47:44 +01:00
D.R.racer
3dc85b319c
Marlin_main.cpp hacks
...
- code_seen("string") -> code_seen_P(PSTR("string")) saved >100B of RAM!
- serial print "." -> '.' saved some code
- extract commonly used string
- SERIAL_PROTOCOLLN("") -> SERIAL_PROTOCOLLN() as no argument is
necessary
2021-01-22 17:15:36 +01:00
D.R.racer
4dec171266
Reduce code by 104 bytes in xyzcal.cpp
...
Extract CLAMP_median into a non-inline function.
The extra instructions to call that function do not matter from the
speed perspective
2021-01-22 17:13:28 +01:00
D.R.racer
c710253cca
Code cleanup and size reduction and RAM optimization
...
Replase single character strings with single characters when calling
lcd_print
2021-01-22 17:11:51 +01:00
Voinea Dragos
9fda6b774d
Do not send CR on the serial line
2021-01-22 17:58:01 +02:00
DRracer
f809691003
Merge pull request #2968 from espr14/PFW-1186
...
Calibration: reduce code size PFW-1186
2021-01-22 14:05:13 +01:00
DRracer
eceb7b4e5f
Merge pull request #2981 from 3d-gussner/PFW-1140-2
...
PFW-1140 Add fan speed and position auto report
2021-01-22 13:00:23 +01:00
DRracer
defbaa6ff8
Merge branch 'MK3' into PFW-1186
2021-01-22 12:46:25 +01:00
DRracer
4c952a0a9c
Merge pull request #2962 from espr14/PFW-1178
...
Calibration: code cleaning PFW-1178
2021-01-22 12:41:24 +01:00
3d-gussner
008c6a2590
Remove defines
2021-01-22 12:26:29 +01:00
DRracer
ab59449b7c
Merge pull request #2961 from espr14/PFW-1179
...
Calibration: print skew results PFW-1179
2021-01-22 12:24:52 +01:00
DRracer
85f2c29dfe
Merge pull request #2960 from espr14/PFW-1169-3
...
Calibration: more accelerations, fix scan, more robust circle search PFW-1169
2021-01-22 12:20:35 +01:00
3d-gussner
ede3f34051
Documentation
2021-01-22 10:40:29 +01:00
Voinea Dragos
ced3d9fa77
"M20 L" support. Print long filenames
2021-01-22 11:13:44 +02:00
D.R.racer
31951fe8c9
Code refactoring
...
Motivation:
- save some RAM joining the autoreport flags into 1 byte
- encapsulate the magic of setting bit masks/features into a class with
a stable public interface
2021-01-20 11:46:25 +01:00
Voinea Dragos
70d254a1fc
Allow resetting when not in farm mode
2021-01-19 13:39:21 +02:00
Voinea Dragos
48b4bdfe8e
Make the PRUSA RESET command functional on the miniRambo
2021-01-19 13:36:08 +02:00
Voinea Dragos
542677c080
Prevent switching to serial port 1 on miniRambo and such
2021-01-19 13:11:48 +02:00
Voinea Dragos
9b847715ac
Rename F0 to FRM on the status screen
2021-01-19 13:11:25 +02:00
Voinea Dragos
3f5cfc4e61
Move the change filament button to the main menu when farm printing
...
PFW-945
2021-01-19 13:06:23 +02:00
D.R.racer
a9d8ddc89c
Farmers' requests 1
...
- remove the UI and related stuff to setting a farm number (the
communication protocol must remain intact)
- remove confirmation after print finished ("Print OK")
Both requests are highly welcome, since they allow for lowering the code
size by >1KB
PFW-963, PFW-927
2021-01-19 09:58:02 +01:00
3d-gussner
9264454d3a
Gcode `M123` only if FANCHECK and TACHOs are defined
...
Gcode `M155` added parameter "C" to activate auto-report for temperatures, fans and positions
Updated doxygen
@todo Update RepRap Wiki
@todo improve code
2021-01-19 09:01:46 +01:00
espr14
735895c6bc
Use fabs
2021-01-14 16:38:34 +01:00
espr14
ca4e638ea2
Don't use extrusion in XYZ calibration
2021-01-14 13:19:30 +01:00
Alex Voinea
20c3f4cb77
Update comments
2021-01-14 12:53:12 +02:00
Voinea Dragos
dea3f23a69
PRUSA SN in eeprom
2021-01-14 11:52:22 +02:00
espr14
9867ecd3f9
Reduce unnecessary code
2021-01-13 13:59:20 +01:00
espr14
21d6f970ef
Fix build
2021-01-12 16:26:46 +01:00
espr14
f3faf651c5
Move down before scanning
2021-01-12 16:12:34 +01:00
espr14
9dceb488b6
Revert double scanning
2021-01-12 16:04:04 +01:00
espr14
546812294e
Clean serial output
2021-01-12 00:34:28 +01:00
espr14
d7507649d8
Remove degree char
2021-01-12 00:28:46 +01:00
espr14
180af46fe4
Try double height
2021-01-12 00:27:06 +01:00
espr14
333526f65d
Single skew output
2021-01-11 23:14:12 +01:00
espr14
e6e44fe188
Convert to degrees
2021-01-11 23:13:08 +01:00
espr14
b8443b00ad
Reverse reverse
2021-01-11 22:18:50 +01:00
espr14
09892bec52
Reverse
2021-01-11 18:46:56 +01:00
Yuri D'Elia
78f8f1e8f9
Remove stray serial newlines in fsensor autoload messages
2021-01-11 18:31:36 +01:00
espr14
211e5f5f37
Define DBG output
2021-01-11 17:31:26 +01:00
espr14
904a23b69e
Report calibration results
2021-01-11 17:02:41 +01:00
espr14
2e40a27460
Alignment, comments
2021-01-11 15:40:12 +01:00
DRracer
4728bf2182
Merge pull request #2875 from wavexx/raise_while_preheating
...
Raise Z while preheating when auto/[un]loading the filament
2021-01-11 07:45:54 +01:00
DRracer
1a6b6fb491
Merge pull request #1776 from wavexx/unused_tmc_defines
...
Remove an unused define
2021-01-11 07:43:44 +01:00
DRracer
ef51652e39
Merge pull request #1758 from wavexx/disable_filament_checks_in_extr_menu
...
Disable filament checks inside the Move -> Extruder menu
2021-01-11 07:42:25 +01:00
3d-gussner
a064ce4722
Add gcode `M123` Tachometer value
2021-01-10 15:15:44 +01:00
D.R.racer
8a083c9970
Add PVB preheat and 0.8mm nozzle presets
...
minor features reflecting the latest announcement
Needs some 300B of CPU flash though, after 3.9.3 we need to optimize code
size again.
2021-01-08 13:52:39 +01:00
DRracer
5c3513a6cc
Merge pull request #2397 from odaki/flashair_display_ip
...
Show the FlashAir IP address
2021-01-08 12:20:12 +01:00
espr14
584177e8fd
Fix E mask
2021-01-08 10:24:36 +01:00
DRracer
f549ce690a
Merge pull request #2949 from prusa3d/MK3_3.9.3
...
Merge 3.9.3 back into MK3
2021-01-08 10:20:40 +01:00
3d-gussner
3329d34ce4
Fix doxygen issue with "^" and "|" only in one line
...
Doxygen 1.8.13 had no issues but newer doxygen version are failing
to build tables, if a line only consists of "^" and "|"
2021-01-08 09:40:13 +01:00
DRracer
0ed6b537a8
Merge branch 'MK3' into MK3_3.9.3
2021-01-07 13:27:51 +01:00
D.R.racer
603d704178
Version changed (3.9.3 build 3556)
2021-01-07 12:50:58 +01:00
3d-gussner
8a27b6abdb
Move Z up before xy home running xyz calibration
...
to prevent scratches on bed and sheet
2021-01-07 11:45:40 +01:00
espr14
2981b9e9c5
OctoPrint needs new lines
2021-01-04 14:59:12 +01:00
espr14
cc9e7b9376
Fix comments, remove unused
2021-01-04 13:01:06 +01:00
espr14
49d57ed621
Median dynamic circle
2020-12-30 17:02:31 +01:00
espr14
a9fd09ca3f
Implement median
2020-12-30 15:15:17 +01:00
espr14
13fefaa1bf
Fix typo
2020-12-30 15:01:32 +01:00
espr14
03b87ae68b
Add 8 pixel circle pattern
2020-12-30 13:08:47 +01:00
espr14
c14e725574
Fix moves
2020-12-29 18:27:33 +01:00
espr14
c2ab8785f4
Revert Manhattan
2020-12-29 17:31:34 +01:00
espr14
c1e6567461
Fix step axis coding
2020-12-29 17:17:32 +01:00
espr14
922769cefb
axis -> axes
2020-12-29 17:14:18 +01:00
espr14
a01dfe26fe
Add Manhattan movement
2020-12-29 17:13:11 +01:00
espr14
6461206e08
Fix direction setting
2020-12-29 14:19:05 +01:00
espr14
b6e78bf900
Fix direction
2020-12-29 14:08:30 +01:00
espr14
c11e8654da
Revert both directions, refactor code
2020-12-29 12:39:35 +01:00
espr14
e86ba5e26d
Scan only once
2020-12-28 16:45:39 +01:00
D.R.racer
7e02a7f118
Version changed (3.9.3-RC1 build 3555)
2020-12-26 15:45:34 +01:00
DRracer
d61cdf2b88
Merge pull request #2932 from espr14/PFW-1165-2
...
Calibration: Turn off speed optimization due to MK2.5 PFW-1165
2020-12-25 18:22:04 +01:00
espr14
80e32ce1a5
Turn off speed optimization due to MK2.5
2020-12-25 15:27:42 +01:00
3d-gussner
12f4102272
Group PINDA defines
2020-12-23 21:00:02 +01:00
3d-gussner
76eb743139
Set default SuperPINDA toggle on MK2.5/S to NO
2020-12-23 20:59:33 +01:00
3d-gussner
4b510fef0a
Add PINDA_TEMP_COMP variable to enable SuperPINDA toggle menu/function
2020-12-23 20:59:08 +01:00
3d-gussner
a97587f373
Changed PINDA_MINTEMP having own value
...
Prevent bad readings/issues if someone changes the bed thermistor that is "better" with lower min values and creates a custom firmware.
The firmware will now be in the range of the PINDAv2 thermistor independant from the bed thermistor (which may change and need adjustments)
2020-12-23 20:58:44 +01:00
3d-gussner
732b6e0cad
Cleanup
2020-12-23 20:58:20 +01:00
3d-gussner
62c36f718b
Add SuperPINDA support for MK2.5/S
...
- Changed DETECT_SUPERPINDA to SUPERPINDA_SUPPORT as on miniRAMo the thermistor readings below 30°C
aren't accurate egnough to determine if SUPERPINDA is connected or not
- Add LCD toggle menu Settings -> HW Setup -> SuperPINDA [Yes/No] to overwrite SuperPINDA detection
- If EEPROM_PINDA_TEMP_COMPENSTATION is empty = 0xff then detect SuperPINDA by checking thermistor
- If EEPROM_PINDA_TEMP_COMPENSTAION is 0 then forec enable for temperature compensation menues and functions
- If EEPROM_PINDA_TEMP_COMPENSATION is 1 then force disable for temperature compensation menues and functions
2020-12-23 20:56:50 +01:00
espr14
e6eb3be247
Set jerk = 1, accel. = 1000
2020-12-23 16:56:04 +01:00
espr14
979525f028
Add more restarts
2020-12-22 19:34:12 +01:00
espr14
25d138d198
Revert max.speed
2020-12-22 15:10:01 +01:00
espr14
e24a763e46
Cleanup
2020-12-22 14:45:55 +01:00
espr14
8df2eccf45
Remove defines and unused vars
2020-12-22 14:36:37 +01:00
espr14
25d6e24778
Add comments
2020-12-22 14:16:20 +01:00
espr14
90c8045f7d
Clean the code
2020-12-22 13:59:50 +01:00
espr14
20659ec818
Add debug output
2020-12-22 12:51:22 +01:00
espr14
c397e9249a
Restart scanning
2020-12-21 19:33:36 +01:00
espr14
1610c96fc4
Fix and report circle divergence
2020-12-21 18:05:52 +01:00
espr14
744763f0a9
Fix diagonal movement
2020-12-21 17:34:54 +01:00
espr14
de23a845b4
Remove unused
2020-12-21 15:53:51 +01:00
espr14
3c9168f8f6
Optimize diagonal
2020-12-21 15:52:25 +01:00
espr14
9a59369c77
Diagonal acceleration
2020-12-21 15:32:09 +01:00
espr14
27ff6b0057
Fix build
2020-12-21 13:11:48 +01:00
espr14
9b55ff9de1
Acceleration up and down
2020-12-21 13:05:26 +01:00
espr14
f39a0999e1
Prepare full acceleration control
2020-12-18 21:33:43 +01:00
espr14
ccf26e4e7a
Basic acceleration
2020-12-18 20:04:00 +01:00
espr14
a8f4207df9
New XYZ calibration algorithm
2020-12-17 18:19:36 +01:00
Alex Voinea
2ac106d9fe
Merge branch 'MK3' into MK3_random_patches
2020-11-30 09:14:58 +02:00
odaki
61c48df0bd
Merge remote-tracking branch 'upstream/MK3' into flashair_display_ip
2020-11-23 15:53:03 +09:00
Voinea Dragos
f96f75bd17
Fix warning and a bit of indentation
...
Saved 64B of flash and 1B of SRAM
2020-11-16 10:58:26 +02:00
Voinea Dragos
f3953d7c83
Merge branch 'MK3' into MK3_random_patches
2020-11-16 09:11:12 +02:00
odaki
c0070506fb
Merge branch 'MK3' into flashair_display_ip
2020-11-13 22:28:22 +09:00
DRracer
d013abfd52
Merge pull request #2890 from prusa3d/MK3_3.9.2
...
Merge MK3_3.9.2 into MK3
2020-11-13 13:03:35 +01:00
Alex Voinea
807eddafb0
Remove debugging code
2020-11-13 12:12:18 +02:00
Alex Voinea
43ace00a24
Fill the progress bar at the end and code optimizations
2020-11-12 18:43:48 +02:00
Alex Voinea
5ad125cbed
Merge branch 'MK3' into MK3_filecheck_progress_bar
2020-11-12 15:53:33 +02:00
D.R.racer
396ee0fde2
Version changed (3.9.2 build 3524)
2020-11-10 10:27:18 +01:00
Voinea Dragos
176e2674b9
Fix M105 ok hack
2020-11-09 21:49:56 +02:00
Voinea Dragos
023ccb0e89
Fix double ok in M603
2020-11-09 21:49:56 +02:00
Alex Voinea
0c305ee5f5
Fix warning
2020-11-09 21:49:56 +02:00
Alex Voinea
4abf1f436a
Gracefully dump the queue + fixes to fancheck
2020-11-09 21:49:56 +02:00
Alex Voinea
fdbbc7d62a
Terminate last line from the SD card even if it doesn't have a \n
2020-11-09 21:49:56 +02:00
Alex Voinea
ff56ece6f8
Remove redundant get_command prototype
2020-11-09 21:49:56 +02:00
Alex Voinea
5f0e4a1cac
Temporary M602 patch. Needs more work
2020-11-09 21:49:56 +02:00
Alex Voinea
6873a9d28e
Only send capabilities when M115 is run without arguments
2020-11-09 21:49:56 +02:00
Alex Voinea
0ee8e1f424
Fix missing ok in M601
2020-11-09 21:49:56 +02:00
Alex Voinea
e5ebf7c67f
Fix missing keep-alive messages
2020-11-09 21:49:56 +02:00
Alex Voinea
26f62f042e
Use the longest filename instead of just using the long filename in M27
2020-11-09 21:49:56 +02:00
D.R.racer
4747c8c9f5
Increase top Z-offset limit based on some test results
2020-11-09 12:29:19 +01:00
D.R.racer
5184910ef9
Try harder finding the calibration center
...
with alternative PINDAs it looks like their properties vary a lot
and searching for the calibration center requires trying different
Z levels.
2020-11-09 06:33:41 +01:00
D.R.racer
cd4e16ef9f
XYZ calibration tune
...
PFW-1159
2020-11-06 08:25:56 +01:00
Yuri D'Elia
f37f132ee4
Allow all microstep resolutions for all axes
2020-11-04 16:07:00 +01:00
Yuri D'Elia
e28159122f
Make MIN_Z_FOR_LOAD/UNLOAD the same
...
When unloading + preheat immediately followed by a load, the carriage is
raised first up to 20mm, then again to 50mm.
With PR #2318 it makes sense to make more space for the extra extrusion
anyway, so make them the same. This moves the carriage only once _while_
preheating, which is nice.
2020-10-29 15:30:16 +01:00
Yuri D'Elia
5f23474c95
Raise Z while preheating when auto/[un]loading the filament
...
Preheating already raised Z to avoid scorching the PEI sheet, as does
filament loading/unloading to allow for excess material to be removed.
However, when loading/autoloading/unloading via the LCD with a cold
nozzle the preheating menu is performed before the carriage is raised,
leaving the carriage close to the sheet while heating the nozzle.
Pre-raise the carriage already while waiting, so that the subsequent
move is automagically skipped.
Set bFilamentWaitingFlag only once to perform both the LCD
initialization and raising to the appropriate height.
Should fix #2761
2020-10-28 20:49:28 +01:00
DRracer
c05d4c9112
Update messages.h
...
cleanup space
2020-10-21 17:04:20 +02:00
MartinPoupa
a84d7ef8d6
corectino of declaration
2020-10-13 16:56:57 +02:00
MartinPoupa
c8c7563e8a
LCD status changed
...
When the lcd status changed it will be printed "LCD status changed" to serial line.
2020-10-07 17:44:17 +02:00
Yuri D'Elia
df824414ef
Fix probing in IR_SENSOR
2020-09-28 21:02:06 +02:00
Yuri D'Elia
c2e8d229a7
Be more compliant in the I2C protocol
...
- Enter a repeated-start for reading data
- Write in the same session
2020-09-28 20:21:07 +02:00
odaki
ebc987bd23
Merge branch 'MK3' into flashair_display_ip
2020-09-28 21:19:44 +09:00
Yuri D'Elia
384f40956c
Remove obsolete cbi/sbi
2020-09-27 16:42:20 +02:00
Yuri D'Elia
6d476d7144
Still use SWI2C on RAMBo10a boards
...
The wiring for the PAT9125 on RAMBo10a boards is not directly connected
to the SCL pin and requires the sw mode.
Detect this requirement by checking the definition for the SWI2C_SCL pin
in the board definition.
Remove SWI2C_SCL/SDA from the other boards to use the HW mode.
2020-09-27 14:29:07 +02:00
DRracer
134f841380
Merge pull request #2841 from leptun/MK3_SD_REMOVED_MESSAGE
...
SD card released message
2020-09-23 10:22:04 +02:00
DRracer
95e2e2f69c
Merge pull request #2832 from leptun/MK3_AUTO_REPORT_TEMPERATURES
...
Mk3 auto report temperatures
2020-09-23 08:51:26 +02:00
DRracer
ef0840f587
Merge pull request #2786 from leptun/MK3_M115_Capabilities_report
...
Printer Capabilities framework + Macros + Code cleanup
2020-09-23 08:37:03 +02:00
Alex Voinea
d9fa44c142
Document M155 command
2020-09-23 09:14:35 +03:00
DRracer
e24466f22e
Merge pull request #2837 from prusa3d/MK3_3.9.1
...
Merge MK3_3.9.1 into MK3
2020-09-22 10:43:59 +02:00
odaki
4c7100985e
Merge branch 'MK3_3.9.1' into flashair_display_ip
2020-09-22 11:59:05 +09:00
D.R.racer
7278458316
Version changed (3.9.1 build 3518)
2020-09-18 16:59:22 +02:00
3d-gussner
bd7bb5acb3
Update new messages and their translations ( #2835 )
...
* Add missing translations
* Add missing CZ and IT translations
* Update CZ, FR, IT, ES translations
CZ thanks to @DRracer
FR thanks to Carlin Dcustom
ES tried myself
IT thanks to @wavexx
Only missing is PL
* Improve wording +change keys
* Add missing PL translations
* Fix copy paste error in Italian
fix double translations
* Make PL translation shorter
* Fix some length issues and capital letters
* Fixed again translations length issues
updated po files
* Update FR translation - thanks @awenelo
* Fix execution of lang-check.py
- Make lang-check.py executable
- Execute directly instead of specifying the python interpreter manually
("python" is no longer available on Debian, and would default to
version 2 prior to that despite being written for python 3)
* Fix permissions of translation files
Co-authored-by: D.R.racer <drracer@drracer.eu>
Co-authored-by: Yuri D'Elia <wavexx@thregr.org>
2020-09-18 16:50:25 +02:00
Voinea Dragos
2f5083daa7
quickfix to mistake made in the experimental menu visibility code
...
Fix indentation
2020-09-15 18:56:39 +03:00
DRracer
9fb6efc435
Add newline at the end of file
2020-09-15 14:56:41 +02:00
Voinea Dragos
c0fced2f3c
Fix typo
2020-09-15 14:21:21 +03:00
Voinea Dragos
e2ef5af40e
Add capability line
2020-09-15 14:21:09 +03:00
Voinea Dragos
a1dfbffedb
Merge branch 'MK3_M115_Capabilities_report' into MK3_AUTO_REPORT_TEMPERATURES
2020-09-15 13:39:00 +03:00
Voinea Dragos
073eadff7e
Merge branch 'MK3' into MK3_AUTO_REPORT_TEMPERATURES
2020-09-15 13:38:47 +03:00
DRracer
3093c8c7f6
Merge pull request #2829 from wavexx/la10_15_readjust
...
Re-adjust LA10->15 conversion
2020-09-15 11:59:07 +02:00
Alex Voinea
6bc59197ad
Merge branch 'MK3' into MK3_NEW_SD_COMPILATION
2020-09-12 08:28:13 +03:00
Alex Voinea
c158259970
Remove unused where C++ alternative can be used
2020-09-11 20:04:06 +03:00
Alex Voinea
44b1b1c219
More macros
2020-09-11 18:48:44 +03:00
Alex Voinea
c3abd4ffe6
Remove io_atmega2560.h and some more macros
2020-09-11 17:43:38 +03:00
Alex Voinea
eb007c35d2
Macros initial
2020-09-11 16:12:49 +03:00
Alex Voinea
160af0a624
Printer capabilities
2020-09-11 16:11:28 +03:00
3d-gussner
fef5b02010
Tag as community contribution
2020-09-09 12:34:25 +02:00
3d-gussner
4d3aa1b59a
Merge remote-tracking branch 'upstream/MK3' into MK3_Dutch
...
Merge upstream/MK3
Fix conflicts
update Dutch translation
2020-09-09 11:37:35 +02:00
DRracer
f145769e98
Merge pull request #2807 from leptun/MK3_Polling
...
M220 M221 polling of values
2020-09-09 10:25:36 +02:00
DRracer
763d2d9849
Merge pull request #2806 from leptun/MK3_PRUSA_SN
...
Make the serial number available to the user
2020-09-09 09:54:29 +02:00
DRracer
a0420c7928
Merge pull request #2619 from 3d-gussner/MK3_G21
...
Add dummy G21 to prevent UNKOWN warnings in serial
2020-09-09 09:22:07 +02:00
DRracer
b82ee3fc06
Merge pull request #2811 from leptun/MK3_fastio_timer_patch
...
Fix fastio extra parenthesis
2020-09-09 08:57:37 +02:00
DRracer
a2db9e8f6b
Merge pull request #2585 from leptun/MK3_FEEDRATE
...
🐛 ♻️ Update the feedrate percentage before drawing the screen
2020-09-09 08:56:46 +02:00
Yuri D'Elia
26e900896a
Re-adjust LA10->15 conversion
...
After fixing some LA15 issues, the strenght of LA15 increased.
As such, re-adjust the conversion factor so that:
Start K10 => 0.01 (previous minimum was K15)
PLA K30 => 0.05 (was 0.07, optimal 0.045-0.06)
PETG K45 => 0.08 (was 0.13, optimal 0.07-0.11 depending on material/temp)
2020-09-07 21:44:34 +02:00
Alex Voinea
7ac16d5f04
Menu view return patch
2020-09-07 19:42:53 +03:00
D.R.racer
02891f6bb8
Version changed (3.9.1-RC1 build 3512)
2020-09-02 11:56:53 +02:00
Alex Voinea
3e7bba54e0
SD card released message
2020-08-28 17:32:07 +03:00
Yuri D'Elia
e37cdab38f
PAT9125_I2C: accept either NACK or ACK in receive
...
Both would be technically correct.
2020-08-25 12:15:55 +02:00
Yuri D'Elia
d8a8837938
Document the 3 possible modes
2020-08-25 11:32:05 +02:00
Alex Voinea
1659f61dd5
Fix fastio extra parenthesis
2020-08-21 10:51:46 +03:00
Yuri D'Elia
30e7b777e0
Error-out with PAT9125_SWSPI (not fully implemented)
...
.. and likely will never was/be.
2020-08-20 22:13:13 +02:00
Yuri D'Elia
7f425120f0
Strip down the TWI code
...
- Only implement a single syncronous read/write function to read a byte,
since that's all we need currently
- Implement a compact IR_SENSOR probe for PAT9125
- Saves 242 bytes compared to PAT9125_SWI2C
2020-08-20 22:13:04 +02:00
DRracer
772844678f
Merge pull request #2809 from leptun/PFW-1134-ALTFAN_KILLSWITCH
...
Pfw 1134
2020-08-20 15:42:03 +02:00
Yuri D'Elia
240dc1132e
Include initial implementation based on Arduino's twi
2020-08-20 15:34:46 +02:00
Yuri D'Elia
502bc8c72d
Isolate more pat9125 code
...
Remove probing from Marlin_main and move it into pat9125_probe so that
it can support the various variants.
2020-08-20 15:34:46 +02:00
3d-gussner
90c36a5887
Update ALTFAN eeprom documentation
...
EEPROM_ALTFAN_OVERRIDE and EEPROM_EXPERIMENTAL_VISIBILITY are compared to 0xFF in the code that's why I keep the uint8.
2020-08-20 15:14:39 +02:00
Alex Voinea
2c2926882a
Don't switch unnecessarily. Also "\n" the ";S" request
2020-08-18 19:29:18 +03:00
Alex Voinea
8d9dc73d1b
Fix compile error
...
fix compile
Fix compile error
2020-08-12 17:25:49 +03:00
Alex Voinea
5530b99882
Reboot after factory reset
2020-08-12 12:46:35 +03:00
Alex Voinea
6b853a4cc3
Auto-detect ALTFAN after fw. update
2020-08-12 12:19:08 +03:00
Alex Voinea
96435ad084
Move experimental menu to HW setup
2020-08-12 08:48:12 +03:00
DRracer
008d3b0e65
Merge pull request #2792 from wavexx/MK3_fix_high_speed_deceleration
...
Mk3 fix high speed deceleration
2020-08-06 13:27:52 +02:00
DRracer
89ecf2ce3a
Merge pull request #2791 from wavexx/stack_protect_reentrant_isr
...
Fix stack smashing in temperature/fsensor ISR
2020-08-06 13:26:33 +02:00
DRracer
d0eca4d5c4
Merge pull request #2794 from leptun/PFW-1134-ALTFAN_KILLSWITCH
...
Minor documentation fixes to altfan PR
2020-08-06 12:53:34 +02:00
Alex Voinea
f1a8657093
Minor documentation fixes
...
Add even more comments
a
2020-08-06 12:20:38 +03:00
DRracer
22a8c18551
Merge pull request #2784 from leptun/PFW-1134-ALTFAN_KILLSWITCH
...
altfan killswitch
2020-08-06 08:15:42 +02:00
Yuri D'Elia
b3af08d94a
Fix stack smashing in temperature/fsensor ISR
...
The temperature and fsensor ISR re-enable interrupts while executing.
However, we still need to protect the epilogue of the ISR so that
the saved return address is not altered while returning.
We hoist the body of the function out of the isr in both cases for
clarity (and to avoid a stray return bypassing the lock/cli), so that
the re-entrant portion is clearly indicated.
This should fix the "STATIC MEMORY OVERWRITTEN" error messages randomly
happening when stepping at high frequency (where either isr is
preempted more frequently).
2020-08-05 17:47:46 +02:00
DRracer
f1bde1a039
Merge pull request #2724 from wavexx/max_ambient
...
Implement MIN/MAX AMBIENT safety checks
2020-08-05 08:52:55 +02:00
Yuri D'Elia
a2c7dcbbf8
Fix indentation
2020-08-04 13:14:35 +02:00
Alex Voinea
654a3a0d79
Other requested changes
2020-08-04 10:43:30 +03:00
Alex Voinea
e0bf92cd4e
Change bool literal to int
2020-08-04 09:54:57 +03:00
Yuri D'Elia
b8e8f182ca
Add reference C implementations for MultiU16X8toH16/MultiU24X24toH16
...
Higher step counts might still overflow the ASM MultiU24X24toH16.
e4595fa24a
2020-08-03 19:03:13 +02:00
Yuri D'Elia
30a806608f
Also convert acceleration_rate to uint32_t
...
acceleration_rate is also unsigned
2020-08-03 19:01:38 +02:00
Yuri D'Elia
aebaca5cdc
Correct comments regarding acceleration ramp
...
Backport fixes from upstream Marlin
2020-08-03 18:53:13 +02:00
Yuri D'Elia
8108d50b59
Reintroduce/fix check for step_rate underflow during deceleration
...
Check for negative results and results under the final_rate
2020-08-03 18:53:13 +02:00
Yuri D'Elia
4654283f54
Restore indentation
2020-08-03 18:16:20 +02:00
Alex Voinea
12be141188
Fix high speed deceleration
2020-08-03 18:16:13 +02:00
Yuri D'Elia
a8ce9358e5
Avoid redundant temperature error strings
...
Factor-out MIN/MAXTEMP [BED/AMB] out of the error message, which is now
built at runtime instead.
Introduce two missing ultralcd functions lcd_setalertstatus and
lcd_updatestatus to handle regular strings.
246272 -> 246084 = 188 bytes saved
2020-08-01 17:47:42 +02:00
Yuri D'Elia
e1c79c342d
Re-introduce redundant disable_heaters() calls
...
Partially revert 285b505c73a54e9af01816e3a614de73ad181851 so that
we ensure heaters are disabled ASAP in case of potential bugs
in the max_*_error functions.
2020-08-01 17:47:20 +02:00
Yuri D'Elia
a60ed81a35
Implement MIN/MAX AMBIENT safety checks
...
Take advantage of the NTC thermistor found on the Einsy as an additional
safety measure, following the steps of the other MIN/MAXTEMP errors.
Introduce two configurable params AMBIENT_MINTEMP and AMBIENT_MAXTEMP
in the variant defines and set them for the MK3/MK3S to -30/+100
respectively.
AMBIENT_MINTEMP is primarily intended to catch a defective board
thermistor (to ensure MAXTEMP would be properly triggered) and thus the
trigger temperature is set just above the sensing limit and well below
the operating range.
AMBIENT_MAXTEMP is set at 100C, which is instead 20C above the maximum
recommended operating temperature of the Einsy. The NTC thermistor is
located just above the main power connector on the bottom of the board,
and could also help in detecting a faulty connection which can result in
rapid overheating of the contacts.
As for MAXTEMP, we cut power to the heaters, print fan and motors to
reduce power draw. Resume is not possible except by resetting the
printer, since the user is highly advised to inspect the board for
problems before attempting to continue.
2020-08-01 17:38:10 +02:00
Yuri D'Elia
3336db7954
Add some important notes about thermistor ADC handling
2020-08-01 17:36:43 +02:00
Yuri D'Elia
65f25b0d7e
Remove redundant disable_heater() calls in max/min_temp handling
...
In max/min_temp handlers remove the redundant disable_heater() call.
Handlers already need to call Stop(), which will disable all heaters
as the first step.
Fix comments in order to mention that all heaters get disabled.
Use "MAX/MINTEMP BED" correctly in both the LCD and serial.
2020-08-01 17:36:43 +02:00
Yuri D'Elia
942fca5b66
Remove useless assignment
...
target_temperature_bed is already reset by disable_heaters() in Stop()
2020-08-01 17:36:43 +02:00
Yuri D'Elia
87bc5a78b6
Remove bogus comment (BED_MINTEMP *is* implemented)
2020-08-01 17:36:43 +02:00
Yuri D'Elia
feafc5e5ab
Alternative schedule for LA ticks
...
Remove most of the original complexity from advance_spread.
Instead of accumulating time to be scheduled, plan ahead of time each
eISR tick using the next main interval + an accumulator (eISR_Err),
which keeps everything much simpler.
The distribution of the advance ticks is now using the real LA
frequency, which leaves a bit more time between the last LA tick and
the main stepper isr.
We take advantage of the accumulator to force a LA tick right after the
first main tick, which removes a +/- 1 scheduling error at higher step
rates.
When decompressing, we force 2 steps instead, so that the direction
reversal happens immediately (first tick zeros esteps, second inverts
the sign), removing another +/- 1 error at higher step rates.
2020-07-29 19:14:48 +02:00
Alex Voinea
773c6997ef
Add comments
2020-07-29 17:36:03 +03:00
Alex Voinea
ec6a20971e
Add experimental menu to HW_setup
2020-07-29 11:23:24 +03:00
Alex Voinea
d8fbd46cd2
M155
2020-07-23 17:28:25 +03:00
Alex Voinea
e2856ba4f5
Make the serial number available to the user
2020-07-21 12:52:04 +03:00
Alex Voinea
a95feb56d9
ALTFAN override
2020-07-20 19:35:25 +03:00
Yuri D'Elia
a08ca19ade
Make flow correction optional, disabled by default
...
If you're using flow to correct for an incorrect source diameter, which
is probably the main usage when using the LCD, then LA shouldn't be
adjusted.
It's still unclear what the effect of M221 in gcode should be regarding
overall extrusion width. If M221 means "thicker lines", then LA should
also be adjusted accordingly.
This stems from the fact that the source diameter/length needs to be
known in order to determine a compression factor which is independent of
the extrusion width, but the FW only ever sees one value currently (the
extrusion length) which combines both.
This makes it impossible for the FW to adjust for one OR the other
scenario, depending on what you expect for M221 to mean.
2020-07-20 14:33:45 +02:00
Yuri D'Elia
9b8f642b28
Account for flow adjustments in LA
...
The e/D ratio should be calculated using the extrusion length.
As such, purify the e_D_ratio from the current extruder multiplier in
order to account correctly for flow adjustments.
2020-07-19 17:41:38 +02:00
Yuri D'Elia
c54474f2db
Guard against planning/numerical errors in short segments
...
Turns out for high-res curved models the numerical error and the
SLOWDOWN handling in the planner can cause enough variance in the
calculated pressure to trigger LA to continuosly, making matters worse.
Clamp LA again, but only during extrusion, so that the runaway error is
limited by the current segment length.
2020-07-16 18:54:00 +02:00
Yuri D'Elia
fb5f09da6d
Fix incorrect precedence for retraction phase
...
The logic was inverted, causing the fastest isr to always retract
instead of counter-balance the acceleration properly.
2020-07-16 18:53:53 +02:00
Yuri D'Elia
c08f37da96
Use nominal rate for phase calculations
...
The local interval calculated by advance_spread() might oscillate too
much in narrow intervals.
2020-07-12 17:15:47 +02:00
Yuri D'Elia
78bbfc6237
Fix delay calculations inside babystep()
...
- Avoid all delays when using DEDGE stepping
- Correctly account for direction change delays
2020-06-24 17:58:43 +02:00
Yuri D'Elia
6ea198a866
Fix DEDGE in sm4.c (fixes xyz calibration)
2020-06-24 17:58:43 +02:00
Yuri D'Elia
e6b182aa9f
Implement proper step/delay pauses in tmc2130 functions
...
Add constants for the various required delays in tmc2130.h,
which will come in handy for stepper.cpp as well.
Move the delays in the _set functions and remove the pauses
from the various calling points and macros.
Note that the hard-coded pause wouldn't cut it for the stepper ISR,
but it's fine for other use cases.
2020-06-24 17:58:43 +02:00
Yuri D'Elia
1181beffb1
Enable DEDGE stepping on supported variants
2020-06-24 17:58:43 +02:00
Yuri D'Elia
6ceca9bf85
Implement double-edge stepping
...
Introduce new wrapper macros to tick the stepper pins.
Default to the original raising-edge stepping mode.
When using the TMC double-edge stepping mode (aka half-wave or
square-wave mode) the _LO macros become no-ops.
2020-06-24 17:58:43 +02:00
Yuri D'Elia
6017600714
Reintroduce the ability to disable TMC interpolation per-axis
2020-06-24 17:58:43 +02:00
Yuri D'Elia
1c026f0e4d
Always sync before manipulating the planner position in FWRETRACT
...
Calling plan_set_*_position should never be done without a sync, since
the current_position can be (and usually is) several steps ahead.
In retract() and inside the autoretract support, call st_synchronize()
prior to calling any of these functions so that we don't corrupt the
position of the backend!
When unretracting, split the Z and E moves in two steps so that the E
unretraction is not slowed down by the Z axis.
Fix the indentation of the affected code.
2020-06-24 17:45:38 +02:00
Yuri D'Elia
d53c55ce64
Disable filament checks inside the Move -> Extruder menu
2020-06-24 16:10:32 +02:00
Yuri D'Elia
f1efce7e52
Handle LA termination with double/quad stepping properly
...
Before PR #2591 LA was automatically capped during cruising or
deceleration. However we now rely on reaching the current pressure state
exactly to stop. When dual/quad stepping inside the eISR we might incur
in oscillating behavior if we do not handle it correctly.
This might be the cause behind #2757
This now changes e_step_loops to be a phase-local variable, so we now
reset it each phase too (instead of per-segment).
2020-06-23 16:51:54 +02:00
Yuri D'Elia
50a09824fd
Avoid scheduling useless eISR ticks
...
When switching to a new trapezoid step with the right pressure, cancel
any pending eISR right away.
Similarly do not schedule another eISR if the pressure will be reached
by the end of the eISR.
This was done in the past to preserve the current LA_phase. This is not
needed anymore, since it will be reset at each trapezoid step when LA
is re-initialized.
2020-06-23 15:24:16 +02:00
Yuri D'Elia
1206fc3164
Avoid useless cast
2020-06-22 15:34:34 +02:00
Yuri D'Elia
a36efcb347
Remove cumulative error in segments without cruising (take 4)
...
Avoid sqrt when possible
2020-06-22 15:03:49 +02:00
Yuri D'Elia
173aa2deba
Fix bogus timer check preventing fast LA steps to be scheduled
...
Simplify and fix the broken timer check when scheduling advance ticks.
This dates back to the original LA15 PR, an old bug...
2020-06-22 00:54:50 +02:00
Yuri D'Elia
51a539608c
Reset LA_phase at each trapezoid stage
...
There used to be a single stage where an extruder reversal could occur,
but since PR #2591 reversals can happen up to two times per trapezoid.
Reset LA_phase when ADV_INIT is set, since it is re-inizialized only
when needed a few lines afterward. This improves performance by avoiding
to check the phase continuosly to the end of the trapezoid.
Likewise, always set ADV_INIT during the first cruising step, also to
force a LA_phase reset.
2020-06-22 00:19:47 +02:00
Yuri D'Elia
7c140bc497
Remove cumulative error in segments without cruising (take 3)
...
Remove another division by precomputing the division directly in
adv_comp.
2020-06-21 16:32:22 +02:00
Yuri D'Elia
753e651af3
Remove cumulative error in segments without cruising (take 2)
...
Reduce per-trapezoid calculations
2020-06-21 16:32:22 +02:00
Yuri D'Elia
15548958e9
Remove cumulative error in segments without cruising (take 1)
...
PR #2591 made LA compression always account for retractions instead of
discarding the current compression steps. While this fixed overextrusion
in short segments followed by wipes, it uncovered another issue in how
the compression steps are spread during the trapezoid calculations
leading to gaps in segments followed by retractions (as highlighted by
/some/ prints in #2693 ).
LA1.5 always computes the required target compression steps for a
segment at nominal speed. Because of how the extra steps are allocated
using multiples of the accelerating frequency, if the segment is
truncated before cruising is reached, an additional cycle of steps can
be inserted before deceleration starts. Deceleration is also not
guaranteed to be symmetric where up to _two_ cycles can be skipped
depending on the stepping cycle, leading to a situation where a
symmetric acceleration/deceleration block will lead up to a cycle of
accumulated compression.
While forcing an the extra step during deceleration is possible by
tweaking the error term (eISR_Err), this doesn't guarantee balance in
all cases. The underlying issue is that the function is aiming a
compression which cannot be reached (nominal speed), and not at the
effective max speed reached in the trapezoid, thus moving the average
result higher over time.
We fix this by calculating the effective maximum speed (and compression)
reached during the trapezoid, which stops compression on the required
cycle irregardless of the error term, balancing the result.
This is the first unoptimized POC: this is not for production: a lot of
calculations are redundand and could work directly in steps/s^2.
2020-06-21 16:32:22 +02:00
Alex Voinea
a0cf5714ce
M220 M221
2020-06-19 15:39:16 +03:00
Marek Běl
45e182911d
Merge pull request #2748 from mkbel/detect_superpinda
...
Detect superPINDA PFW-1107
2020-06-16 14:07:12 +02:00
Marek Bel
9838be8512
Do not compile, if PINDA temperature compensation start point is lower than PINDA_MINTEMP. Document.
2020-06-16 02:03:14 +02:00
Marek Bel
d5feed1f6a
Refactor: Remove if(true) condition, redundant break statement and decrease indentation.
2020-06-16 01:20:17 +02:00
Marek Bel
40ffea64ab
Do not compile temperature compensation code for PINDAv1 if PINDA_THERMISTOR macro is defined.
...
This saves nearly all of additional FLASH usage of previous commit. It is only 70B worse than if no skipping is done in temperature compensation gcode G76.
2020-06-16 01:09:40 +02:00
Marek Bel
d398aa1e3f
Skip PINDA_THERMISTOR block in PINDA probe temperature calibration if PINDA_THERMISTOR is not detected.
...
Costs 1328B of FLASH, something must be wrong.
2020-06-16 00:44:59 +02:00
Marek Bel
23cc22bc22
Move has_temperature_compensation() into temperature.cpp.
...
No change in FLASH usage.
2020-06-16 00:41:21 +02:00
Marek Bel
bdf53387b1
Disable temperature compensation and temperature calibration menu if superPINDA is detected.
...
Even though functionality was added, 20B of flash memory has been saved.
2020-06-16 00:19:06 +02:00
Marek Bel
bbe9e3b4ea
Remove temp_cal_active variable.
...
This saves 18B of FLASH and 1B of RAM memory. This variable was duplicate to EEPROM variable of the same name.
2020-06-11 20:00:55 +02:00
Marek Bel
fca4015667
Remove st_current_init() call from lcd_temp_calibration_set().
...
There is no known purpose of this call.
lcd_temp_calibration_set() is switching on/off pinda temperature compensation from LCD settings menu (this is called "Temp. cal." on LCD).
st_current_init() does nothing on Einsy board, it enables and sets motor current selecting outputs on Rambo board (it used to be called digipot in history)
2020-06-11 19:38:40 +02:00
Marek Běl
750af103ff
Merge pull request #2727 from mkbel/fix_unused_function
...
Unused function warning fix.
2020-06-08 15:25:11 +02:00
Marek Běl
971504f395
Merge pull request #2728 from mkbel/fix_unused_variable
...
Fix compiler warning unused variable kill_message.
2020-06-08 15:09:19 +02:00
Marek Bel
f6df3f2394
Unused function warning fix.
...
(cherry picked from commit 54e2b6a829 )
Pick only unused function warning fix.
2020-06-08 15:04:26 +02:00
Marek Bel
200696c764
Fix compiler warning unused variable kill_message.
...
(cherry picked from commit 54e2b6a829 )
Pick only unused kill_message.
2020-06-08 14:27:58 +02:00
Marek Bel
5648f3fef0
Fix compiler warning enumeration value 'ONE_TO_FALL' not handled in switch.
2020-06-08 13:07:19 +02:00
DRracer
183b102b6c
Document the RPM condition
2020-06-05 16:37:21 +02:00
Alex Voinea
1bf5635459
Trigger fan error during selftest for altfan
2020-06-05 17:17:33 +03:00
D.R.racer
7e41524101
PC-blend preheat temperatures #define typo
...
A typo slipped through in PR#2711, not even the compiler caught it
(obviously, it is #define to be stringized):
PCB_PREHEAT... -> PC_PREHEAT
2020-06-03 18:05:37 +02:00
D.R.racer
fe72ba7a9d
Add PC-blend preheat preset
2020-06-03 17:45:55 +02:00
3d-gussner
d1865fc59a
MK3s IR sensor improvement ( #2698 )
...
* Update EEPROM_FSENSOR_PCB documentation
* Update IR sensor check
* Rename IR messags and add UNKNOWN state
* Update code to use new messages
* To be continued
* Move fsensor related things from ultralcd.h to fsensor.h
* Use defined Thresholds
* IR sensor auto detection "0.3 or older" and "0.4 or newer" when trigger status changes.
Typo fixes
Doxygen documentation
* Cleanup spaces
* Revert PF-build.sh changes
* re-add space in messages
* revert doxygen snytax
* Remove double _Undef
* Fix indentation and doxygen syntax
* Fix indentation
* Better message handling
* Fix indentation
* Fix indentation
* More indentation fixwa
* Extract common code into manage_inactivity_IR_ANALOG_Check
Saves ~60B of code
* Revert indentation changes on fsensor.cpp
* Keep the selftest IR sensor part disabled
Everything shall happen at runtime
* Fix indentation fsensor_update
* Fix another misleading indentation in fsensor_update
Co-authored-by: Alex Voinea <voinea.dragos.alexandru@gmail.com>
Co-authored-by: D.R.racer <drracer@drracer.eu>
2020-06-03 16:14:56 +02:00
DRracer
233e66900f
Merge pull request #2670 from wavexx/la10c_jerk_tune
...
Increase E-jerk LA10->15 flattened zone
2020-06-03 15:50:57 +02:00
Alex Voinea
751f810dd7
ALTFAN implementation ( #2692 )
...
* ALTFAN implementation
* Use CRITICAL_SECTION macros
* Use uint16_t instead of unsigned int
* Add forgotten CRITICAL_SECTION
* Documentation
2020-06-01 17:58:15 +02:00
DRracer
eb44ee0f57
Code size optimization: 2KB down ( #2687 )
...
* Combine repeated calls into functions with much less parameters -> 2KB
down.
* Save some bytes by removing unnecessary 1-character strings: "x" -> 'x'
used in SERIAL_xxx printing macros.
This is also saves some CPU cycles
* Fix compilation for MK25S and MK3
* Copy surrounding indentation
* Fix compilation for a rare HW setup
* rename mesh_planXX_buffer_line back to mesh_plan_buffer_line
* Remove active_extruder from remaining plan_buffer_line_destinationXYZE
calls and one more fix of indentation
2020-06-01 17:51:28 +02:00
Alex Voinea
c84aef3a28
Handle second serial port correctly
2020-05-27 17:40:14 +03:00
Alex Voinea
b1e446ef97
Remember the serial characters during Optiboot initialization
2020-05-27 13:50:02 +03:00
Alex Voinea
e985d17bd1
Document code
2020-05-27 10:16:44 +03:00
Alex Voinea
f11ab17746
Fix warning
2020-05-27 09:59:17 +03:00
Alex Voinea
4ffa4dd8fd
Fix missing start on MK3/S
2020-05-27 09:44:28 +03:00
odaki
3d979a88a5
Merge remote-tracking branch 'upstream/MK3' into flashair_display_ip
2020-05-20 12:37:07 +09:00
Alex Voinea
b1a83c8add
Merge branch 'MK3' into MK3_NEW_SD_COMPILATION
2020-05-19 16:37:47 +03:00
D.R.racer
2447dbc69f
Version changed (3.9.0 build 3421) - sync
2020-05-18 16:56:32 +02:00
D.R.racer
285088a715
Version changed (3.9.0 build 3421)
2020-05-18 16:45:18 +02:00
Yuri D'Elia
000f824e39
Increase E-jerk LA10->15 flattened zone
...
Increase the flattened response in the e-jerk conversion from the 1-4.5
region to 0.3-4.5 (same slope). This brings a 0.3 LA10 e-jerk to a 3.45
LA15 equivalent.
This will better handle the legacy Pretty PETG/CFPETG v3 profiles.
2020-05-18 01:22:49 +02:00
3d-gussner
deff8dcfde
MK3 3 9 0 missing translations ( #2646 )
...
* Add and update missing translations
- updated in Firmware/ files the missing `c=xx` column and `r=yy` rows.
- added missing translations to lang/lang_en*.txt
Everyone is developing and adding messages to serial and especially to LCD PLEASE add `//// c=xx` or `//// c=xx r=yy` comments.
Preparing translations files without that information is a pain in the ... and takes way more time for somebody else
to review to code as it would take you.
* No need to have `MSG_abcde` again in comments `////` in `messages.c`
* German translation
* Missed a space
* Use the same format as somewhere else
* French translation.
I am not a native French speaking person, so please excuse my mistakes I may have done.
* Spanish translation.
I am not a native Spanish speaking person, so please excuse my mistakes I may have done.
* CZ translation
* Fix typos
* Another fix
It is
Dimmwert and not Dim Wert
* Fix issues reported by `lang-check.py`
* Add "difficult" messages containing `%`
* Updated MSG and German translation
* removed a translation as it breaks the language selection
* No need to wait until any-key is pressed
* No need to wait any-key is pressed
* Fixed two LF issues
* Updated PO files
ready to be send to translators
* Add missing italian translations
* Improve some existing italian translations
* More italian fixes
* More italian fixes
* Add exceptions in editorconfig for po files to avoid recoding
* Fix typo
Thanks @DRracer for pointing out
* Italian translation by @wavexx
* Update po/new/*.po files
* Update after merging MK3 branch
* Update French translation and some c=xx comments
Big thanks to @awenelo @carlin57 for helping with the french translations and their comments.
* Update po files after French translation
* Fixed most `lang-check.py` reported translation errors for Czech and German.
Two Czech have to be reviewed as these are too long.
One German is correct as it is shown in c=20 r=2 but is 1 char longer than this to split the message.
One German translation seams to be to long but have to review the actual max length
* Fix `lang-check.py` Spanish translation errors
There have been quite lot TOO long messages,
Can't imagine that nobody every complained about that.
* Fix `lang-check.py` Italian translations errors
* Update not_tran and not_used files after fixing several translations
* Some more error fixes and update of `po` files
* Polish translation
* Czech updated
* Fix typo
* no need to translate `\x00` if it is the same
* Polish: Runouts->Koniec
* Polish: Runouts->Konce f ... hopefully the last change
* Added MK2.5/s auto power mode to eeprom doxygen
* Final updates.
- Compiled all versions with multi-languages
- Compiled all versions with EN_ONLY
- updated all /lang/po/Firmware*.* files
* Add crlf attributes for po files
As done for editorconfig, this similarly forces git to handle
po files consistently in DOS format.
* Further improvent of IT translations
* Updated translation
Added cleanup to PF-build.sh
* remove lang/not_tran* and lang/not_used mistakenly added into the PR
Co-authored-by: DRracer <drracer@seznam.cz>
Co-authored-by: Yuri D'Elia <wavexx@thregr.org>
Co-authored-by: D.R.racer <drracer@drracer.eu>
2020-05-12 22:23:40 +02:00
3d-gussner
127a1790bc
Set unknown IR sensor after factory reset as 0.3 or older
2020-05-12 20:15:02 +02:00
odaki
dfd60a843d
Merge remote-tracking branch 'upstream/MK3' into flashair_display_ip
2020-05-10 10:25:13 +09:00
DRracer
7079606df3
Merge pull request #2639 from wavexx/la15_adj_threshold
...
Adjustable Linear Advance limits and thresholds
2020-05-06 15:37:30 +02:00
Yuri D'Elia
2f4f4547c6
Also reset LA10C when disabling LA with K0
...
As pointed out by @leptun, with MMUs the combination of old/new filament
profiles in the same print is a likely scenario as we transition towards
LA1.5. Reset the detection state also with K0.
2020-04-29 22:56:06 +02:00
Yuri D'Elia
5082f2a36e
Move reset LA state from G80 to M84
...
Move la10c_reset into finishAndDisableStepper, which is called in both
via lcd_print_stop() and indirectly via M84, saving some space.
M84 is checked-for to determine a complete file, so it's a superior
candidate to G80 (which some people avoid due to MBL issues).
2020-04-29 22:51:23 +02:00
odaki
a1254b3a3c
Merge branch 'MK3_3.9.0' into flashair_display_ip
2020-04-29 10:19:51 +09:00
Yuri D'Elia
b9ce572559
Reset LA10/15 state also when stopping a print
...
Based on f22fb2770b by @leptun
2020-04-28 17:35:28 +02:00
Yuri D'Elia
0b666ee733
Parametrize LA limits and threshold values
...
Allow the LA 1.5 MAX value to be configured in Configuration_adv.h.
Define a customizable LA10<>15 detection threshold in function of the
above limit.
Clamp the result of of the LA10->15 return value to always
respect the new LA_K_MAX.
2020-04-28 17:31:42 +02:00
DRracer
7be713199d
Version changed (3.9.0-RC3 build 3401)
2020-04-28 12:06:13 +02:00
DRracer
67e9b4c096
IR fsensor fixes ( #2632 )
...
* MK3S IR sensor detection and safe operational range fix
* debug, change of fsensor_IR_check behavior
* more doc + disable debug print voltage
* fix displaying MSG_04_OR_NEWER and MSG_03.... kudos to @ovariludovit
* better handling of fsensor not responding scenario
2020-04-28 10:20:21 +02:00
odaki
c34c622b3c
Merge branch 'MK3_3.9.0' into flashair_display_ip
2020-04-28 00:14:47 +09:00
DRracer
40c052f482
Version changed (3.9.0-RC2 build 3398)
2020-04-24 20:02:13 +02:00
DRracer
baaa372a56
Rephrase texts for fsensor detection and cleanup ( #2630 )
...
* Rephrase texts for fsensor detection and cleanup
* fsensor msgs only for MK3S
2020-04-24 19:46:54 +02:00
Alex Voinea
8ef87d76ef
MK2.x: move away from endstops after lcd_selfcheck_pulleys() ( #2617 )
...
* Removed duplicate #defines
cleaned up display routine
* Change to raise_z_above()
* Better display handling
* Ditch charswitch, show ... for measuring
* Pull in changes from #5
* Fix printf()s
* revert feedrates
* typo
* MK2.x: move away from endstops after lcd_selfcheck_pulleys()
amend
* Use absolute coordinates
Co-authored-by: vintagepc <53943260+vintagepc@users.noreply.github.com>
2020-04-20 09:55:14 +02:00
DRracer
32fa7b5496
Merge pull request #2473 from vintagepc/#2472-#2356-belt-test-stealth-mode
...
#2472 #2356 #2484 belt test improvements
2020-04-20 09:36:39 +02:00
Alex Voinea
0e25eaee8f
Merge branch 'MK3' into MK3_NEW_SD_COMPILATION
2020-04-19 16:02:11 +03:00
3d-gussner
1bac0c1765
Add dummy G21 to prevent UNKOWN warnings in serial
...
And as Prusa firmware operates ONLY in milimeters it kind of does what G21 is supposed to do.
2020-04-18 16:39:04 +02:00
DRracer
60466c0993
Merge pull request #2610 from wavexx/la15_la10_tune
...
Increase the LA10->15 response
2020-04-16 16:12:05 +02:00
vintagepc
dce453fd4a
typo
2020-04-16 07:31:54 -04:00
vintagepc
85a4c44d83
revert feedrates
2020-04-16 07:29:59 -04:00
DRracer
1d4b0a9c47
Merge pull request #2586 from leptun/patch-1
...
🐛 Flip lcd_detect_IRsensor logic
2020-04-15 11:24:38 +02:00
DRracer
7c1bf6a836
Merge pull request #2591 from wavexx/la15_chained_wipes
...
Fix chained wipes in Linear Advance 1.5
2020-04-15 11:23:45 +02:00
Yuri D'Elia
48c459e208
Increase the LA10->15 response
2020-04-12 02:58:44 +02:00
Yuri D'Elia
ae4abdf11f
Unify LA for all trapezoid steps
...
Handle uniformly compression & decompression at any stage of the
trapezoid.
Compared to before, this now enables LA compression also in the cruising
step (handling the converse of a chained wipe), as well as decompression
during acceleration.
Both of these can happen as a result of jerk moves, but are incredibly
rare. This is mostly needed to allow rapid decompression directly at the
acceleration step during travels between a retraction&deretraction.
We also check for the pressure level in a single place, reducing code
size as well as disabling LA earlier when not needed for the rest of the
block.
2020-04-12 01:28:34 +02:00
Yuri D'Elia
13b0e27cd7
Do not overflow during LA acceleration limiting
...
Perform the check one step earlier, avoiding 32bit overflow for very low
compression factors.
Fixes #2566 (although for K15 to have effect the conversion probably
needs to be adjusted on the low end)
2020-04-09 22:55:47 +02:00
Alex Voinea
207f0f27a6
🐛 Flip lcd_detect_IRsensor logic
2020-04-09 16:35:38 +03:00
Yuri D'Elia
02a36c498c
Release excess pressure within cruising blocks
...
LA assumes all the nozzle pressure is released at the end of each
extrusion, which makes calculating the required pressure advance during
travels and retracts not normally necessary.
This is not always true in our planner, since the E axis is explicitly
ignored when not in use, but also due to E-jerk allowing a non-linear
jump in speed. And since the compression factor is currently tied by XYZ
axes and not independently calculated, this can result in a wrong
estimation of final pressure in several conditions.
To avoid overburdening the planner, change the underlying assumptions
about backpressure:
1) Pressure is no longer lost when LA is disabled: if a retract is
followed by an unretract of the same length, the pressure will be likely
maintained entirely. This also holds true during travels, as long as the
retract length can overcome all the backpressure (which is the case in
all but the most noodly materials)
2) Pressure is released as soon as possible during travels: we now
enable LA also during travels, but under the sole condition of undoing
excess pressure.
We do that by checking for backpressure at the start of any segment
without an acceleration phase that doesn't have any E-steps (a result
which can happen due to the above). If pressure is not nominal, we run
the extruder in reverse at maximum jerk as long as the segment allows
us, since proper acceleration would be prohibitive at this stage. As the
pressure difference resulting by the above is still _very_ low, any wipe
or short travel will be able to equalize the nozzle pressure *before*
extrusion is resumed, avoiding ooze.
2020-04-09 00:46:57 +02:00
Yuri D'Elia
919386c957
Remove several globals by using a single target pressure
...
In the current code we initialize the LA state on-demand already at the
right step, which makes keeping track of the tick position no longer
necessary.
Make the advance ISR almost stateless by removing the last vestiges of
the original implementation and introduce a single target pressure. This
will be needed later in order to trigger the LA isr inside the cruising
phase.
2020-04-09 00:46:57 +02:00
Yuri D'Elia
9ec0ac9c64
Always reset e_steps between blocks
...
If e_steps are scheduled, but not ticked, they're just lost.
Only carry over the pressure state.
2020-04-09 00:46:57 +02:00
Yuri D'Elia
5d27f3362a
Remove empty line
2020-04-09 00:46:57 +02:00
Alex Voinea
4c4b4c489c
🐛 ♻️ Update the feedrate percentage before drawing the screen
2020-04-07 17:10:27 +03:00
3d-gussner
c1d05210ff
Cleanup useless `break;`
2020-04-07 11:42:09 +02:00
3d-gussner
65a406a2f3
Bugfix for last PR
...
I forgot to change also the
- `#ifdef DEBUG_DCODE_3` to `#if defined DEBUG_DCODE3 || defined DEBUG_DCODES`
- `#ifdef DEBUG_DCODE_5` to `#if defined DEBUG_DCODE5 || defined DEBUG_DCODES`
in the `Dcodes.h` file which I added to `Dcodes.cpp`.
Due to this issue the "Debug" version fails during compiling.
Sorry for that.
2020-04-07 11:22:48 +02:00
DRracer
c8f67f2279
Merge pull request #2568 from 3d-gussner/MK3_Dcodes_move
...
D- codes move
2020-04-03 11:12:30 +02:00
DRracer
b779d786e6
Merge pull request #2569 from leptun/MK3_fix_selftest_Z_crash2
...
🐛 Raise the nozzle from the bed in case Z axis crashes during homing and selftest
2020-04-03 09:04:59 +02:00
Alex Voinea
9b3f51008b
🎨 Change CRLF line ending to LF
2020-04-02 19:32:13 +03:00
3d-gussner
0daa916c8d
Merge remote-tracking branch 'upstream/MK3' into MK3_Fix_LCD_stats
2020-04-02 15:14:00 +02:00
3d-gussner
dbd07c1d1c
Limited LCD output of several uint16 values to 999
2020-04-02 15:11:46 +02:00
3d-gussner
a1b8ee67b3
Fix missing (hex) in D5 code ( #2560 )
...
* Fix missing (hex) in D5 code
* Make ALL D-codes available for DEBUG mode
until now D3 and D5 needed to be defined separately
* Forgot to modify Marlin_main
2020-04-02 14:56:19 +02:00
Alex Voinea
fd1d05ab48
♻️ Code optimization
2020-04-02 14:44:44 +03:00
Alex Voinea
f8843b25b0
✨ Progress bar for check_file()
2020-04-02 13:21:53 +03:00
Alex Voinea
792bab9bbb
Fix go up
2020-04-01 13:50:22 +03:00
Alex Voinea
8b2b32c85b
Raise on nozzle crash
2020-04-01 13:15:08 +03:00
Alex Voinea
b8896ad9c0
First attempt for Z probe checking during selftest on the MK3/S
2020-04-01 12:28:39 +03:00
vintagepc
b449e248a1
Fix printf()s
2020-03-31 17:48:56 -04:00
vintagepc
0c383e20b3
Pull in changes from #5
2020-03-31 17:33:08 -04:00
vintagepc
f1cba64e56
Merge remote-tracking branch 'upstream/MK3' into #2472-#2356-belt-test-stealth-mode
2020-03-31 17:03:10 -04:00
3d-gussner
e481013126
Reset all stats during Shipping prep ( #2563 )
...
* Reset all stats during Shipping prep
Last print stats were missing
* keep old indentation
Co-authored-by: D.R.racer <drracer@drracer.eu>
2020-03-30 17:01:46 +02:00
DRracer
8196a5f165
Merge pull request #2565 from 3d-gussner/MK3_EEPROM-fix1
...
EEPROM_BACKLIGHT_TIMEOUT min is 1 sec
2020-03-30 16:58:22 +02:00
3d-gussner
957bfd89e3
Merge remote-tracking branch 'upstream/MK3' into MK3_Dcodes_move
2020-03-30 16:56:59 +02:00
3d-gussner
6da401be56
Move few D-codes command from Marlin_main to Dcodes
...
D80, D81 and D106 have been added to `Marlin_main.cpp` but all other D-codes moved to `Dcodes.cpp/.h`
2020-03-30 16:53:58 +02:00
3d-gussner
aa9aa14472
Version to 1.0.1
2020-03-30 16:24:20 +02:00
3d-gussner
9abc79d89c
EEPROM_BACKLIGHT_TIMEOUT min is 1 sec
2020-03-30 16:16:07 +02:00
DRracer
368ee0857b
Merge pull request #2564 from 3d-gussner/MK3_EEPROM-fix1
...
Typo in some hex default values
2020-03-30 16:15:26 +02:00
Alex Voinea
f13269d8a9
Code cleanup
2020-03-30 16:50:50 +03:00
Alex Voinea
104f81cd27
Fix case sensitive include
2020-03-30 15:42:30 +03:00
Alex Voinea
988ba6d8b0
Fix DEBUG_BUILD
2020-03-30 15:38:01 +03:00
3d-gussner
0f9aa00eaf
Typo in some hex default values
2020-03-30 10:36:13 +02:00
DRracer
5106831ba2
Merge pull request #2526 from leptun/MK3_decouple_XYZE_relative_mode
...
Mk3 decouple XYZE relative modes
2020-03-26 18:58:20 +01:00
DRracer
587b051b1f
Merge pull request #2492 from vintagepc/belt-test-fixes-no-reorg
...
Belt test improvements (No display alteration)
2020-03-26 18:53:40 +01:00
DRracer
b95d7365c8
Merge branch 'MK3' into remove-unnecessary-delay
2020-03-26 18:45:34 +01:00
DRracer
a4b8f52269
Merge pull request #2466 from vintagepc/#2464-fix-runout-for-unknown-filament
...
#2464 fix runout for unknown filament (also fixes #1993 , #2301 )
2020-03-26 18:43:05 +01:00
DRracer
c085ecaa11
Merge pull request #2264 from leptun/MK3_fix_selftest_Z_crash2
...
PFW-1048: fix selftest Z crash. Use stallGuard when testing Z
2020-03-26 18:22:35 +01:00
Alex Voinea
d0c51b9e73
int -> bool
2020-03-26 19:06:35 +02:00
DRracer
65228a046e
Merge pull request #2520 from MRprusa3d/PFW-x001bPR
...
FS PCB auto-detect
2020-03-26 17:36:18 +01:00
Alex Voinea
4670c42aeb
Merge branch 'MK3' into MK3_NEW_SD_COMPILATION
2020-03-26 18:17:26 +02:00
D.R.racer
818efb4fa2
updated messages + slight refactoring to save some bytes
2020-03-26 15:07:48 +01:00
D.R.racer
34ac2917ae
fix. warning "Macro expansion producing 'defined' has undefined
...
behavior"
update screen layout comments
2020-03-26 14:40:47 +01:00
3d-gussner
32c95d5455
Merge branch 'MK3' into MK3_Dcodes_case_sensitive
2020-03-26 14:08:55 +01:00
3d-gussner
2ceec597a5
Fix typo
2020-03-26 14:08:35 +01:00
3d-gussner
9b394dcbe6
Update to Version 1.0
2020-03-26 13:55:23 +01:00
3d-gussner
82cd1f9f84
Typo. thanks @leptun
2020-03-25 17:44:43 +01:00
3d-gussner
4c518545f1
Updated the documentation
...
copy past from Marlin_main.cpp doxygen documentation d-codes
2020-03-25 17:33:10 +01:00
3d-gussner
0d00db1c33
Some D-codes are case sensitive
2020-03-25 17:26:27 +01:00
3d-gussner
95a24320f7
Added language factory reset
...
and some other minor fixes
2020-03-23 17:10:40 +01:00
3d-gussner
7cd5d83089
Added S/P to Default/FactoryReset
...
S = Statistics
P = shipping Prepare
2020-03-23 16:54:35 +01:00
3d-gussner
6be66fcfcd
fix some typos
2020-03-23 15:47:59 +01:00
Alex Voinea
6979555fab
more comments
2020-03-23 16:30:51 +02:00
3d-gussner
bb43fa9878
typo dedine doesn't work
2020-03-23 14:51:40 +01:00
3d-gussner
0067dc0d9d
Merge branch 'MK3' into MK3_EEPROM_doc
2020-03-23 14:15:35 +01:00
3d-gussner
f4037b9cb4
Fixes after testing
2020-03-23 14:13:24 +01:00
Alex Voinea
5c4b3eea87
Struct comments
2020-03-23 14:57:03 +02:00
DRracer
73349033d5
Merge pull request #2469 from wavexx/fix_current_pos_init
...
Initialize current_position correctly during startup
2020-03-23 12:26:32 +01:00
3d-gussner
fc793b59d7
changed default values for bowden length after test
2020-03-23 12:02:57 +01:00
DRracer
5a6148670a
Merge pull request #2494 from DRracer/create-mod-filetime-sort
...
Use combined creation/modification file time stamps for sorting
2020-03-23 11:53:52 +01:00
3d-gussner
32bff79fd6
minor changes + added EEPROM_FREE_NRx ...
...
Some EEPROM allocations do not use the hole allocated space:
- EEPROM_FARM_NUMBER is only numeric 000-999 and only uses 2 bytes to store the Farm number BUT allocated 3 bytes. Added EEPROM_FREE_NR1 as free space that can be used
- EEPROM_CRASH_DET just changes 1 byte to save it status [on/off] but allocated 5 bytes. Added EEPROM_FREE_NR2 to EEPROM_FREE_NR5 as free space that can be used
2020-03-23 11:40:07 +01:00
Alex Voinea
ea1a2bb362
Documentation update
2020-03-23 12:37:56 +02:00
DRracer
468b0e210c
Merge pull request #2372 from leptun/MK3_fix_verbosity
...
Fix SUPPORT_VERBOSITY
2020-03-23 10:53:39 +01:00
DRracer
0f32c46307
Merge pull request #2371 from 3d-gussner/MK3_Fix_Language_Debug
...
MK3 fix language debug
2020-03-23 10:53:14 +01:00
3d-gussner
0c65505741
Added PRUSA3DFW at 0x0000
2020-03-23 07:23:36 +01:00
3d-gussner
1b0c86cb51
minor fix
2020-03-22 15:23:41 +01:00
3d-gussner
2778fa9aa0
Added author and version of document
2020-03-22 15:22:14 +01:00
3d-gussner
b178252eb9
Added Italic and Bold to highlight some settings
2020-03-22 15:18:45 +01:00
3d-gussner
028a27021b
All done...
...
hope not I forgot one. I will re-test all `D3 Axyyyy Cz` before creating a PR.
2020-03-22 14:08:21 +01:00
3d-gussner
2591f8d593
Added and tested more...
...
... have to take a short break
2020-03-20 12:36:26 +01:00
3d-gussner
c8fc5b2fed
Simpler tabel syntax
2020-03-20 10:44:12 +01:00
odaki
684b47e417
Update reference URL
...
There was an official website of Toshiba called "FlashAir Developers '', and
there was information necessary for FlashAir development, but since it closed in September 2019.
Instead, I will point an archive site for developers.
2020-03-15 19:04:02 +09:00
3d-gussner
4d40ed67f6
remove LF
2020-03-12 12:36:48 +01:00
3d-gussner
2818316366
Started EEPROM Table doxygen documentation
2020-03-12 12:34:33 +01:00
MRprusa3d
ff479afd88
version for testing / final review
2020-03-10 15:51:48 +01:00
MRprusa3d
f71bbfe95e
tresholds specification, steady delay
2020-03-10 00:11:17 +01:00
Alex Voinea
e914f8e0da
Show "Sorting folders" when folders are being sorted
2020-03-05 13:06:37 +02:00
Alex Voinea
890c137298
Initialize all axis as absolute at the beginning.
2020-03-05 11:29:16 +02:00
Alex Voinea
5fcf18718f
Decouple XYZ relative from E relative.
2020-03-05 11:22:35 +02:00
Alex Voinea
355b003b7f
menu_data_reset()
2020-03-04 22:20:53 +02:00
Alex Voinea
40ebd455f2
Safer menu interrupt call
2020-03-04 22:14:53 +02:00
Alex Voinea
22432b1053
Reset menu state after lcd_sd_refresh
2020-03-04 21:07:51 +02:00
Alex Voinea
5edc1ef297
Fix updir and dir again
2020-03-04 21:03:57 +02:00
Alex Voinea
57c149e7b5
Comment cleanup
2020-03-04 21:01:08 +02:00
Alex Voinea
7b19715c99
Cache sdSort
2020-03-04 20:41:17 +02:00
Alex Voinea
f35e553373
Code cleanup
2020-03-04 20:33:43 +02:00
MRprusa3d
f09323a78f
heaters-checking update
2020-03-03 14:57:45 +01:00
Alex Voinea
8e47cb35a3
Possible fix to longpress in sdcard menu
2020-03-03 15:29:10 +02:00
Alex Voinea
d1968f6ff0
Option to refresh/resort SDcard files when flashAir type is selected
2020-03-03 15:17:50 +02:00
Alex Voinea
f69a68b966
Fix subdir enter and exit
2020-03-03 14:55:08 +02:00
Alex Voinea
53e130fc6d
Merge branch 'MK3' into MK3_NEW_SD_COMPILATION
2020-03-03 14:14:43 +02:00
MRprusa3d
0eaa4edfee
configuration update
2020-03-02 21:18:11 +01:00
MRprusa3d
2a9504b20a
!!! for testing only !!!
...
filament sensor auto-detection
2020-03-02 19:07:23 +01:00
MRprusa3d
ec5e54de25
state fixing
2020-03-02 17:52:25 +01:00
vintagepc
e06beb61c3
Ditch charswitch, show ... for measuring
2020-02-21 18:14:13 -05:00
Yuri D'Elia
497637ee84
Remove hard-coded X/Y jerk limits
2020-02-18 12:23:42 +01:00
DRracer
2e18a48b87
Version changed (3.9.0-RC1 build 3272)
2020-02-17 16:47:56 +01:00
DRracer
f234ef2104
Use combined creation/modification file time stamps for sorting
2020-02-14 09:09:15 +01:00
vintagepc
1aaefffdb0
Change to raise_z_above()
2020-02-13 07:37:27 -05:00
vintagepc
5abee3d3e5
Better display handling
2020-02-11 19:44:26 -05:00
vintagepc
278bb032d7
Change to raise_z_above()
2020-02-11 18:37:26 -05:00
vintagepc
a4458fb57b
Removed duplicate #defines
...
cleaned up display routine
2020-02-11 18:33:40 -05:00
vintagepc
e4b1a1e9c4
Remove delay for belttest, similar to #2439
...
There's a separate PR to remove the first delay in the selftest. (#2439 ). Mirroring that to the belt test function, which I suspect also inherited it.
2020-02-09 21:39:48 -05:00
vintagepc
721b27fcb6
Reorg/cleanup
...
Removed unused progress variable
reorganized flow to avoid early returns (ensures forced high power mode is disabled regardless of outcome)
2020-02-08 12:33:23 -05:00
vintagepc
1384e783bf
Force high power mode when running belt test
2020-02-07 16:14:33 -05:00
DRracer
a10b7f3963
Merge pull request #2470 from leptun/MK3_Adjusted_mintemp
...
Adjusted hotend, bed and Ambient mintemp values
2020-02-07 08:54:50 +01:00
Yuri D'Elia
f1618bfbd6
Initialize current_position correctly during startup
...
Just after setting up the w2m matrix, call "clamp_to_software_endstops"
on the current_position (initially [0,0,0]) to move it to the effective
minimal position, which is usually [0,0,non-zero] due to MIN_Z and the
negative probe offset.
This is required to calculate correctly the first relative move:
planning X+10 would unexpectedly calculate a Z shift otherwise.
2020-02-06 22:41:47 +01:00
Yuri D'Elia
9e45b5d41e
Improve PAT9125 filament / optical quality checks
...
Tune the "soft" filament recheck to be more in-line with the latest
changes. Relax the thresholds so that a poorly tracking filament
that managed to trigger a recheck can still pass as long as /some/
motion is detected.
Hide the unused fsensor_oq_result() behind the FSENSOR_QUALITY define,
which is likely broken currently anyway.
Cleanup and simplify all the OQ defines.
2020-02-06 18:27:44 +01:00
Yuri D'Elia
853bb79b6b
Return correct status from pat9125_update_bs
2020-02-06 16:39:08 +01:00
Yuri D'Elia
bd0544fe9e
FS: Use two different speeds when checking for runout
...
When doing a PAT9125 "soft check", use two different speeds between
retraction and extrusion. This increases the chances that we can
track the surface.
2020-02-06 15:27:22 +01:00
Yuri D'Elia
3be859ece9
FS: Improve reliability on speeds with poor optical tracking
...
Depending on the filament surface and moving speed, the PAT9125 sensor
can stop being able to track movement.
In such cases, instead of triggering false errors and/or relying on
previous states, read and use the exposure data off the sensor and
increase error counts only for poorly exposed images instead, which
is a good indicator of a far-away (or missing!) tracking surface.
2020-02-06 15:27:22 +01:00
Yuri D'Elia
cdc17e8da1
Read all 12 bits correctly from PAT9125 DELTA_* registers
...
Widen ucXL/ucYL/ucXYH types to 16 bits, since the following shifts
will otherwise truncate the results.
2020-02-06 14:39:04 +01:00
Yuri D'Elia
3af35844e1
Remove redundant check (always trigger the fsensor isr)
...
Since fsensor_st_block_chunk is already called on fsensor_chunk_size
boundaries, there's no need to check a second time.
2020-02-06 14:39:04 +01:00
Yuri D'Elia
1eddc40ed4
Comment existing code
2020-02-06 14:39:04 +01:00
Yuri D'Elia
e84f82a675
Rewrite filament sensor PAT9125 error handling
...
Rewrite the logic behind the "chunking"/error count behind the PAT9125.
Basic idea: check the _direction_ of movement returned by the optical
sensor and compare it to the direction of the stepper. To avoid doing
this continuosly (and because the optical sensor doesn't necessarily
have the accuracy to track small distances), do so in chunks.
Each time a chunk doesn't match the expected direction, increase the
error count.
Several improvements were done to the previous code:
- Increase the chunk window: this ensures that a filament with
poor response returns an usable direction, while also moving the
average return values from the sensor in the middle of the 12 bits
available for maximum effectiveness.
- Since the returned values are more reliable, reduce the error count
(1.25mm*4 = ~5mm before runout detection)
- Track _both_ positive and negative movement, although only trigger
errors during extrusion (necessary due to several assumptions made
in the mmu/unloading code)
- Do not reset the counters for each block: accumulate distances
correctly, allowing detection of any block lenght.
2020-02-06 14:37:46 +01:00
vintagepc
34f43d7389
Update mmu.cpp
...
Fix runout if filament is unknown
2020-02-05 21:41:31 -05:00
Yuri D'Elia
5c4235b886
Correctly reset the PAT9125 filament counters
...
When the error count is cleared, the cumulative deltas as well as the
segment lenght which is kept inside the stepper isr need to be reset.
Introduce a helper function fsensor_reset_err_cnt to clear all the
required variables in one place which can be used in most cases
(the only exceptions being quality measument).
Introduce a new function st_reset_fsensor to also clear the segment
lenght within the isr.
2020-02-05 16:21:27 +01:00
Yuri D'Elia
6fbd632c84
Isolate all PAT9125-specific code, fix build on !MK3 variants
...
- Hide all prototypes related to PAT9125 to force all callers
to check for the proper sensor, since the handling differences
are substantial
- Remove unneeded lenght accounting from the stepper isr as as
consequence.
- Keep detailed soft failure counts for the MK3 on the "last print
failures" status screen, but fix build on variants without a PAT9125
by fixing the lcd stats function.
2020-02-05 16:20:12 +01:00
Yuri D'Elia
d47363d85a
Update the filament axis resolution when E resolution is changed
...
The filament sensor "chunk lenght" needs to be updated every time the
E axis resolution is changed in order to trigger at the same distance.
Introduce a new function fsensor_set_axis_steps_per_unit() and use
it consistent during init, in M92 and M350.
2020-02-05 16:20:12 +01:00
Yuri D'Elia
ce74b746f1
FS: Trigger a runout with repeated soft-failures (clog?)
2020-02-05 16:20:12 +01:00
Yuri D'Elia
8fb8ff4bf4
Include fsensor recovery stats in the last print stats
2020-02-05 16:20:12 +01:00
Yuri D'Elia
e8ce5e140e
FS: Detect runout earlier
2020-02-05 16:20:12 +01:00
DRracer
4774b44e21
Merge pull request #2461 from leptun/MK3_FIX_MINTEMP_FIXED
...
HEATER -> HOTEND
2020-02-04 16:35:07 +01:00
Alex Voinea
f1ccfd481a
HEATER -> HOTEND
2020-02-04 17:30:44 +02:00
DRracer
d4d1f051ba
Merge pull request #2149 from leptun/MK3_TONE
...
PFW-1056: Re-enable Tone on timer4
2020-02-04 11:04:15 +01:00
Alex Voinea
3ae5fa70ca
Fix comments
2020-02-03 19:20:43 +02:00
Alex Voinea
1f482adf55
Improved lcd_menu_statistics() implementation
2020-02-03 18:40:46 +02:00
DRracer
007395acb4
Merge pull request #2458 from wavexx/la15_compat
...
Adjust E-jerk in LA10 compatibility mode
2020-02-03 15:57:21 +01:00
Yuri D'Elia
453f5dd874
Adjust E-jerk in LA10 compatibility mode
...
When upgrading K values of a LA1.0 print, also adjust E-jerk settings
(<2) if permissible according to current accell limits. The same is also
true when jerk is set mid-print via 'M205 E'.
Existing values are always restored when switching to another
compatibility mode.
TODO: Since this is stateful, we will need to save the current print
mode / acceleration and jerk in the eeprom for this to survive a power
panic (see prusa3d#2456).
2020-02-03 15:42:27 +01:00
Yuri D'Elia
4b85664b27
Raise default extruder jerk to 4.5
...
This should be the new default for LA1.5 for direct drive printers and
newer PrusaSlicer profiles too (hopefully).
2020-02-03 15:42:27 +01:00
DRracer
796dcd6a3d
Merge pull request #2457 from wavexx/la15_fixes
...
Linear Advance 1.5 fixes
2020-02-03 15:27:02 +01:00
DRracer
685c8156b6
Merge pull request #2451 from wavexx/fix_printstats_reset
...
Do not clear last print fail stats prematurely
2020-02-03 11:21:41 +01:00
Yuri D'Elia
47db75d5fd
Fix overflow and infloop with LA15 and low step rates
...
When calculating the advance tick interval, be sure to check for integer
overflow. Very low step rates can result in values exceeding uint16_t
causing premature LA tick delivery.
An overflow resulting in zero would also block in an infinite loop
within advance_spread().
Even though such rates are worthless in terms of compensation and often
result in 0 extra ticks as well, do not disable LA for the block (as
doing so would reset the count for short segments) and do not check for
zero in multiple paces either.
Saturate the interval instead, delaying any further tick to the next
block.
2020-02-02 22:49:39 +01:00
Yuri D'Elia
3bbc143821
Fix build with LA_LIVE_K
...
Do not check for LA_LIVE_K in messages.c (Configuration_adv.h is not
included here).
Rely on the linker to drop the symbol when LA_LIVE_K is disabled.
2020-02-02 18:02:37 +01:00
DRracer
d6522a643c
Update ultralcd.cpp
...
indent
2020-01-31 16:57:18 +01:00
DRracer
fd42361236
Update ultralcd.cpp
...
do delay(2000) everytime, even if IR_SENSOR_ANALOG
2020-01-31 16:55:40 +01:00
DRracer
10d468cceb
Merge branch 'MK3' into remove-unnecessary-delay
2020-01-31 16:51:27 +01:00
DRracer
d30960b8e8
Merge pull request #2431 from MRprusa3d/PFW-x001
...
selfTest workflow optimalization
2020-01-31 16:49:41 +01:00
3d-gussner
a355fdd00d
And another one
...
sorry
2020-01-31 15:40:07 +01:00
3d-gussner
b466dad1d7
Fix copy paste issues D2 D5
...
Fixed copy paste
2020-01-31 15:27:19 +01:00
Yuri D'Elia
84ecf96be5
Do not clear last print fail stats prematurely
...
M24 was always cleaning the last print failstats. But because M24 is
used to restore a print after power failure (by setting the seek
offset), it would also reset the stats incorrectly after resuming.
Check for the file index position and reset the stats only when a print
is started from the beginning of the file.
Apply the same logic to M32 and similarly handle the LA10->15 conversion
(do not re-apply the adjustment for a resumed print).
2020-01-31 15:08:24 +01:00
3d-gussner
857f9d8d9e
Hard reset and readded change
2020-01-31 14:47:44 +01:00
DRracer
d70a147af5
Merge pull request #2436 from leptun/MK3_PSU_DELTA_cleanup
...
Do not clear axis known position when Z is set to silent
2020-01-31 09:08:14 +01:00
DRracer
0b62ed3325
Merge pull request #2450 from leptun/MK3_FIX_MINTEMP_FIXED
...
Show correct fixed message
2020-01-31 09:03:11 +01:00
DRracer
1ceadcb162
Merge pull request #2448 from wavexx/save_restore_fix
...
Save and restore fixes
2020-01-30 16:41:01 +01:00
Alex Voinea
886c2fdc4e
Show correct fixed message
2020-01-30 17:24:32 +02:00
DRracer
1b7677c768
Merge pull request #2394 from wavexx/fsensor_no_recursion
...
Avoid more recursive behavior in fsensor_update
2020-01-30 14:18:07 +01:00
Yuri D'Elia
1db024f17a
Always raise the extruder 25mm during power recovery
...
Avoids oozed material (drooping more than ~1mm) to scrape and
potentially detach the print.
2020-01-30 13:12:12 +01:00
Yuri D'Elia
571906a494
Do not update saved_target if there's no current_block
...
There is a chance that current_block can be NULL despite
the queue being non-empty. This can happen early after a block has been
queued, but before the isr has picked it up for processing, and/or when
the current block is at the last step and is being discarded.
Check for current_block directly to avoid this race.
2020-01-30 13:12:12 +01:00
DRracer
48a0532e37
Merge pull request #2447 from leptun/MK3_BED_LEVELING_PWM
...
Turn off bed while probing during MBL
2020-01-30 11:18:34 +01:00
leptun
8c2902a660
Revert "Mesh bed leveling testing"
...
This reverts commit 28e812d91f .
2020-01-29 23:07:53 +02:00
Alex Voinea
b86aafb56e
Documentation
2020-01-29 23:07:24 +02:00
Alex Voinea
755230e2e7
fix small mistake
2020-01-29 23:07:24 +02:00
Alex Voinea
a5198e32a3
Just keep the current state. ON or OFF. No switching allowed
2020-01-29 23:07:24 +02:00
Yuri D'Elia
02d1525445
Display "POWER PANIC DETECTED" when possible
...
Both during early init and in uvlo_tiny, display "POWER PANIC DETECTED"
if enough charge is left.
This is not worth doing in regular uvlo_, as we want to give full
priority to the X motor
2020-01-29 21:08:56 +01:00
Yuri D'Elia
2b46fdac2d
Only trigger a quick reset if there's a pending saved state
...
Thanks to @leptun
2020-01-29 17:56:26 +01:00
Alex Voinea
99e81812ce
Merge branch 'MK3' into MK3_BED_LEVELING_PWM
2020-01-29 17:56:10 +02:00
Alex Voinea
4fd913ddf3
Remove commented out code
2020-01-29 17:45:47 +02:00
Yuri D'Elia
b46dc59fad
Refuse to start a print if power is lost before arming uvlo
...
If power has been lost during startup already a falling edge would be
skipped, causing the print to continue and lose its state without
being able to save again.
Check for a low line after arming the interrupt and simply wait
for reset.
2020-01-29 16:06:54 +01:00
Yuri D'Elia
200cdde1af
Setup the UVLO interrupt later during initialization
...
Do not allow uvlo_tiny() to trigger before the previous print has
already been recovered.
A quick repeated power failure could cause uvlo_tiny to overwrite
the Z position before it has been correctly recovered.
2020-01-28 21:50:12 +01:00
DRracer
3e70b73a1f
Remove unnecessary delay in lcd_selftest, which occured there as a result of merge.
2020-01-27 19:02:15 +01:00
Yuri D'Elia
3da20db024
Really poweroff Z motors when PSU_Delta is defined
...
enable/disable_z behave differently when PSU_Delta is defined.
During powerpanic and kill however we do *really* need to save energy
and poweroff the motors.
Rename enable/disable_z as poweron/poweroff_z and define some aliases so
that we can use the low-level function where needed.
2020-01-27 18:50:17 +01:00
Yuri D'Elia
5d88573711
Save/restore hotend temperatures above 255C in PowerPanic
...
Use 2 bytes to store extruder temperature during UVLO.
Re-use the storage of EEPROM_UVLO_TINY_Z_MICROSTEPS which has been freed
by previous changes.
Fixes #2303
2020-01-27 14:59:18 +01:00
Yuri D'Elia
50a9fe003a
Bump the unparking speed to 50mm/s (same as M600 recovery)
2020-01-27 11:08:28 +01:00
Yuri D'Elia
eb2ca78167
Rewrite uvlo handling for accurate Z re/positioning
...
- In both uvlo_ and uvlo_tiny, calculate Z usteps properly and adjust
the Z position to a true fullstep before disabling the motor. This
avoids shifs during recovery.
- In uvlo_tiny, instead of moving up indefinitely, adjust Z just
once using the smallest move possible (new def UVLO_TINY_Z_AXIS_SHIFT)
- Perform all the uvlo/recovery processing in physical coordinates
and MBL off: there should be no automatic Z movement!
- Disable heaters in both handlers to conserve more power.
- Add timing information to uvlo_tiny too.
- During recovery, to switch between physical and logical positioning
introduce a new "PRUSA MBL" gcode as most of the procedure is
enqueued, and no existing gcode was available.
2020-01-26 17:46:50 +01:00
Yuri D'Elia
11a0e95f60
Re-enable the code that moves the extruder during PP
...
There is frequently plenty of power left during a PP. Take advantage of
it by moving the extruder to either side of the axis to detach
completely the nozzle from the print.
Re-enable Z during this move to avoid losing the current step.
2020-01-26 17:46:50 +01:00
Yuri D'Elia
0702e0de6e
Use world2machine instead of repeating code
2020-01-26 17:46:50 +01:00
Yuri D'Elia
ec5cbf73b9
During PP keep the watchdog waiting for longer
...
When the printer is connected to a USB host during a PP (and the host
does not lose power), the rambo can linger for longer, sometimes for
long enough to recover the print state. Drain some more power.
2020-01-26 17:46:50 +01:00
Yuri D'Elia
ec8b5aaa34
Do not attempt to "zero-phase" the microstep counter
...
If the motors are off-phase, this is more likely to "bump" them to an
incorrect/reverse full-step, doing worse.
We need to ensure the motors are already positioned on a fullstep
during power panic instead.
Remove the PSU_DELTA exception: Z _always_ needs to be powered here.
2020-01-26 17:46:26 +01:00
Yuri D'Elia
5310181970
Cancel a recovering print when using the LCD "Stop"
...
Also clear the UVLO flag when using lcd_print_stop. This prevents an
aborted print which has been cancelled while unparking (just prior to
recover) to come back again at the next startup.
2020-01-26 17:45:47 +01:00
Alex Voinea
4055977a95
Do not clear axis known position when Z is set to silent
...
Also removed unused (forgotten) variable.
2020-01-25 11:41:27 +02:00
3d-gussner
6d721c9b82
Merge remote-tracking branch 'upstream/MK3' into MK3-Fix_M120_M121
...
Fix merge with FW3.9.0-beta
2020-01-23 14:46:48 +01:00
Alex Voinea
2e50954710
Merge branch 'MK3' into MK3_fix_selftest_Z_crash2
2020-01-22 14:56:54 +02:00
MRprusa3d
73527d6069
selfTest workflow optimalization
2020-01-22 04:45:13 +01:00
Yuri D'Elia
7f3d4a8491
Restore the last E axis position correctly after powerpanic
...
- Initially restore the last E position from the eeprom in any case, not
just when using absolute mode (although unnecessary: since it will be
reset later), fixing a possible unitialized position and crash during
recovery (thanks to @leptun)
- Remove useless extra calls to put the extruder in relative mode:
the extruder already starts in relative mode and is later switched to
absolute.
- Replace incorrect calls to STRINGIFY with sprintf_P
- Retract after pressure has been restored in uvlo_tiny, to be
consistent with a regular uvlo (remove the bogus double unretract
as a result).
- Set the real E position prior to the panic *after* the retraction,
using the now-fixed G92.
2020-01-21 17:41:43 +01:00
Yuri D'Elia
4c8f1e8b89
Use eeprom_update_word instead of EEPROM_save_B
2020-01-21 16:36:34 +01:00
Yuri D'Elia
9ac80f73f2
Remove an useless/duplicate Z move
...
Likely a result of a merge
2020-01-21 16:34:09 +01:00
Yuri D'Elia
8437630122
Inhibit serial processing in uvlo_
...
Do not process serial commands when re-enabling the global isr.
While printing via USB and a power panic is triggered, *any* extra
command should be ignored.
Abuse the "saved_printing" variable to inhibit serial processing.
2020-01-21 16:29:12 +01:00
Yuri D'Elia
e8f05d0668
Heat both nozzle/bed together while recovering a print
2020-01-21 16:26:16 +01:00
Yuri D'Elia
67decb466d
Avoid another call to st_get_position_mm
...
current_position is already filled by planner_abort_hard.
2020-01-21 16:24:19 +01:00
Alex Voinea
e6ba9e633c
Adjusted hotend, bed and Ambient mintemp values
2020-01-21 14:50:53 +02:00
odaki
a2692665f8
Merge remote-tracking branch 'upstream/MK3' into flashair_display_ip
2020-01-18 22:26:52 +09:00
DRracer
95a2ad533d
Version changed (3.9.0 build 3175)
2020-01-16 16:03:34 +01:00
odaki
b09761ed71
Remove '/*' from M46 source
...
I forgot to remove the unintended comment start mark when merge.
It has been deleted.
2020-01-16 21:38:39 +09:00
odaki
24b748c4ac
Merge remote-tracking branch 'upstream/MK3' into flashair_display_ip
2020-01-16 21:25:55 +09:00
Alex Voinea
1d17a37250
all axis -> all axes
2020-01-16 09:15:44 +02:00
leptun
ccd3885d84
rephrase G28 W
2020-01-15 23:01:09 +02:00
Alex Voinea
6a1eb63a52
Add @todo to M999
2020-01-15 22:41:02 +02:00
Alex Voinea
d676542229
Revert code changes
2020-01-15 22:38:00 +02:00
Alex Voinea
47ddc2e902
M204 - better old_new separation
2020-01-15 22:35:34 +02:00
Alex Voinea
622319f86c
Add missing LF
2020-01-15 22:30:53 +02:00
Alex Voinea
ea51696a68
Merge Special sections as requested
2020-01-15 22:30:43 +02:00
Alex Voinea
aac66d4a4b
Add missing quote
2020-01-15 22:21:23 +02:00
Alex Voinea
d95029bbc7
Merge remote-tracking branch '3d-gussner/MK3-Gcode_documentation' into MK3-Gcode_documentation
2020-01-15 20:17:51 +02:00
Alex Voinea
cabfc37f15
The other changes
2020-01-15 20:17:26 +02:00
3d-gussner
5ff6c1f22c
Merge remote-tracking branch 'upstream/MK3' into MK3-Gcode_documentation
2020-01-15 16:36:08 +01:00
Alex Voinea
4cf4720a15
Even more formatting fixes
2020-01-15 17:27:54 +02:00
Alex Voinea
7118007efe
Adjustments
2020-01-15 15:52:56 +02:00
Alex Voinea
7ea00a7efd
Fix typo in page description
2020-01-15 15:31:28 +02:00
Alex Voinea
8449136520
Separate M117 from the TMC2130 commands
2020-01-15 15:31:14 +02:00
Alex Voinea
4a4d7976d1
Fix PRUSA typo
2020-01-15 15:30:48 +02:00
Alex Voinea
55f3e7acaf
Merge branch 'MK3' into MK3-Gcode_documentation
2020-01-15 15:12:18 +02:00
DRracer
27f6807bd5
Merge pull request #2416 from wavexx/fix_G92_e_reset
...
Fix incorrect usage of plan_set_e_position() in G92 E*
2020-01-15 12:52:13 +01:00
DRracer
7230b99448
Merge pull request #2393 from wavexx/sync_before_resume
...
Sync before resume
2020-01-15 12:49:56 +01:00
DRracer
1a8420f3f9
Merge pull request #2383 from wavexx/fix_usb_resume_check
...
Fix fan_check_error check in usb print resume
2020-01-15 12:48:48 +01:00
DRracer
43870c4028
Merge pull request #2368 from wavexx/unretract_after_lcd_pause
...
Unretract when resuming a paused print
2020-01-15 12:47:24 +01:00
Yuri D'Elia
bab756699f
Fix incorrect usage of plan_set_e_position() in G92 E*
...
To maintain an accurate step count (which is required for correct
position recovery), any call to plan_set_position&co needs to be done
synchronously and from a halted state.
However, G92 E* is currently special-cased to skip the sync (likely to
avoid the associated performance cost), causing an incorrect E step
count and position to be set. This breaks absolute position recovery,
miscalculation of the LA factor and possibly other weird issues.
We rewrite the handling of G92 to always sync but still special-case the
frequent "G92 E0" for performance by using a free bit in the block flags.
To avoid a sync, we relay the request for reset first to the planner
which clears its internal state and then relays the request to the final
stepper isr.
2020-01-14 20:24:14 +01:00
odaki
99545a006c
M46 "Show the assigned IP address" activated
...
According to the reprap wiki, M46 has been assigned to display its assigned IP address, but has been disabled.
Now that Toshiba FlashAir IP address processing is working, I activate the M46 code so that I can read the IP address information via serial.
2020-01-12 12:45:43 +09:00
odaki
2ca1bc0acb
Support W-04 firmware 4.0.0.01+
...
W-04 needs to use CMD17 instead of CMD48 to retrieve iSDIO register memories.
To supporting both W-03 and W-04 card, I changed the readExt() code to use CMD48 first and use CMD17 if it returned some error.
This method is from the FlashAir developer sample code.
https://flashair-developers.github.io/website/docs/tutorials/arduino/2
2020-01-11 21:47:16 +09:00
DRracer
4c74866864
Merge pull request #1933 from prusa3d/enable_cutter
...
Enable MMU cutter.
2020-01-09 13:47:44 +01:00
Alex Voinea
32c9cd2307
Merge branch 'MK3' into fix_lcd_stop
2020-01-09 14:17:56 +02:00
DRracer
b088500eaf
Merge pull request #1909 from wavexx/MK3_LA15
...
Linear Advance 1.5 Returns
2020-01-09 11:22:06 +01:00
Alex Voinea
29d0537004
Adjusted progress bar
2020-01-08 21:32:45 +02:00
Alex Voinea
e295c83d09
Folder sorting shellSort
2020-01-08 21:16:08 +02:00
3d-gussner
6a7ae6231d
Merge remote-tracking branch 'upstream/MK3' into MK3_Dutch
2020-01-08 16:02:00 +01:00
3d-gussner
d895890608
Merge remote-tracking branch 'upstream/MK3' into MK3-Fix_M120_M121
2020-01-08 15:59:16 +01:00
3d-gussner
f3668cab92
Merge remote-tracking branch 'upstream/MK3' into MK3-Gcode_documentation
...
Fix merge issues with G90 and G91
2020-01-08 15:47:38 +01:00
Alex Voinea
7028583e9b
Merge branch 'MK3_ShellSort' into MK3_NEW_SD_COMPILATION
2020-01-08 16:27:31 +02:00
Alex Voinea
37dc5fed45
Merge branch 'MK3_revised_filename_scrolling' into MK3_NEW_SD_COMPILATION
2020-01-08 16:26:51 +02:00
DRracer
df300a2488
Merge pull request #2403 from leptun/MK3_unknown_Z_mark
...
Show ? near Z value if the position is unknown
2020-01-08 14:55:37 +01:00
DRracer
e15d5e21f5
Merge pull request #2402 from leptun/MK3_sheet_on_status_screen
...
Do not show sheet on status screen if less than 2 are initialized
2020-01-08 14:42:29 +01:00
DRracer
2f2e415eae
Merge pull request #2382 from wavexx/fix_lcd_stop
...
Fix lcd "Stop" when used within a pause
2020-01-08 14:40:54 +01:00
DRracer
3ef1c52a0a
Merge pull request #2381 from wavexx/remove_relative_mode
...
Remove "relative_mode", only use "axis_relative_modes"
2020-01-08 14:39:43 +01:00
Alex Voinea
8b0f0695a8
Merge branch 'MK3_fix_shorter_sheet_name_on_status_screen' into MK3_sheet_on_status_screen
2020-01-08 15:31:33 +02:00
Alex Voinea
9abdf4e535
Show ? near Z value if the position is unknown
2020-01-08 13:46:51 +02:00
Alex Voinea
c5324291ad
Do not show sheet on status screen if less than 2 are initialized
2020-01-08 12:48:41 +02:00
Alex Voinea
d9e5283526
Fix pause->stop->PrintFromSD scenario
2020-01-07 21:02:13 +02:00
Alex Voinea
1996fc7940
Remove commented-out code
2020-01-07 20:43:56 +02:00
Alex Voinea
4422fc29f8
Set XYZ to absolute and E to relative
2020-01-07 20:42:21 +02:00
Alex Voinea
f8a0d5d773
Fix lcd_print_stop function
2020-01-07 19:54:06 +02:00
Alex Voinea
df0d781c20
Merge branch 'MK3' into fix_lcd_stop
2020-01-07 19:53:55 +02:00
Alex Voinea
1ba89b9689
Merge branch 'MK3' into MK3_ShellSort
2020-01-07 14:18:31 +02:00
Alex Voinea
b05ee33fc9
Merge branch 'MK3' into MK3_BED_LEVELING_PWM
2020-01-07 07:58:32 +02:00
odaki
f923427dc1
Show the FlashAir IP address
...
Displays the FlashAir IP address in the "Support" menu if the card is available.
If no IP address has been assigned yet, "0.0.0.0" will be displayed.
2020-01-04 12:51:20 +09:00
Yuri D'Elia
853991865c
Improve raise_z_above to always raise when at Z_MIN
...
When check_z_endstop is set, Z_MIN_PIN is checkend regardless of the
moving direction to support Z calibration. This prevents the ability
to use _just_ SG when moving upwards.
But since we know the extruder is at Z_MIN, it's always safe to raise
irregardless, so we can dodge the issue.
2020-01-02 18:07:30 +01:00
Yuri D'Elia
5660fcffb0
Do not enqueue a E/Z moves unless requested
...
Do not unconditionally enqueue a Z move if no move has been requested.
Since Z is calculated using the absolute current (saved) position and
scheduled for later execution, the queue order becomes relevant.
2019-12-30 14:49:07 +01:00
Yuri D'Elia
86696156af
Improve K error checking, allow to manually reset the version
...
Properly check K independently for each version by delegating it to la10c_value()
Handle -1 as a special case to allow manual reset.
2019-12-30 14:31:39 +01:00
Yuri D'Elia
57be14fca6
Complete all pending moves before restoring a saved print
2019-12-30 13:30:06 +01:00
Yuri D'Elia
fd0ed1f0ea
Move LA reset from G28 to G80, do not reset on 0
...
In preparation for #2161 , use MBL (G80) as a "new print" boundary
instead of just re-homing to ensure the reset is issued only once for
each print.
Similarly, do not reset the autodetection when LA is disabled via M900
K0. This can/will be used during a print if different quality settings
are used for different filling roles.
2019-12-30 11:32:27 +01:00
Yuri D'Elia
d78636c308
Do not synchronize on M900
...
Since the advance factor is computed per-segment in LA15, there's no
need to stop the planner. Allow changing K freely at each segment.
This allows varying quality factors for different filling roles, see:
https://github.com/supermerill/Slic3r/issues/108
During pause/resume/crashdetect or powerpanic K might temporarily be out
of sync when used this way. If this becomes an issue, we might need to
store K for each block, as done for the feedrate.
2019-12-29 23:25:16 +01:00
Yuri D'Elia
f5d382f9f4
Remove useless st_synchronize calls when unparking
2019-12-29 22:20:24 +01:00
Yuri D'Elia
186f881600
Avoid calling fsensor_update() one level earlier
...
Move the common checks between filament sensors out of fsensor_update().
Disable the runout check if a saved state is already present (this check
was missing in the PAT9125 variant) as this is currently not supported.
Note that the CHECK_FSENSOR looks completely redundant besides
e_active().
2019-12-29 22:08:44 +01:00
Yuri D'Elia
bd80ee88a0
Set the IN_HANDLER busy state while checking the filament
2019-12-29 21:27:42 +01:00
Yuri D'Elia
97170ed68d
Do not call process_commands() within fsensor_update()
...
Plan moves directly to reduce the required stack size.
2019-12-27 19:37:20 +01:00
Yuri D'Elia
fe4c00fb8a
Lift the extruder when checking for the filament
...
This avoids leaving marks on the print
2019-12-27 19:35:08 +01:00
Yuri D'Elia
301d64042b
Set fsensor_watch_runout earlier to prevent re-entry
...
Do not set/clear fsensor_watch_runout within fsensor_oq_meassure_start
which is used outside of fsensor_update where it could have a different
starting value.
Set it within fsensor_stop_and_save_print to immediately prevent
re-entry.
2019-12-27 19:34:36 +01:00
Yuri D'Elia
a31319888c
Fix fan_check_error check in usb print resume
...
Also check for fan_check_error == EFCE_OK in addition to EFCE_FIXED.
Reorganize the check in order to fix both #if[n]def FANCHECK cases,
as similarly done in the SDSUPPORT case a few lines below.
2019-12-23 19:12:46 +01:00
Yuri D'Elia
7b29ce29b4
Add a Linear Advance 1.0->1.5 compatibility layer
...
Allow existing gcode using LA10 to transparently take advantage of LA15
by using a simple linear conversion function based on experimental
results with the MK3 implementation of linear advance.
Autodetect LA10 values based on the first M900 instruction contained in
the print. In order to support printing mixed files without resetting
the printer we also reset the autodetection status when starting a new
SD print and/or when explicitly disabling LA.
Since we cannot reliably detect whether a new print is started when
printing via USB, also reset the detection status when homing in G28,
which is generally performed once at each print. Note that this doesn't
clear the previous K value, it only allows a subsequent M900 to provide
LA10 values when printed after a LA15 file.
2019-12-21 23:22:35 +01:00
Yuri D'Elia
c0ae92cd2a
Remove "relative_mode", only use "axis_relative_modes"
...
axis_relative_modes can cleanly handle G90/G91 and M82/M83 without the
need of "relative_mode" entirely.
Change G90/G91 to simply reset all axes according to the requested
state, which avoids to check two variables in get_coordinates(),
fixing the following incorrect handling:
G91 ; all axis relative
M83 ; set extruder absolute
G1 E1 ; should be an absolute move, but still relative
2019-12-20 18:47:30 +01:00
Yuri D'Elia
8d60e4d6db
Merge remote-tracking branch 'upstream/MK3' into MK3_LA15
2019-12-18 18:28:41 +01:00
Alex Voinea
f071aec747
Fix sheet minimum width on the status screen
2019-12-18 08:52:25 +03:00
Alex Voinea
f0f7db57ea
Fist attempt at "saved position SD menu"
2019-12-17 00:45:25 +02:00
Alex Voinea
3ad611ca16
Merge branch 'MK3' into MK3_revised_filename_scrolling
2019-12-16 21:39:27 +02:00
Yuri D'Elia
8d490f941a
Make use of the CRITICAL_SECTION macros in lcd_print_stop
2019-12-16 16:39:20 +01:00
Yuri D'Elia
0cc68228f8
Unretract when resuming a paused print
2019-12-16 16:33:11 +01:00
DRracer
955c88cf68
Merge pull request #2370 from wavexx/no_resume_while_resuming
...
Do not allow to resume a print twice while waiting for the hotend
2019-12-16 16:26:02 +01:00
Yuri D'Elia
faa76df2fe
Fix the "Stop print" behavior from the LCD
...
Correctly cleanup the printer state when stopping the current print:
- Disable interrupts while aborting the planner/queue to ensure
new serial commands are not inserted while aborting
- _Always_ call planner_abort_hard() to interrupt any pending move!
- Clear the saved_target, which might be set when calling stop
from within a paused state. Create a new function to clear the
paused state for future use.
- Do not disable/reset the MBL: doing so will destroy the ability to
restart correctly using M999.
2019-12-16 15:52:37 +01:00
Alex Voinea
a8e6020238
Fix VERBOSITY
2019-12-16 15:21:55 +02:00
Yuri D'Elia
348bbbffb0
Do not allow to resume a print twice while waiting for the hotend
...
Clear isPrintPaused just prior to restore_print_from_ram_and_continue.
2019-12-15 22:22:44 +01:00
DRracer
d4fab1a713
Merge pull request #2304 from 3d-gussner/MK3-Fix_M81
...
Fix M81 Turn off Power Supply...
2019-12-15 11:52:56 +01:00
DRracer
c45d4f4bba
Merge pull request #2088 from rhounsell/MK3
...
Fix for Toshiba FlashAir (or other) SD card initialization
2019-12-15 11:46:56 +01:00
DRracer
44288bfe90
Merge pull request #2309 from leptun/MK3_fix_MMU_pause_time
...
Fix MMU needs user attention Statistics error
2019-12-15 11:04:57 +01:00
DRracer
d6ac9e4638
Merge pull request #2342 from vintagepc/2306-hard-reset-homing-fails
...
Fix #2306 hard reset homing fails
2019-12-15 10:51:52 +01:00
DRracer
c122399020
Merge pull request #2270 from leptun/MK3-PFW-1024
...
PFW-1024
2019-12-15 10:25:37 +01:00
DRracer
d68d9c7fef
Merge pull request #2058 from leptun/MK3_fix_warnings
...
Fix "LANG_MODE 0" warnings
2019-12-15 09:29:27 +01:00
Alex Voinea
770fcd7c42
Merge branch 'MK3' into MK3-PFW-1024
2019-12-14 10:08:52 +02:00
DRracer
6ab3b20ce1
Merge pull request #2348 from leptun/MK3_fix_kill
...
Fix kill messages
2019-12-13 18:30:27 +01:00
DRracer
1423de10a9
Merge pull request #2362 from leptun/MK3_Fix_Lang_64K_limit
...
Fix optiboot erase function after address 0xFFFF. Allows language files greater than 64K
2019-12-13 13:59:23 +01:00
DRracer
30cee7afca
Merge pull request #2353 from wavexx/lcd_pause_fixes
...
Fix the LCD pause (regression)
2019-12-13 13:53:29 +01:00
DRracer
838cec75ec
Merge pull request #2352 from wavexx/fix_m603_regression
...
Use lcd_print_stop() in M603, fix octoprint regression
2019-12-13 13:52:40 +01:00
DRracer
a1bc4cc5dc
Merge pull request #2332 from leptun/MK3_Octoprint_fIxes
...
Do not check for fanError if it is not enabled on resume
2019-12-13 13:47:56 +01:00
Alex Voinea
89dfb00b04
Fix optiboot erase function after address 0xFFFF
2019-12-08 08:43:43 +02:00
Yuri D'Elia
0b9123ce24
Fix Live K, allow "Advance K" to be translated
2019-12-05 15:18:24 +01:00
Yuri D'Elia
5122f79a39
Merge remote-tracking branch 'upstream/MK3' into MK3_LA15
2019-12-04 17:27:23 +01:00
Yuri D'Elia
19589f02f1
Remove an unused define
2019-12-04 17:22:21 +01:00
3d-gussner
17e23693eb
Fixed stuipid copy paste error
2019-12-04 14:21:43 +01:00
3d-gussner
0cafd10378
minor fix
2019-12-04 13:43:19 +01:00
3d-gussner
f7bfca3061
Fix merge issues
2019-12-04 13:39:56 +01:00
3d-gussner
7da1db2f25
Merge remote-tracking branch 'upstream/MK3' into MK3-Gcode_documentation
2019-12-04 13:35:09 +01:00
3d-gussner
fb3c65b3dc
fixed links to RR Wiki
2019-12-04 12:38:43 +01:00
3d-gussner
cdc6beaf6f
Added M910 -> M918
2019-12-04 12:25:33 +01:00
3d-gussner
a5f3027ee1
D2130 updated
...
Needs review
2019-12-04 11:38:29 +01:00
Yuri D'Elia
8448b8d413
Keep destination updated in an aborted plan as well
...
When aborting the plan destination is updated anyway to reflect the latest
position. There's no use in this additional check.
2019-12-03 20:37:13 +01:00
Yuri D'Elia
063d0421ac
Call long_pause from the main loop (again)
...
After calling stop_and_save_print_to_ram, perform the parking moves
within the main loop as done before PR#1899 to avoid planning within
an interrupted move (which would clear the abort flag too soon).
2019-12-03 20:37:13 +01:00
Yuri D'Elia
d60230e494
Add some documentation
2019-12-03 20:37:13 +01:00
Yuri D'Elia
792d7ca6dc
Turn off heaters just prior to retraction to limit oozing
2019-12-03 20:37:13 +01:00
Yuri D'Elia
4fce74140a
Also abort planning in stop_and_save_print_to_ram
...
Similarly to resume_print_from_ram_and_continue, abort any
planning in mesh_plan_buffer_line already in stop_and_save_print_to_ram
in case it is called for pausing only.
2019-12-03 20:37:09 +01:00
3d-gussner
0ce7c51c1d
Added more D-codes to RR Wiki and doxygen
...
D-1, D80, D81, D106
2019-12-03 20:02:58 +01:00
Yuri D'Elia
454e99dbb5
Use lcd_print_stop() in M603, fix octoprint regression
...
M603 shouldn't report a fatal error state.
Use lcd_print_stop().
Regression introduced in PR #2274
2019-12-03 16:51:59 +01:00
Alex Voinea
63655a906a
Merge branch 'MK3' into MK3_revised_filename_scrolling
2019-11-30 01:31:48 +02:00
Alex Voinea
56193ea252
Merge branch 'MK3' into MK3_TONE
2019-11-29 23:16:46 +02:00
Alex Voinea
e7f2577233
Fix kill messages
2019-11-29 22:49:22 +02:00
Alex Voinea
103e29d38a
Merge branch 'MK3' into MK3_ShellSort
2019-11-29 16:52:20 +02:00
DRracer
15bfb7013d
Merge pull request #2274 from wavexx/fix_mesh_plan_buffer_line
...
PFW-1028: Fix recovery from filament sensor checks / crash detect / power panic
2019-11-29 15:18:15 +01:00
Alex Voinea
779423f0e7
Move hardcoded values to variants
2019-11-29 15:06:54 +02:00
Alex Voinea
a413cfbb9a
Merge branch 'MK3' into MK3-PFW-1024
2019-11-29 13:07:45 +02:00
Yuri D'Elia
dbe2ed4150
Fix pause/resume when using M25/M601
...
Remove the conflicting and mostly useless card.paused flag (the printing
is either paused, or not) and switch to isPrintPaused only which
accounts for both cases (SD/USB) correctly.
Fix M27/getStatus to show the current real status of the SD print.
Synchronize the queue on M601, as required to precisely pause the print
at the correct instruction.
Alias M25 to M601, which when combined with PR #1899 fixes issue #1614 .
Guard against incorrect usage in M601, M602 and M603.
2019-11-28 17:37:58 +01:00
Yuri D'Elia
18eaf21baf
Halve memory usage of saved feedrate
...
Truncate the saved feedrate to an uint16_t.
This is more than sufficient for recovery.
2019-11-28 17:16:37 +01:00
Yuri D'Elia
17176c1df2
Save/restore the default feedrate correctly
...
Since the global feedrate can be similarly modified for moves ahead of
time, save the original feedrate in the planner as we do for
gcode_target.
This avoids having to undo feedmultiply (and machine limits!) from
"nominal_speed" as previously done.
Thanks @leptun
2019-11-28 17:16:37 +01:00
Yuri D'Elia
4f0af648fb
Save/restore feedmultiply independently of the feedrate
2019-11-28 17:16:36 +01:00
Yuri D'Elia
6ecff003b7
Fix M600 insertion by the filament sensor
...
Remove incorrect usage of stop_and_save_print combined with the
fsensor_recovert internal instruction which would result in a
broken sequence of events and/or broken stack.
Re-use the now safe stop/recover functions in the same spot
(fsensor_checkpoint_stream) to effectively cut a hole in the current
gcode stream to insert an M600 instruction, which removes all
recursive behavior without the need of extra state variables.
2019-11-28 17:13:37 +01:00
Yuri D'Elia
4268c2fdae
Fix recovery from relative/chunked moves
...
When starting to replay existing USB/SD commands from a recovery state,
an immediate relative move needs to compensate for a previously
interrupted move. This is almost the norm for the E axis.
Instead of saving the relative status of the move (which needs to
account for the world2machine conversion and is not always available on
a chunked move split by MBL) save directly the calculated target
position for the move in the original plan, which is easy to replay.
2019-11-28 16:42:35 +01:00
Yuri D'Elia
faa9e925fe
Replace a few loops with set_current_to_destination()
2019-11-28 15:57:21 +01:00
Yuri D'Elia
5fa7c178b5
Do not set current_position in mesh_plan_buffer_line
...
This is a task which _has_ to be performed by the caller,
such as prepare_move().
2019-11-28 15:57:21 +01:00
Yuri D'Elia
0f6b9b4051
Unroll the stack in restore_print_from_ram_and_continue
...
While handling moves in a recursive plan, such a filament check,
ensure restore_print_from_ram_and_continue unwinds the stack by
aborting early from any call that waits on the planner.
This currently only handles G1 moves, but hard-coded behavior that can
trigger recursive behavior (such as filament change) will probably have
to be checked too.
2019-11-28 15:57:20 +01:00
Yuri D'Elia
404802b5e6
Clear "sdprinting" state only when all SD moves are complete
...
Ensure card.printingHasFinished sees all the planned moves before
clearing sdprinting. To do that, we need to ensure all SD commands
exited the command queue.
2019-11-28 15:57:20 +01:00
Alex Voinea
7753750fa7
Change for to while
2019-11-27 17:31:47 +02:00
3d-gussner
660b646b57
RR Wiki for Dcodes
...
open D-1, D80, D81, D106, D2130
2019-11-27 11:29:55 +01:00
Alex Voinea
11ba616d73
Define for dumping sorting process
2019-11-27 11:03:34 +02:00
3d-gussner
475551431c
How does M862.5 P works???
2019-11-26 20:21:05 +01:00
3d-gussner
84cb373905
More G codes documented in RR wiki
...
M44, M45, M47, M403, M509, M851, M601, M602, M603, M862
2019-11-26 20:11:55 +01:00
Alex Voinea
66e51aa298
Folder sorting finished
2019-11-26 15:49:45 +02:00
Alex Voinea
f5bdbcc0bd
Cleanup file compare statement
2019-11-26 14:10:44 +02:00
Alex Voinea
a7f2e640e0
Put folders at the beginning
2019-11-26 13:57:08 +02:00
3d-gussner
5eaf6f0133
Merge branch 'MK3' into MK3-Gcode_documentation
...
Merge with MK3 branch
2019-11-26 12:48:21 +01:00
Alex Voinea
960f4a88ed
Status bar, lcd optimization, compile warning fix
2019-11-26 13:36:28 +02:00
Alex Voinea
f87b5a2be7
SORTING_DUMP
2019-11-26 12:18:11 +02:00
Alex Voinea
b803b2a2dd
Another first implementation
2019-11-26 11:29:57 +02:00
DRracer
35ce2896bb
Merge pull request #2339 from leptun/PFW-943
...
PFW-943: IR sensor gen. II - Updated PR
2019-11-25 06:23:24 +01:00
DRracer
abb220ff69
Merge pull request #2323 from Panayiotis-git/MK3_Fix_M603
...
Add oversighted ‘break’ statement at the M603 command's source
2019-11-25 06:04:41 +01:00
Alex Voinea
d40656e3ca
Small changes to rendering
2019-11-24 19:16:22 +02:00
Alex Voinea
273d834b19
Fix card removal
2019-11-22 20:27:24 +02:00
Alex Voinea
2fd192a95d
Set scroll delay to 300ms
2019-11-22 20:14:55 +02:00
Alex Voinea
fdab70fa3a
Dir fixes
2019-11-22 14:39:21 +02:00
vintagepc
982c4cbf7b
Candidate fix for homing fail hard reset
2019-11-21 18:51:02 -05:00
Alex Voinea
8a806bceea
SDDIR
2019-11-21 21:32:52 +02:00
Alex Voinea
6538262e75
First build that actually works
2019-11-21 19:04:45 +02:00
Alex Voinea
8f901d2613
Temporary fix
2019-11-21 14:58:13 +02:00
Alex Voinea
b3a587f5a4
SD first attempt. Broken
2019-11-20 20:25:51 +02:00
Alex Voinea
45b89c5728
Fix typo
2019-11-19 13:55:37 +02:00
Alex Voinea
e66574ac5f
Updated branch to use TOGGLE
2019-11-19 13:51:10 +02:00
MRprusa3d
6e2793566c
Merge branch 'MK3' into PFW-943
2019-11-18 14:43:46 +01:00
Alex Voinea
b077303156
Fix compile error
2019-11-17 11:10:13 +02:00
Alex Voinea
14104e7bf9
Clear error flag when fanError is disabled
2019-11-17 10:44:11 +02:00
Alex Voinea
2e0034d915
Update Toggles and Translations
2019-11-17 09:53:14 +02:00
Alex Voinea
359c447127
Do not check for fanError if it is not enabled on resume
...
Fix typos
2019-11-16 22:44:34 +02:00
Alex Voinea
07b6173aaa
Merge branch 'MK3' into MK3-PFW-1024
2019-11-16 11:28:29 +02:00
DRracer
e2e32b455a
Merge pull request #2247 from mkbel/reset_live_Z+offset
...
Show current Z offset in reset dialog before first layer calibration
2019-11-15 17:52:29 +01:00
DRracer
460f6c3b5e
update message
2019-11-15 17:47:39 +01:00
DRracer
86ea24c364
Merge pull request #2273 from wavexx/do_not_wait_for_disabled_heater
...
Do not wait forever if the heater on the extruder is disabled
2019-11-15 17:19:11 +01:00
DRracer
715794d854
Merge pull request #2092 from leptun/MK3_Translations
...
PFW-1062: Mk3 Toggle and Translations
2019-11-15 16:53:17 +01:00
DRracer
3a41405f52
Merge pull request #2146 from vintagepc/MK3-2093-sheet-display
...
PFW-1061: #2093 - Relocate sheet menu, show sheet on info screen
2019-11-15 16:07:51 +01:00
vintagepc
f6c35c5d5f
Removed separate fix for #2089
...
Per PR fix request
2019-11-15 08:58:58 -05:00
DRracer
8fae50ec79
Merge pull request #2315 from mkbel/finda
...
PFW-1047: Show FINDA state as N/A if last received response is older than 1s.
2019-11-15 12:53:01 +01:00
DRracer
56251c4f99
Merge pull request #1937 from arons/MK3
...
added new function belt test under calibration menu
2019-11-15 09:39:42 +01:00
DRracer
9e780f0b2b
remove ESC sequence
2019-11-15 09:26:56 +01:00
Alex Voinea
e559a6b67f
Merge branch 'MK3' into MK3_BED_LEVELING_PWM
2019-11-13 14:32:57 +02:00
leptun
28e812d91f
Mesh bed leveling testing
2019-11-13 14:32:33 +02:00
Panayiotis-git
23cf076242
Add oversighted ‘break’ statement at the M603 command's source
2019-11-12 21:32:39 +02:00
Alex Voinea
11428388c6
MBL toggle and cleanup
2019-11-09 20:58:56 +02:00
Alex Voinea
20a59f5f40
Temp cal.
2019-11-08 19:44:48 +02:00
3d-gussner
422e7fde4a
Merge branch 'MK3' into MK3-Gcode_documentation
2019-11-08 18:16:56 +01:00
DRracer
c82fa07299
Merge pull request #2195 from leptun/MK3-fix-LFN
...
Fix short filenames scrolling in sdprint menu and status screen
2019-11-08 16:52:53 +01:00
DRracer
21dd8eadd1
Merge pull request #2188 from mkbel/cut_last_try
...
Use MMU cutter only as last resort.
2019-11-08 16:49:28 +01:00
DRracer
ce5efb107a
Merge pull request #2155 from leptun/MK3_SD_scroll_workaround
...
SD Scroll workaround
2019-11-08 16:48:38 +01:00
DRracer
4cf2f05d1d
Merge pull request #2057 from leptun/MK3_fix_M350
...
M350 for all axis - MK3
2019-11-08 16:15:15 +01:00
DRracer
a14d7545a5
Update Marlin_main.cpp
2019-11-08 16:06:42 +01:00
DRracer
b33c79e6c7
Merge pull request #1899 from wavexx/fix_lcd_pause_function
...
Fix the LCD pause function
2019-11-08 14:55:13 +01:00
DRracer
42d70f3dea
Merge pull request #1768 from wavexx/unknown_z_improvements
...
"Unknown z" improvements
2019-11-08 14:52:56 +01:00
Alex Voinea
1de353dd09
Merge branch 'MK3' into MK3_Translations
2019-11-07 17:02:45 +02:00
3d-gussner
5bd995b21b
Added more info to doxygen G-Codes
2019-11-06 11:14:06 +01:00
3d-gussner
e6eeafd20c
More M-Commands ...
2019-11-05 15:47:04 +01:00
3d-gussner
ca234a11ed
M-Commands to M240
2019-11-05 12:40:51 +01:00
3d-gussner
8114bd5b1c
Merge with MK3 and few spaces
2019-11-05 09:05:05 +01:00
3d-gussner
58404b9c9d
Merge branch 'MK3' into MK3-Gcode_documentation
2019-11-05 09:04:52 +01:00
DRracer
e56cb14bb9
Merge pull request #1739 from draeath/MK3-fix-sdcard-sorting
...
use modification times for sdcard time sorting. fixes #477
2019-11-04 17:31:38 +01:00
DRracer
3c26f7855b
Merge pull request #1704 from leptun/MK3_Enable_fan_waiting_cooldown
...
Enable print fan while waiting for cooldown
2019-11-04 16:52:26 +01:00
leptun
459385708e
Fix MMU needs user attention Statistics error
2019-11-02 13:15:13 +02:00
leptun
cd5ff783cf
General fixes and improvements to code
2019-10-31 19:07:20 +02:00
Marek Bel
76c39ce689
Show FINDA state as N/A if last received response is older than 1s.
2019-10-31 17:45:22 +01:00
3d-gussner
4501f9d760
M commands documentation #2
2019-10-31 15:46:23 +01:00
3d-gussner
21dcfb23f4
Follow RepRap Wiki G-codes documentation
...
M120 is Enable endstops
M121 is disable endstops
I guess this was just a typo issue.
2019-10-31 15:31:08 +01:00
3d-gussner
c899320590
Fix M81 Turn off Power Supply...
...
... as it should be active if PS_ON_PIN is defined and assinged to an actual pin.
2019-10-31 15:08:07 +01:00
leptun
1e09f8c003
Wake on certain events
...
EEPROM DIM and BRIGHT values swapped!!!
2019-10-30 21:11:19 +02:00
3d-gussner
ce8dbb5013
M commands documentation #1
2019-10-30 18:52:25 +01:00
3d-gussner
b9dca5f895
other doxygen format changes
2019-10-30 15:52:27 +01:00
3d-gussner
d472f0730c
Change doxygen format
2019-10-30 15:50:23 +01:00
3d-gussner
986ac95c45
G codes documented ... next M commands
2019-10-30 11:19:51 +01:00
3d-gussner
8f05627747
Update #1 gcodes doxygen documentation
...
added some RepRap G-codes Wiki external links.
2019-10-25 13:04:04 +02:00
3d-gussner
c772fd2cae
Merge branch 'MK3' into MK3_Dutch
2019-10-24 16:44:27 +02:00
Marek Bel
023ce01f9d
Version 3.8.1 final.
2019-10-24 16:12:46 +02:00
3d-gussner
a4211da8f0
Merge branch 'MK3' into MK3_Dutch
2019-10-24 15:39:32 +02:00
XPila
b603528bfd
Merge pull request #2291 from DRracer/lang-381-fixes-4
...
Lang 381 fixes 4
2019-10-23 15:04:39 +02:00
Yuri D'Elia
e25befa175
Fix include guard to silence duplicate declaration warnings
2019-10-22 15:49:10 +02:00
Yuri D'Elia
50231b76da
Improved handling of unknown Z position
...
- Introduce raise_z_above to move Z carefully when the current position
is potentially unknown, using stallguard
- Use raise_z_above for:
* filament loading/unloading clearance
* extruder spacing when preheating (to avoid buildplate marks on PEI)
* before homing to avoid damaging the build plate and to avoid
repeated Z moves as well
Since raise_z_above is conditional, it will only raise when needed.
Calling raise_z_above when the extruder position is unknown and already
at maximum travel is safe and will prevent further vertical moves.
2019-10-22 15:49:10 +02:00
DRracer
d32fd1d893
Better EN for new messages
2019-10-22 09:11:47 +02:00
leptun
4943e17bda
Preserve power during PP by turning off backlight
2019-10-19 18:45:31 +03:00
leptun
d7b12faa95
Add "Brightness" to Tune menu
2019-10-19 18:45:04 +03:00
leptun
0ed4a23ae7
And another compile fix...
2019-10-18 12:42:55 +03:00
leptun
9fc42526e7
Backlight always on during calibration
2019-10-18 12:18:43 +03:00
leptun
91e94aa0e8
Adjustable timeout
2019-10-18 10:32:41 +03:00
leptun
d432c3644d
Enable beeping after fan error is fixed
2019-10-18 09:13:19 +03:00
leptun
ea8d9ae49d
Merge branch 'MK3' into MK3_Octoprint_fIxes
2019-10-18 08:45:22 +03:00
leptun
ace1d7049a
Reenable command processing when issue is fixed if printer not active
2019-10-17 17:49:15 +03:00
leptun
812eafd09c
Fix compile for miniRambo
2019-10-17 13:14:32 +03:00
leptun
25e0d23efe
Backlight overhaul and UI changes
2019-10-17 13:11:32 +03:00
DRracer
04bfe674df
tiny lang fixes, part 1
2019-10-16 16:32:49 +02:00
leptun
3b005ae38f
Backlight detection
2019-10-16 14:40:45 +03:00
DRracer
5a4126e00c
Merge pull request #2263 from leptun/MK3-Fix_PSU_DELTA_SILENT
...
PSU_DELTA fix force_high_power_mode()
2019-10-16 13:22:22 +02:00
Yuri D'Elia
7f3ba499a0
Do not wait forever if the heater on the extruder is disabled
2019-10-15 20:54:00 +02:00
leptun
5a662413e6
Fix compile for printer without backlight support
2019-10-13 14:34:04 +03:00
leptun
75f389a71d
Auto-Dimming initial
2019-10-13 14:31:43 +03:00
leptun
4703853a3d
Small fixes
2019-10-12 13:19:17 +03:00
leptun
350e27810a
fix selftest Z crash. Use stallGuard when testing Z
2019-10-11 21:00:51 +03:00
leptun
b2a1dc6786
Compile fix for firmware without LCD_BL_PIN
2019-10-11 19:23:38 +03:00
leptun
68491c9d4d
First implementation
2019-10-11 19:06:37 +03:00
leptun
e3ac2e2509
PSU_DELTA fix force_high_power_mode()
2019-10-10 19:01:57 +03:00
leptun
dde61bb444
Automaton changes. Keep heater ON during probing only if pwm is high
2019-10-06 12:44:45 +03:00
leptun
7650e2b60c
Handle disable_heater()
2019-10-06 12:43:03 +03:00
leptun
570b5989f4
Disable bed PWM while probing bed.
2019-10-06 10:50:11 +03:00
Marek Bel
219a5e0625
Initialize EEPROM_SILENT in one place both for MK3 and MK25 printers and make it more clear.
2019-10-03 21:25:52 +02:00
3d-gussner
b52f42b397
Merge branch 'MK3' into MK3_Dutch
2019-10-03 18:54:53 +02:00
Marek Bel
0dde5e3167
Increase version.
2019-10-03 17:37:22 +02:00
Marek Bel
4fc4cf9c11
Increase version and commit number.
2019-10-03 17:30:14 +02:00
Marek Bel
7feb763643
Move check for clear EEPROM just after factory_reset() to ensure nothing is written to EEPROM before check.
...
Fix wizard not starting after Factory RESET / All Data on MK25 printer.
This was broken by:
Author: leptun <voinea.dragos.alexandru@gmail.com>
Date: 3 weeks ago (9/12/2019 6:16:31 AM)
Commit hash: 78708903e8
Also update eeprom value
2019-10-02 18:38:46 +02:00
3d-gussner
a4e9f08e16
Merge branch 'MK3' into MK3_Dutch
2019-10-02 11:11:28 +02:00
Marek Běl
05e23d1468
Merge branch 'MK3' into MM_lay1_cal
2019-10-01 23:08:11 +02:00
DRracer
ff7260dc6e
Merge pull request #2246 from mkbel/reset_live_Z
...
Reset live z
2019-10-01 23:02:40 +02:00
Marek Bel
74a1c9341b
Revert "Use content supplied strings for lcd_first_layer_calibration_reset(), as we have translations prepared for release. It will be reverted later to show current Z offset."
...
This reverts commit ca9ef3aba1 .
2019-10-01 22:57:59 +02:00
Marek Bel
ca9ef3aba1
Use content supplied strings for lcd_first_layer_calibration_reset(), as we have translations prepared for release. It will be reverted later to show current Z offset.
2019-10-01 22:57:15 +02:00
Marek Běl
210d7f6bf1
Merge pull request #2245 from DRracer/knob-long-press
...
Knob long press fixes
2019-10-01 22:33:26 +02:00
Marek Bel
087d3cb250
Continue to lcd_v2_calibration() after selection is made in lcd_first_layer_calibration_reset(). Do not ask for selection if sheet is not calibrated, it is calibrated to zero offset or no first layer calibration was ever made.
2019-10-01 21:04:00 +02:00
Marek Bel
aabf7655dc
Do all text formatting in first layer calibration reset dialog in one line.
2019-10-01 19:20:36 +02:00
leptun
6bd35bfa2f
Increase MENU_DEPTH_MAX to 7 to allow sheet calibration with MMU
2019-10-01 19:43:30 +03:00
Marek Bel
7c3f397a62
Print sheet name and Z offset in first layer calibration reset dialog.
2019-10-01 18:22:12 +02:00
leptun
b39f09b68e
Merge branch 'MK3' into MM_lay1_cal
2019-10-01 19:20:50 +03:00
DRracer
d044d3b7b5
Merge pull request #2244 from MRprusa3d/PFW-1008
...
EEPROM_BABYSTEP_Z using removal
2019-10-01 18:04:09 +02:00
DRracer
f3c3526aa5
fix the knob long-press causing hang in modal dialogs
2019-10-01 17:13:36 +02:00
MRprusa3d
ed13788e0c
EEPROM_BABYSTEP_Z using removal
2019-10-01 16:57:37 +02:00
DRracer
9ae75612b5
Fixes after first feature tests
2019-10-01 15:31:01 +02:00
DRracer
06187f52f3
Merge pull request #2230 from leptun/MK3_Octoprint_fIxes
...
Mk3 Fan error fix
2019-10-01 11:34:55 +02:00
DRracer
72aed3c544
Allow knob-long-press only in listed menus
2019-10-01 10:51:02 +02:00
Marek Bel
543ad6eb41
Ask to reset Z offset before first layer calibration.
2019-09-30 19:58:09 +02:00
leptun
9d57f9c365
Fix fan_error_selftest() mistake
2019-09-30 20:30:09 +03:00
leptun
61c7479579
Code cleanup: Move texts to messages.c/h
2019-09-30 20:16:01 +03:00
leptun
30f325c81d
Extract fan_error_selftest to function for readability
2019-09-30 20:01:31 +03:00
DRracer
aa50479da5
Merge pull request #2231 from MRprusa3d/PFW-873c
...
default nozzle diameter for farm mode
2019-09-30 18:36:25 +02:00
Marek Bel
aba9d1c360
Merge branch 'MK3' into MM_lay1_cal
2019-09-30 18:13:57 +02:00
DRracer
d31abd4bce
Merge pull request #2240 from leptun/MK3_fix_SD_workDirDepth
...
fix workDirDepth not reset after card init.
2019-09-30 17:32:46 +02:00
leptun
bf09eb943d
fix workDirDepth not reset after card init.
2019-09-29 21:09:11 +03:00
Marek Bel
8c7015df53
Document set current command.
2019-09-27 15:42:31 +02:00
leptun
ff9a6c8177
Prevent fan error while checking fan functionality
2019-09-26 20:52:29 +03:00
leptun
dfd3f34351
Check for minimum fan speed. Should be achievable by both fans in 1s.
2019-09-25 22:35:35 +03:00
leptun
9c22692827
Fix Cancel Print command processing
2019-09-25 22:34:31 +03:00
leptun
4d149f0dfa
Do not send useless keepalive messages after print is canceled from lcd
2019-09-25 18:50:29 +03:00
leptun
532d1fc4ae
Fix "Resume Print" missing when doing a normal pause
2019-09-25 18:32:35 +03:00
leptun
14b72d2b46
Prevent timeout when printing from SD with USB host connected
2019-09-25 18:12:19 +03:00
leptun
c3b7b5ebb5
Check fans before resuming
2019-09-25 15:58:07 +03:00
MRprusa3d
89de5aac77
default nozzle diameter for farm mode
2019-09-23 17:13:33 +02:00
leptun
3c17f7e145
No need to check the fan in the menu
2019-09-22 14:04:58 +03:00
3d-gussner
049cca297b
Merge branch 'MK3' into MK3_Dutch
...
Merge with MK3 and fix merge issues
2019-09-21 11:54:31 +02:00
leptun
2363f19a62
Minor tweaks for usb printing
2019-09-20 21:07:20 +03:00
DRracer
139c37c744
allow only one string translation constraint defintion per line
2019-09-20 13:01:07 +02:00
leptun
fd01942db8
FAN Error fix - Initial
2019-09-19 20:48:59 +03:00
D.R.racer
2afeb65811
return failStatsFmt that fell out in merge
2019-09-19 18:39:25 +02:00
D.R.racer
f50cef8361
Merge remote-tracking branch 'upstream/MK3' into translations-doc
...
and resolve ultralcd.cpp conflicts
2019-09-19 18:10:20 +02:00
Marek Běl
68359687f8
Merge pull request #2202 from DRracer/lang-381-fixes
...
dialogs' layouts fixes + FR polished
2019-09-19 16:33:26 +02:00
D.R.racer
17cca89993
Merge remote-tracking branch 'upstream/MK3' into translations-doc
2019-09-18 15:17:28 +02:00
DRracer
e7273ea505
Fix [French translation] Wrong display during mesh bed calibration #2218
...
minor code/doc improvements
2019-09-18 12:49:44 +02:00
DRracer
c1bf4a6288
Merge pull request #2216 from michalrudolf/MK3-miniopravy
...
Mk3 miniopravy
2019-09-18 11:34:17 +02:00
DRracer
9ff0b7c3a5
Merge pull request #2199 from leptun/MK3_MK2.x_fix_Default_stepper_power
...
Mk3 mk2.x fix default stepper power
2019-09-18 11:05:23 +02:00
Marek Bel
19a8537901
Document.
2019-09-17 20:35:18 +02:00
Marek Bel
027b6238fd
Mark code unused when PINDA_THERMISTOR is defined by macro. Saves 1B of RAM and 4B of FLASH memory.
2019-09-17 20:26:03 +02:00
Marek Bel
966d9baf2b
Document.
2019-09-17 19:00:03 +02:00
DRracer
14933f6b0e
Fix. Sound [assist], Z-probe [5], menu_fmt_float13off format for last
...
string parameter from PROGMEM
2019-09-17 16:50:51 +02:00
michalrudolf
b660cb3908
ultralcd.cpp
2019-09-17 11:46:29 +02:00
D.R.racer
77c4720c8b
Merge remote-tracking branch 'upstream/MK3' into translations-doc
2019-09-17 11:32:27 +02:00
michalrudolf
b4e0c2f455
Update ultralcd.cpp
...
Menu Support -> XYZ calibration details -> 3. obrazovka "point offset"
X value is no longer moved to the left if there’s no negative sign
2019-09-17 10:51:43 +02:00
Marek Bel
c66b4bd876
Do not ask for preheat temperature twice if calibrating first layer from wizard without filament.
2019-09-16 21:14:17 +02:00
Marek Bel
e1cfd6dc4f
Remove option to heat nozzle only from mFilamentItem() when activated from wizard, as it has no use after filament unload was removed from wizard.
2019-09-16 18:48:52 +02:00
Marek Bel
ff4450489b
Document.
2019-09-16 18:38:44 +02:00
Marek Bel
002a7d31a4
Make lcd_wizard() more debug friendly.
2019-09-16 18:31:12 +02:00
Marek Bel
b99038736c
Use eeprom_update_byte instead of eeprom_write_byte
2019-09-16 18:22:34 +02:00
MRprusa3d
d491a9801d
Update ultralcd.cpp
2019-09-16 16:04:45 +02:00
MRprusa3d
0e1d559f03
Merge branch 'MK3' into PFW-943
2019-09-16 15:29:28 +02:00
MRprusa3d
011468598e
IR sensor gen. II
...
disconnected PCB detection
2019-09-16 00:43:37 +02:00
3d-gussner
9a7a909c6f
Prepare adding new language
2019-09-14 15:49:33 +02:00
leptun
695f938348
Fix conversion warnings
2019-09-14 12:24:45 +03:00
leptun
e828798209
Fixes after merge and line buffer
...
General fixes to the lcd_edit_off item and improved way to generate the toggles.
The old process is this: Write '>' if required -> print base -> pad everything before the last character with spaces -> write the eol character -> jump back and print the toggle over the blank characters. This resulted in noticeable flickering when the toggle was redrawn and was showing the same thing. Now the process is similar, except that everything happens in a "line buffer" (a char buffer that holds an entire line) and gets printed in one go, avoiding jump instructions for the lcd and prevents flickering since it doesn't write ' ' and the letters afterwards.
This should get even better when the lcd_buffer gets implemented since the line_buffer will get compared to the existing data on the screen and avoid overwriting what is on the lcd with the same thing.
2019-09-13 21:21:42 +03:00
Marek Bel
015b34de05
Alert user in wizard about more sheets presets.
2019-09-13 17:09:11 +02:00
DRracer
4423106fad
dialogs' layouts fixes (support menu dlgs, statistics etc.)
...
French translation polished
2019-09-13 16:55:05 +02:00
Marek Bel
e754780717
Fix condition for returning to wizard. eFilamentAction == FilamentAction::Preheat was never true as eFilamentAction is set to eFilamentAction::None in lcd_return_to_status().
2019-09-13 00:19:37 +02:00
Marek Bel
f1d190d2d5
Do not ask same filament related question twice if starting first layer calibration from wizard.
2019-09-12 23:41:42 +02:00
Marek Bel
ebf405d589
Preselect "yes" for filament question in first layer calibration wizard.
2019-09-12 23:20:03 +02:00
Marek Bel
d256c18635
Fix first layer calibration wizard. Do not jump to WizState::LoadFil if calibration is supposed to be performed.
2019-09-12 23:17:19 +02:00
Marek Bel
73642632f5
Do not force PLA filament in first layer calibration from wizard. Remove duplicate variable wizard_active. Saves 410 B of FLASH and 1 B of RAM.
2019-09-12 22:37:28 +02:00
Marek Bel
07a0f527d8
Reset lcd_encoder_diff in lcd_show_fullscreen_message_yes_no_and_wait_P() also when it times out.
2019-09-12 20:30:27 +02:00
Marek Bel
6630591f9e
Consume lcd_encoder_diff in lcd_show_fullscreen_message_yes_no_and_wait_P().
...
This fixes problem encountered in lcd_v2_calibration(). Selected menu item skips to another if returning to menu after this message is used.
2019-09-12 20:20:33 +02:00
Marek Bel
d48197656c
Fix lcd_v2_calibration menu not redrawn after full screen message or question.
2019-09-12 20:05:16 +02:00
Marek Bel
770e470fd5
Extract common code to function preheat_or_continue(). Saves 138B of FLASH memory.
2019-09-12 18:53:24 +02:00
Marek Bel
d80b8280a0
Remove commented out and unused functions prototypes.
2019-09-12 18:41:17 +02:00
Marek Bel
3a541488b2
Rename extr_unload_() to mmu_unload_filament() and move it to ultralcd.cpp as it is menu.
2019-09-12 18:40:02 +02:00
Marek Bel
0cdfa7a5e8
Remove dead code.
2019-09-12 18:33:02 +02:00
Marek Bel
e83b2ebe1f
Rename mFilamentMenu to lcd_generic_preheat_menu to match naming convention for global function and be more descriptive.
2019-09-12 18:15:15 +02:00
Marek Bel
c26d7e50f7
Remove redundant lcd_update_enable(true) call.
2019-09-12 18:07:46 +02:00
Marek Bel
6674cbf0d7
Select material / temperature before first layer calibration.
2019-09-12 17:54:05 +02:00
leptun
ae839aee31
Merge branch 'MK3' into MK3_Translations
2019-09-12 16:28:36 +03:00
Marek Bel
6661d3aa45
Merge remote-tracking branch 'prusa3d/MK3' into MM_lay1_cal
2019-09-12 14:28:52 +02:00
DRracer
521c5eb8ef
Merge pull request #2141 from mkbel/preheat_menu
...
Unify preheat menu, add ASA material
2019-09-12 14:25:38 +02:00
leptun
444daceca3
Move define as requested
2019-09-12 13:39:04 +03:00
leptun
78708903e8
Also update eeprom value
2019-09-12 07:16:31 +03:00
Marek Bel
43705aae2e
Rename lay1cal_preheat() to lay1cal_wait_preheat().
2019-09-12 00:19:20 +02:00
Marek Bel
ae3e6530e6
Do not ask for PLA filament in the beginning of first layer calibration. Do not ask if filament is present if it can be detected by IR sensor.
2019-09-12 00:14:24 +02:00
Marek Bel
14dc6b86e0
Change undocumented behaviour of M190 (Wait for bed temperature). Document M190 and M109 (Wait for extruder temperature).
...
Do not remember CooldownNoWait property set by M190 and M109. If M190 was invoked without parameters, CooldownNoWait property was set if it was previously set by "M109 S" or "M109 S" or printer was after power up. Otherwise CooldownNoWait was not set. Now CooldownNoWait is never set if M190 is invoked without parameters.
Saves 44 B of FLASH memory.
2019-09-11 23:37:09 +02:00
Marek Bel
acb0341a1f
Do not set temperature in lay1cal_preheat().
2019-09-11 22:42:40 +02:00
leptun
bf9f668574
Fix short filenames scrolling in sdprint menu and status screen
2019-09-11 22:04:48 +03:00
Marek Bel
608aa6ff3c
Increase number of MMU load tries, so the same number of retries are done without cutter as before enabling cutter.
2019-09-10 18:49:23 +02:00
Marek Bel
0fda4e5594
Merge branch 'cut_last_try' into enable_cutter
2019-09-10 18:37:09 +02:00
Marek Bel
bb1fb49894
Use MMU cutter only as last resort. Cut filament only before last load retry.
2019-09-10 18:36:14 +02:00
Marek Běl
5a1005e143
Merge pull request #2186 from DRracer/enable-fan-pin-test-MK3
...
Enable fan pin test even for MK3
2019-09-10 18:21:17 +02:00
DRracer
d94356802c
Merge pull request #2187 from prusa3d/MK3_3.8.0
...
Mk3 3.8.0
2019-09-10 18:19:36 +02:00
DRracer
e1e40213b2
Enable fan pin test even for MK3 (was disabled in 3.7.2 due to lack of
...
FLASH)
2019-09-10 16:49:22 +02:00
DRracer
898e85e69f
Merge pull request #2038 from Eriobis/MK3
...
Add a threshold distance to Z calibration
2019-09-10 16:20:24 +02:00
DRracer
76c062b980
Merge pull request #2169 from mkbel/format
...
Use same format for all instances where "ok" is send to serial line.
2019-09-10 14:14:47 +02:00
DRracer
059c6b6cbf
Merge pull request #2148 from leptun/MK3_MK2.x_fix_Default_stepper_power
...
Mk3 mk2.x fix default stepper power
2019-09-10 14:13:51 +02:00
DRracer
60de313b8a
Merge pull request #1759 from wavexx/enhanced_longpress
...
Default to "Live Adjust Z" when longpressing during a print (closes #1604 )
2019-09-10 14:13:00 +02:00
DRracer
f6f8f5b3b6
Merge pull request #2171 from 3d-gussner/patch-3
...
Update reserved space bytes as mentioned in
2019-09-10 14:07:56 +02:00
DRracer
90f85f7128
Merge pull request #2181 from leptun/MK3_fix_lcd_warning
...
Mk3 fix lcd warning
2019-09-10 14:07:28 +02:00
leptun
818befb91b
Fix compile warning
...
function was defined as static in lcd.cpp and redefined in lcd.h
2019-09-09 14:05:20 +03:00
leptun
2480bd90fc
Revert lcd_putchar to type int and retrun 0
...
Discussion: https://github.com/prusa3d/Prusa-Firmware/pull/2008#issuecomment-514500738
2019-09-09 13:59:20 +03:00
MRprusa3d
7cc9fe2e4f
Update 1_75mm_MK3S-EINSy10a-E3Dv6full.h
2019-09-09 02:20:39 +02:00
MRprusa3d
70de4d58f6
Update 1_75mm_MK3-EINSy10a-E3Dv6full.h
2019-09-09 02:20:14 +02:00
MRprusa3d
fb561b15ad
Update 1_75mm_MK25S-RAMBo13a-E3Dv6full.h
2019-09-09 02:19:52 +02:00
MRprusa3d
325e4a3403
Update 1_75mm_MK25S-RAMBo10a-E3Dv6full.h
2019-09-09 02:19:27 +02:00
MRprusa3d
0b50b2295c
Update 1_75mm_MK25-RAMBo13a-E3Dv6full.h
2019-09-09 02:18:54 +02:00
MRprusa3d
e581263bf1
Update 1_75mm_MK25-RAMBo10a-E3Dv6full.h
2019-09-09 02:18:22 +02:00
MRprusa3d
ca6937edaf
Update 1_75mm_MK2-RAMBo13a-E3Dv6full.h
2019-09-09 02:17:42 +02:00
MRprusa3d
a9a3d9d084
Update 1_75mm_MK2-RAMBo10a-E3Dv6full.h
2019-09-09 02:17:00 +02:00
MRprusa3d
978ace7fd7
Update Marlin_main.cpp
2019-09-09 02:16:06 +02:00
MRprusa3d
28c1486df2
Update Configuration.h
2019-09-09 02:14:10 +02:00
DRracer
eec8e5f8c0
Version changed (3.8.0 build 2684)
2019-09-06 19:47:05 +02:00
3d-gussner
d408fd2f42
Update reserved space bytes as mentioned in
...
https://github.com/prusa3d/Prusa-Firmware/pull/2170#pullrequestreview-284810840
2019-09-06 15:54:04 +02:00
DRracer
3ba2197dd3
more space for the second lang
2019-09-06 08:37:59 +02:00
Marek Bel
e73b0a88d5
Use same format for all instances where "ok" is send to serial line.
2019-09-05 22:35:01 +02:00
Marek Bel
3a5daf1c64
Change default sheet names.
2019-09-05 17:27:21 +02:00
3d-gussner
d51b3d6207
Added doxygen todos for missing LCD layout and positioning
2019-09-01 09:51:51 +02:00
vintagepc
339771a5fb
Fixed info screen when selected_sheet hasn't been initialized.
2019-08-31 21:27:08 -04:00
leptun
10cdcb3ae3
SD Scroll workaround
2019-08-31 17:00:39 +03:00
leptun
795b1d1cf7
Toggle Sound
2019-08-31 16:56:14 +03:00
Yuri D'Elia
2345288d40
Fix the LCD pause function
...
Do not call long_pause recursively!
long_pause() is called before resetting the lcd_command_type. As
long_pause uses st_synchronize() internally, there could be time to
schedule another call to long_pause().
2019-08-31 15:28:31 +02:00
leptun
3c4fffef60
Merge branch 'MK3' into MK3_Translations
2019-08-31 15:30:51 +03:00
leptun
a5a5f5cf0b
Toggle RPi port
...
Probably works, needs to be tested.
2019-08-31 15:25:00 +03:00
leptun
f69035323a
Toggle SD Settings
...
This includes FlashAir support and SD Sorting type
2019-08-31 14:55:51 +03:00
leptun
a821002f02
Toggle MMU Mode
2019-08-31 07:38:40 +03:00
vintagepc
d347a36509
Merge branch 'MK3' of https://github.com/prusa3d/Prusa-Firmware into MK3-2093-sheet-display
2019-08-30 19:17:27 -04:00
vintagepc
871e29621f
Fix "stuck" rename cursor
2019-08-30 19:14:22 -04:00
Marek Běl
a789a8995f
Merge pull request #2145 from mkbel/fix_sheet_reset
...
Fix sheet reset
2019-08-30 16:49:34 +02:00
leptun
6a8330a43b
Toggle "HW Setup"*
...
All toggles from "HW Setup" were changed.
This includes:
-"Nozzle d."
-all "Checks"
Also added an option to provide a string from sram (not from progmem) as the toggle argument. This can be useful when toggling numbers or even when toggling sheets in the future.
2019-08-30 17:36:21 +03:00
Marek Bel
865484590b
Change default sheet name from "<number>" to "Sheet <number>".
2019-08-30 16:11:41 +02:00
Marek Bel
3d292350d4
Do not activate selected_sheet in lcd_v2_calibration() as this leads to calibrating random sheet if activated from calibration menu.
...
selected_sheet is initialized to 0 and contains index of last Sheet menu visited.
2019-08-30 14:45:25 +02:00
Marek Bel
26423f98bc
Switch to next sheet if currently selected sheet is not initialized. Move next_initialized_sheet() and change_sheet_from_menu() to eeprom.cpp, rename it to eeprom_next_initialized_sheet() and eeprom_switch_to_next_sheet(). Rename default_sheet_name() to eeprom_default_sheet_name().
2019-08-30 12:24:13 +02:00
Marek Bel
6c78c2fad5
Fix compiler warning.
2019-08-30 12:03:35 +02:00
leptun
90e5f14309
Fix compile error on MK3
2019-08-30 13:02:00 +03:00
Marek Bel
50a8c16f27
Use EEPROM update instead of write.
2019-08-30 12:00:33 +02:00
leptun
56c949b9af
Fix typo
2019-08-30 12:14:43 +03:00
leptun
d8d0069f97
Fix MK2.x Default stepper power out of sync
2019-08-30 12:12:29 +03:00
leptun
b86a92a7d6
Toggle Mode (stepper power)
2019-08-30 07:59:58 +03:00
vintagepc
8df6691819
Relocate sheet menu, show sheet on info screen
...
-Sheet is shown instead of percentage done either if idle, or during
print preheat.
-Relocated sheet menu to below SD menu for additional visibility to
current sheet.
2019-08-29 18:07:24 -04:00
leptun
db6e2e0525
Toggle Crash det.
2019-08-29 22:31:30 +03:00
Marek Bel
8c8619be05
Convert reset sheet sub menu to function.
2019-08-29 20:52:53 +02:00
Marek Bel
abf84e36f5
Fix sheet menu back caption to Steel sheets to match parent menu caption.
2019-08-29 20:23:02 +02:00
Marek Bel
d647cdc02c
Convert sheet switcher from sub menu to function. Handle null characters in sheet name.
2019-08-29 20:13:10 +02:00
Marek Bel
cd7805ba46
Document
2019-08-29 18:26:24 +02:00
Marek Bel
0b196da6fc
Migrate old vale of EEPROM_BABYSTEP_Z only if active sheet is not initialized.
2019-08-29 18:07:49 +02:00
Marek Bel
32f435d1a0
Increase number of configurable steel sheets to 8. Move sheets into sub menu of HW setup.
2019-08-29 17:21:08 +02:00
leptun
7f51e0bad8
Move SpoolJoin and Cutter to MSGs
2019-08-29 17:35:26 +03:00
Marek Běl
3413d5d486
Merge pull request #2139 from DRracer/assist-mode-fixes
...
Fix sound mode [assist]: encoder clicking indefinitely when MMU wants to
2019-08-29 15:55:49 +02:00
Marek Běl
fec92b33ae
Merge pull request #2137 from DRracer/illegal-fat-characters-revised
...
Support for more special characters allowed in file names (^ + = [ ] ;
2019-08-29 15:55:36 +02:00
leptun
0b21acec46
Minor fix to Toggle Cutter
2019-08-29 15:49:26 +03:00
leptun
d0f9f10ed6
Toggle Cutter
2019-08-29 15:43:41 +03:00
leptun
1937cf2074
Toggle SpoolJoin
2019-08-29 15:40:04 +03:00
leptun
5eea8d26fe
Merge branch 'MK3' into MK3_Translations
2019-08-29 12:08:48 +03:00
Marek Bel
f3bb72be64
Reset calibration status if there is no calibrated sheet after reset.
2019-08-29 03:33:33 +02:00
Marek Bel
f64252b59b
Hide sheet switcher from main menu, if there are less than 2 sheets calibrated.
2019-08-28 19:08:53 +02:00
Marek Bel
9692f94683
Move sheet menu up to be after Print from SD.
2019-08-28 19:01:48 +02:00
Marek Bel
3903dc819a
Extract function next_initialized_sheet from change_sheet_from_menu(). Make it more general to depend on sizeof(Sheets::s) instead of hard coded value of 2.
2019-08-28 18:59:48 +02:00
Marek Bel
33675c6d1e
Change default sheet names.
2019-08-28 18:16:35 +02:00
Marek Bel
49bc11037c
Remove statements with no effect.
2019-08-28 18:14:10 +02:00
DRracer
1d23cc52e9
endstop sound alert fixes
2019-08-28 09:39:28 +02:00
Marek Bel
29c8cb2927
Fix bad merge.
2019-08-27 22:22:36 +02:00
Marek Běl
3f04c4db87
Merge branch 'MK3' into preheat_menu
2019-08-27 22:20:23 +02:00
Marek Bel
07169ad84a
Make file local variable static.
2019-08-27 20:48:53 +02:00
Marek Bel
e57fcc04a7
Fix compiler warnings.
2019-08-27 20:23:48 +02:00
Marek Bel
d927d5b05d
Port wizard_active to mFilamentItem().
2019-08-27 20:19:03 +02:00
Marek Bel
cef7f31b9f
Set FilamentAction to None if mFilamentMenu left by cooldown or menu back action.
2019-08-27 20:13:55 +02:00
Marek Bel
ffc5a64154
Remove commented out code.
2019-08-27 20:06:48 +02:00
Marek Bel
269aef1696
Remove unused code guarded by WATCH_TEMP_PERIOD macro as most of the functionality is duplicate to what is implemented in temp_runaway_check(). This will release us from porting setWatch() to unified preheat menu and maintaining it.
2019-08-27 20:05:10 +02:00
DRracer
1a1be5c518
Fix sound mode [assist]: encoder clicking indefinitely when MMU wants to
...
select filament
2019-08-27 17:10:29 +02:00
Marek Bel
bf2097342d
Add ASA preheat into mFilamentMenu();
2019-08-27 17:01:41 +02:00
DRracer
11ce786aaa
Support for more special characters allowed in file names (^ + = [ ] ;
...
,)
2019-08-27 13:47:58 +02:00
DRracer
6aaa40b9a3
Merge pull request #2134 from mkbel/fix_power_panic
...
Fix repeated power panic restarted print from beginning or jumped at …
2019-08-27 08:13:26 +02:00
DRracer
a1e68c3d7f
Merge pull request #2135 from prusa3d/MK3_3.8.0
...
Increase version to 3.8.0-RC2 and build number to 2639.
2019-08-27 08:12:27 +02:00
Marek Bel
3da43ae8c2
Do not port print fan preheat speed preset, as it was never used. And it was broken until recently fixed when adding ASA profile.
2019-08-26 21:14:07 +02:00
Marek Bel
4792559536
Add farm preheat items. Add setWatch() call.
2019-08-26 21:00:30 +02:00
Marek Bel
aa13f9e809
Fix formatting.
2019-08-26 20:19:34 +02:00
Marek Bel
668e89e5a9
Preheat menu: Add ASA, hide menu item back when in wizard.
2019-08-26 20:18:34 +02:00
Marek Bel
52ae62bbba
Fix formatting.
2019-08-26 20:14:00 +02:00
Marek Bel
3628d893ee
Remove duplicate preheat menu.
...
Known limitations: farm_mode missing, wizard_active missing, cooldown missing, ASA missing, print fan missing.
2019-08-26 20:11:52 +02:00
Marek Bel
b9b0d6049e
Fix formatting.
2019-08-26 19:48:39 +02:00
Marek Bel
159a1a70d8
Update documentation.
2019-08-26 17:19:57 +02:00
Marek Bel
c27fcf9cff
Increase version to 3.8.0-RC2 and build number to 2639.
2019-08-26 17:03:18 +02:00
Marek Bel
52cb37770b
Fix repeated power panic restarted print from beginning or jumped at most 65536 B back in file printed from SD card.
...
As sdpos_atomic was not updated after printer power up and first power panic recovery, it was equal 0. When the first command from SD card was queued its size on SD card was computed as current SD index position minus sdpos_atomic. This was equal to offset from beginning of the file limited to 16 bit storage type. When next power outage occurred earlier then this command was finished and wiped out of queue, this command size (extraordinarily big) was subtracted from sdpos_atomic and saved to EEPROM. This led to up to 65536 B jump back in file printed after next power panic recovery.
2019-08-23 19:30:20 +02:00
Marek Bel
3eb36ca194
Fix cmdqueue_dump_to_serial.
...
Header was historically made bigger to contain size of the command on SD card, but those debug functions wasn't updated.
2019-08-23 16:48:30 +02:00
XPila
5bb510dd2a
Merge pull request #2129 from DRracer/bed-noise-performance
...
Improve performance of bed PWM automaton
2019-08-22 14:45:01 +02:00
DRracer
c6df3fe012
Merge pull request #2127 from DRracer/code-size-reduction-1
...
Code size reduced by almost 5KB
2019-08-22 14:25:23 +02:00
3d-gussner
d3123a74b0
Updated LCD menu documentation to new form/syntax
2019-08-22 04:58:16 +02:00
3d-gussner
514b062107
Added `lcd_menu` format description
...
Added some documentation how the LCD menus look like and added max character values for translations.
There are more things needed and also the placement in the code is an open task. Depending on the decision if we use `messages.c/h`
2019-08-21 10:28:28 +02:00
DRracer
a7c2aec04c
Code size reduced by almost 5KB
2019-08-21 09:59:51 +02:00
Marek Bel
3ed6d0637c
Re-enable tmc2130_sg_stop_on_crash only if crash detection enabled from menu.
...
This fixes bug, that disabling crash detection from menu doesn't work during recovery from crash detection.
2019-08-20 19:32:39 +02:00
Marek Bel
f204cdea81
Refactor
...
Remove variable CrashDetectMenu. Read this state from EEPROM_CRASH_DET instead in bool lcd_crash_detect_enabled().
Rename crashdet_enable() to lcd_crash_detect_enable() and move it to ultralcd.cpp.
Rename crashdet_disable() to lcd_crash_detect_disable() and move it to ultralcd.cpp.
Rename lcd_crash_mode_set() to crash_mode_switch().
Remove forward function declarations from *.cpp file.
Saves 34B of FLASH and 2B of RAM.
2019-08-20 17:22:27 +02:00
DRracer
f07635d08a
Merge pull request #2116 from mkbel/fix_mmu_lay1cal
...
Fix mmu lay1cal
2019-08-19 19:07:10 +02:00
Marek Bel
f0642f88f1
Fix power panic broken when PSU_Delta defined.
...
Remove disable_z() call from uvlo_() and uvlo_tiny() power panic interrupt handlers. As historically this function was empty. And in case PSU_Delta macro defined it switches Z trinamic to silent mode, which could take some time and is not needed. Remove alignment to to full step from disable_force_z(), as it is not needed when switching to silent mode.
2019-08-19 17:37:23 +02:00
leptun
0d22f8039e
Toggle FSENSOR and FSENSOR_AUTOLOAD
2019-08-19 11:58:16 +03:00
leptun
6e9c44af2d
Fix warning
2019-08-19 11:07:11 +03:00
leptun
5a3f14b752
"N/A" toggle support and format update
2019-08-19 10:20:17 +03:00
Marek Bel
170c1ea866
Split first layer calibration load filament and intro line into separate steps. If load fails, pause print apparently flushes command buffer and intro line is not printed after issue is resolved.
2019-08-16 20:47:55 +02:00
Marek Bel
e53734895f
Make MMU load failed blocking to workaround lack of resume print menu item.
...
The same workaround used as for USB print (Octoprint).
2019-08-16 20:20:17 +02:00
Marek Bel
1036c4f755
Do not precede first layer calibration without filament if print is paused due to MMU load failed.
2019-08-16 19:00:45 +02:00
Marek Bel
b10bd8340a
Make local functions static.
2019-08-15 17:57:30 +02:00
Marek Bel
0b798767af
Fix preheat ASA.
2019-08-15 17:54:23 +02:00
Marek Bel
a6f955b62d
Use unused macros *_PREHEAT_FAN_SPEED.
2019-08-15 17:47:34 +02:00
Marek Bel
eb68bb9b43
Add ASA preheat.
2019-08-15 17:46:29 +02:00
Marek Bel
36a69281ee
Remove unused functions forward declarations.
2019-08-15 17:36:05 +02:00
Marek Bel
469ca6e184
Merge commit 'refs/tags/v3.8.0-RC1^{}' into enable_cutter
2019-08-15 14:48:28 +02:00
DRracer
0e4e644476
Merge branch 'MK3' into MK3_3.8.0
2019-08-15 10:34:50 +02:00
DRracer
ba81149afe
Merge branch 'MK3' into MK3_3.7.3
2019-08-15 10:25:51 +02:00
DRracer
dc78bc7362
Improve performance of bed PWM automaton - proof of concept
...
There are still some artefacts on the output pin - work in progress.
2019-08-14 17:53:08 +02:00
rhounsell
32fa8caab8
reinitialize the timestamp to ensure enough time to receive response for 0xFF sent.
2019-08-11 17:57:41 -04:00
leptun
596ffe1dc2
Actual fix to the missing first two characters
2019-08-10 21:03:45 +03:00
leptun
7ce2fedac7
Fix missing first two characters in multi-lang mode
2019-08-10 09:16:23 +03:00
leptun
29dcb1cad3
Toggle FANS_CHECK
2019-08-10 08:43:07 +03:00
leptun
505deb28fd
Toggle menu item
2019-08-10 08:42:33 +03:00
Paul Bransford
720ea49fa3
Merge branch 'MK3' into MK3-fix-sdcard-sorting
2019-08-08 19:48:50 -04:00
rhounsell
4e58a112e8
Fix for Toshiba FlashAir (or other) SD card initialization - add clock cycles between sending CMD0 and CMD8. Redone for MK3 branch)
2019-08-08 15:45:59 -04:00
DRracer
2ddbd606f2
Version changed (3.8.0 build 2608)
2019-08-08 16:44:16 +02:00
DRracer
84cf1b83c3
Merge pull request #2083 from DRracer/viper
...
Workaround for the "viper" situation bug.
2019-08-07 17:48:57 +02:00
DRracer
a28c365bb1
Merge pull request #2075 from MRprusa3d/PFW-873b
...
farm mode update, documentation correction
2019-08-07 17:48:30 +02:00
DRracer
d9dec38815
Workaround for the "viper" situation bug.
2019-08-07 17:23:19 +02:00
Robert Pelnar
7da2ee5fc3
Version changed (3.7.3 build 2370)
2019-08-06 15:37:23 +02:00
Yuri D'Elia
33037d369c
Prevent LCD long-press re-entry ( fixes #1196 )
2019-08-05 19:00:29 +02:00
MRprusa3d
b471bb7540
farm mode update, documentation correction
2019-08-05 17:51:26 +02:00
DRracer
5cb86a7e8f
Merge pull request #2074 from kuhnmarek/MK3_PFW-967_filament_sensor_check
...
Fw version check disabled in farm mode
2019-08-05 17:41:16 +02:00
Marek Kühn
091cd49ca5
Fw version check disabled in farm mode
2019-08-05 16:59:09 +02:00
DRracer
9f8590c572
Merge pull request #2072 from kuhnmarek/MK3_PFW-961_blind_sound
...
changed blind sound
2019-08-05 12:47:31 +02:00
Marek Kühn
f77414be2b
blind alert sound shorter
2019-08-05 12:41:27 +02:00
Marek Kühn
f1a947af2c
Whole hw settings hidden in farm mode
2019-08-05 10:40:21 +02:00
DRracer
cb19f0958b
Use _delay() and _micros() for future compatibility
2019-08-05 09:51:06 +02:00
Yuri D'Elia
7cae064611
Update EEPROM_LAST_ITEM
2019-08-04 18:39:28 +02:00
Yuri D'Elia
18b8dc89e5
Merge remote-tracking branch 'upstream/MK3' into MK3_LA15
2019-08-04 17:06:34 +02:00
Yuri D'Elia
1435e4a68d
Use the computed direction in fsensor_st_block_begin
2019-08-04 16:53:48 +02:00
Marek Kühn
5f14e9c2e5
Removed sheet setting when in farm mode
2019-08-03 17:35:39 +02:00
Marek Kühn
15a095ea76
changed blind sound
2019-08-03 15:37:11 +02:00
DRracer
7c9d3dd177
Update doxydoc of new G-codes
2019-08-01 13:09:20 +02:00
DRracer
9214e30f74
Merge pull request #2062 from MRprusa3d/PFW-873
...
UI update
2019-08-01 07:20:09 +02:00
MRprusa3d
2cb977e4a0
UI update
2019-07-31 20:39:57 +02:00
DRracer
e43e89421c
Merge pull request #2056 from BoCoKeith/patch-1
...
Correct bug in util.cpp is_whitespace_or_nl function.
2019-07-31 17:00:49 +02:00
Simon Benoit
49d2866b48
Add threshold distance to Z calibration
...
Add missing if statement
2019-07-30 19:43:07 -04:00
Marek Bel
bca0fd81eb
Fix loading filament 255 instead of 0 in first layer calibration wizard.
2019-07-30 19:15:33 +02:00
Marek Bel
0aed59c947
Fix unsigned char overflow cause invalid filament load.
2019-07-30 19:06:57 +02:00
leptun
9ff1f6c3ee
Re-enable Tone
2019-07-30 16:05:40 +03:00
leptun
5fdaead663
Fix language related warnings in LANG_MODE 0
2019-07-29 15:55:42 +03:00
leptun
556b87edec
M350 for all axis - MK3
2019-07-29 09:41:33 +03:00
Keith Spitz
952a24b45d
Update util.cpp
...
Correct "is_whitespace_or_nl": change 'r' to '\r'.
2019-07-28 19:40:18 -06:00
leptun
3ddb853bbd
Fix shifted languages. Use \n and \x0a
2019-07-26 18:53:08 +03:00
DRracer
0687b8e4a2
Merge pull request #2044 from mkbel/fix_missing_mmu_attention
...
Fix missing mmu attention
2019-07-26 09:07:06 +02:00
Marek Bel
3b396fb8bf
Merge branch 'MK3' into fix_missing_mmu_attention
2019-07-25 19:10:07 +02:00
Marek Bel
a9e9a9857b
Fix "MMU needs attention screen is missing in case of failed unload filament".
2019-07-25 19:09:52 +02:00
DRracer
3438c0e411
Merge pull request #2042 from NotaRobotexe/octoprint_bugs
...
fixed redundant OK messages in serial
2019-07-25 12:41:43 +02:00
DRracer
2820baf016
Merge pull request #2040 from NotaRobotexe/MK3
...
multiple sheets - menu switching bug
2019-07-25 09:56:07 +02:00
NotaRobotexe
64115fb146
fixed redundant OK messages in serial
2019-07-24 18:08:14 +02:00
NotaRobotexe
5021fadd5d
multiple sheets - menu switching bug
2019-07-24 11:20:27 +02:00
DRracer
33195baf9d
Merge pull request #2035 from mkbel/enable_lin_corr
...
Re-enable linearity correction for MK3.
2019-07-24 09:08:43 +02:00
NotaRobotexe
851aaac053
Merge branch 'MK3' of https://github.com/NotaRobotexe/Prusa-Firmware into MK3
2019-07-23 19:29:36 +02:00
NotaRobotexe
fb35009628
multiple sheets,fix of bug in switching sheets from menu
2019-07-23 19:25:59 +02:00
Marek Bel
f9e32c4bf4
Re-enable linearity correction for MK3.
2019-07-23 19:22:54 +02:00
DRracer
3e60cf4537
enable only for MK3S (out of FLASH on the MK3)
2019-07-23 16:51:02 +02:00
DRracer
593675c667
delay, micros for the 3.7.x branch
2019-07-23 16:40:21 +02:00
DRracer
6860a572c2
detection of faulty RAMBo (incorrect capacitor on fan tach pin) for MK3/S
2019-07-23 15:55:53 +02:00
NotaRobotexe
c4d5e332c8
Merge branch 'MK3' into MK3
2019-07-23 11:34:42 +02:00
NotaRobotexe
b9f622f8a6
variables to PROGMEM, text formating
2019-07-23 11:31:20 +02:00
NotaRobotexe
b5129ff2ec
Revert "force push"
...
This reverts commit 19e7838c20 .
2019-07-23 11:12:53 +02:00
NotaRobotexe
19e7838c20
add default names to PROGMEM, text formating edit
2019-07-22 20:35:10 +02:00
NotaRobotexe
ab2eafe175
sheet menu, add hw setting, sheet change in menu, sheet name initialization in eeprom
2019-07-22 18:43:43 +02:00
DRracer
6f79ef4c9c
resolve hidden conflicts in commented code
2019-07-22 17:29:43 +02:00
DRracer
65087b89ee
Merge remote-tracking branch 'upstream/MK3' into code_size_optimization
...
and resolve conflicts (ultralcd.cpp)
2019-07-22 17:26:14 +02:00
DRracer
b96c9700ce
fix prusa_statistics code size optimization according to unit test
...
results
2019-07-22 17:10:04 +02:00
DRracer
79c326cdaa
Merge pull request #2022 from kuhnmarek/gcodes_doxygen
...
Updated doxygen docs to work better with confluence.
2019-07-22 12:52:27 +02:00
NotaRobotexe
9c95f8c015
sheet menu
2019-07-19 18:34:46 +02:00
Marek Kühn
bd4bfbe586
Added M862 details
2019-07-19 16:15:12 +02:00
Marek Kühn
94e79806bc
Updated doxygen docs to work better with confluence.
2019-07-19 13:51:55 +02:00
Marek Kühn
03e80ce4a8
PFW-917 Adjust Z value persists across update to v3.8
2019-07-18 16:50:44 +02:00
DRracer
b0c41ec979
Merge pull request #2017 from NotaRobotexe/octoprint_fix
...
Octoprint fix
2019-07-18 16:02:38 +02:00
DRracer
14b39b0094
Merge pull request #2019 from leptun/MK3_fix_LCD_WDT_RESET
...
Fix lcd not initing after WDT reset
2019-07-18 13:27:32 +02:00
leptun
121e60655a
Fix lcd not initing after WDT reset
2019-07-18 11:50:18 +03:00
DRracer
1ae072c332
Merge pull request #2014 from NotaRobotexe/sound_fix
...
crash and filament unload sound change
2019-07-18 09:41:05 +02:00
DRracer
090ea3145d
Merge pull request #2015 from NotaRobotexe/text_edits
...
small text edit
2019-07-18 09:39:28 +02:00
NotaRobotexe
756ce51b5e
Merge branch 'MK3' into octoprint_fix
2019-07-17 20:06:06 +02:00
NotaRobotexe
b8fec59f21
octoprint fan error fix
2019-07-17 19:59:31 +02:00
NotaRobotexe
2bae208133
Merge pull request #2011 from MRprusa3d/PFW-873
...
GUI updates
2019-07-17 14:49:07 +02:00
NotaRobotexe
1c44eddf81
crash and filament unload sound change
2019-07-17 12:32:27 +02:00
DRracer
255db28684
merge unit test and upstream changes
2019-07-17 10:30:49 +02:00
DRracer
eb705b6b17
Merge pull request #2012 from leptun/MK3_LCD_improvements
...
LCD fix status screen lcd_putchar
2019-07-17 08:05:56 +02:00
Yuri D'Elia
3a87ff56f6
Default to "Move Z" above a certain height even when printing
...
This speeds-up the ability to manually get the carriage out of the way
just after a print has finished
2019-07-16 22:04:32 +02:00
leptun
d8ecb2d0c9
Fix status screen
2019-07-16 21:11:27 +03:00
MRprusa3d
034cbff10a
GUI updates
2019-07-16 20:10:49 +02:00
Marek Bel
0c660a6fb1
Revert "Fix sketch/lcd.cpp:196:1: warning: no return statement in function returning non-void [-Wreturn-type]."
...
This reverts commit a54fd29fa4 .
2019-07-16 21:10:11 +03:00
NotaRobotexe
e6255e8451
octoprint fan error work
2019-07-16 19:18:31 +02:00
DRracer
1dab0f7a04
Merge pull request #2008 from leptun/MK3_LCD_improvements
...
Lcd optimization - 1K of flash saved
2019-07-16 19:15:57 +02:00
Marek Bel
a54fd29fa4
Fix sketch/lcd.cpp:196:1: warning: no return statement in function returning non-void [-Wreturn-type].
2019-07-16 20:02:01 +03:00
Marek Bel
fecccf50e5
Remove duplicate prototypes from ultralcd.h. Make functions unreferenced outside lcd.cpp static. Disable unused functions by preprocessor to suppress warnings.
2019-07-16 20:01:49 +03:00
Marek Bel
3e292fd6b0
Fix compiler warnings:
...
sketch/Marlin.h:178:17: warning: extra tokens at end of #undef directive
sketch/Marlin.h:181:24: warning: extra tokens at end of #undef directive
sketch/Marlin.h:182:0: warning: "enable_z" redefined
2019-07-16 18:16:28 +02:00
Marek Bel
cee875fc6a
Fix compiler warnings:
...
warning: enumeration value '_None' not handled in switch [-Wswitch]
warning: enumeration value '_Undef' not handled in switch [-Wswitch]
2019-07-16 17:40:28 +02:00
Marek Bel
6b8a5bc3ac
Fix compiler warnings
...
sketch/tmc2130.cpp:146:42: warning: default argument given for parameter 1 of 'void tmc2130_init(bool)' [-fpermissive]
sketch/tmc2130.cpp:146:24: warning: unused parameter 'bSupressFlag' [-Wunused-parameter]
2019-07-16 17:31:56 +02:00
DRracer
8b806f692e
Merge pull request #1664 from MRprusa3d/PFW-811
...
"disable_z()" for Delta PSU
2019-07-16 16:46:34 +02:00
DRracer
d65b333664
Merge pull request #2003 from mkbel/heat_hysteresis
...
Heat hysteresis
2019-07-16 13:10:47 +02:00
DRracer
0422713b29
Merge pull request #2005 from prusa3d/MK3_3.7.2
...
Mk3 3.7.2
2019-07-16 08:50:38 +02:00
leptun
8b1c687629
Lcd optimization - 1K of flash saved
2019-07-15 20:32:58 +03:00
Marek Bel
f0727214ed
Document
2019-07-15 19:15:15 +02:00
Marek Bel
9083d151b2
wait_for_heater() in restore_print_from_ram_and_continue() only if saved_extruder_temperature differs from target hot-end temperature.
...
This fixes problem, that restore_print_from_ram_and_continue() blocked for heating for at least TEMP_RESIDENCY_TIME (3 seconds) even if temperature was resumed by M600 command.
2019-07-15 18:07:05 +02:00
Marek Bel
ab4e789688
Partially revert "aeed49a Fix filament runout on optical filament sensors"
...
Revert plan move to filament change position before enqued M600.
This was workaround to problem that restore_print_from_ram_and_continue() did 3s heating pause before resuming print. This problem will be fixed properly in restore_print_from_ram_and_continue() in next commit.
Save 166B of FLASH.
2019-07-15 17:22:39 +02:00
Marek Bel
549a8a1a6b
Restore print fan speed earlier then nozzle temperature.
...
Avoids nozzle temperature dip when fan is turned on.
2019-07-15 16:25:21 +02:00
NotaRobotexe
8fb30f886a
octoprint stop fix
2019-07-15 14:30:21 +02:00
NotaRobotexe
759d9f5a2e
small text edits
2019-07-15 11:41:16 +02:00
DRracer
a3fde091ab
More than 7.5KB saved by slight refactoring of printing to serial line
2019-07-12 10:10:56 +02:00
Marek Bel
38ff944b03
Reorder EEPROM items to allow possible future grow for Sheets struct.
2019-07-10 21:03:30 +02:00
Marek Bel
8985d2e26c
Fix fix EEPROM conflict.
2019-07-10 18:50:16 +02:00
Marek Bel
6ed146c37c
Fix EEPROM conflict.
2019-07-10 18:41:12 +02:00
leptun
b8b167d1ca
Merge branch 'MK3' into MK3_Enable_fan_waiting_cooldown
2019-07-10 19:26:43 +03:00
Marek Běl
d3dd0ad271
Merge pull request #1952 from NotaRobotexe/sound
...
new sound
2019-07-10 18:06:32 +02:00
Marek Bel
333ade9aee
Remove non-existing function prototype.
2019-07-10 17:59:04 +02:00
Marek Bel
7189f44bcd
Remove commented out defines.
2019-07-10 17:40:33 +02:00
Marek Bel
e0f46f128d
Fix indentation.
2019-07-10 17:39:24 +02:00
Marek Bel
4e7de776cd
Disable TMC2130 linarity correction for MK3 to save FLASH to enable compilation. Add symlink /Firmware/variants/printers.h to .gitignore.
2019-07-10 17:07:00 +02:00
MRprusa3d
98bae7af9f
Merge branch 'MK3' into PFW-873
2019-07-10 16:50:14 +02:00
MRprusa3d
3333d937ed
some improvements
2019-07-10 16:29:40 +02:00
DRracer
9585789288
Merge pull request #1976 from NotaRobotexe/MK3_3.7.2_PP
...
dont fire power panic at normal power off
2019-07-10 14:19:00 +02:00
Marek Běl
4e3bf276ec
Merge pull request #1984 from leptun/MK3_compile_error_fix_multiple_sheets_Windows
...
Fix compile error on Windows when multiple_sheets is merged
2019-07-09 19:28:35 +02:00
Marek Bel
712fb1cceb
#undef EEPROM_SHEETS_BASE so this internal define for compile-time checking only is not used outside of eeprom.h
2019-07-09 19:19:59 +02:00
Marek Běl
fcfc9ca95c
Merge pull request #1979 from DRracer/heatbed_noise_suppression
...
Heatbed noise suppression
2019-07-09 18:33:27 +02:00
leptun
dbc603d5f6
Fix compile error on windows
...
addresses issue #1965
2019-07-09 18:38:24 +03:00
Marek Bel
898f6d9d8b
Fix EEPROM_Sheets_base overlay of EEPROM_NOZZLE_DIAMETER_uM.
2019-07-09 13:41:18 +02:00
Marek Bel
cd1ea0a655
Move function declaration and structs declarations to top of eeprom.h file.
2019-07-09 13:38:58 +02:00
MRprusa3d
4d535f1217
... incl. SupportMenu ;-P
2019-07-09 12:31:20 +02:00
MRprusa3d
8229a45187
pre-production version ;-)
2019-07-09 12:16:51 +02:00
Marek Bel
61566f7fb1
Move translated string MSG_V2_CALIBRATION from untranslated section to PROGMEM_I1, add missing ISTR macro. Revert _T(MSG_SELECT) and _T(MSG_RENAME) to _i("Select") and _i("Rename") as it is preferred macro for internationalized strings. Use MSG_V2_CALIBRATION in both occurrences.
2019-07-08 21:18:55 +02:00
DRracer
a16de83535
heatbed audible noise suppression using short fast PWM pulses with
...
variable duty
2019-07-08 16:42:21 +02:00
NotaRobotexe
9592460281
add old delay
2019-07-04 18:43:59 +02:00
NotaRobotexe
a1a8945bee
more code editing
2019-07-04 15:31:44 +02:00
DRracer
1f9dce9513
next almost 200B down
2019-07-04 13:36:02 +02:00
NotaRobotexe
e77898d5dc
code edit
2019-07-04 13:21:27 +02:00
NotaRobotexe
81b3b71cca
check eeprom inicialization
2019-07-03 19:37:11 +02:00
MRprusa3d
4db4f19128
'variant files' update ;-(((
2019-07-03 18:14:48 +02:00
MRprusa3d
7e3cb98a1f
& MK3S
2019-07-03 17:50:41 +02:00
MRprusa3d
a3a7f3106e
print parameters checking
2019-07-03 17:21:11 +02:00
NotaRobotexe
ff3c9d1a7c
dont fire power panic at normal power off
2019-06-28 11:25:56 +02:00
Marek Bel
a59e7090ea
Increase version.
2019-06-27 17:32:40 +02:00
Yuri D'Elia
b6bcb901f3
Correct initialization of eISR_Err
...
Further tweak the initial term to improve the linearity of the resulting
speed after BW filtering.
2019-06-27 13:21:39 +02:00
Marek Bel
d344e514c4
Rename functions and macro to match with naming convention - remove 'P' where there is no pointer to progmem.
2019-06-26 15:51:58 +02:00
Marek Bel
d879794922
Remove first parameter of macro menu_format_sheet_P_E, of function menu_format_sheet_P_E and menu_item_submenu_P as it was always called with the same parameter. Saves 66B of FLASH.
2019-06-26 15:47:06 +02:00
Marek Bel
53dbcdd852
Display sheet name when adjusting Z. Costs 130B of flash.
2019-06-26 15:33:54 +02:00
Marek Bel
4a16fe6902
Save z_offset, bed_temp and pinda_temp with sheet calibration.
2019-06-26 14:10:12 +02:00
Marek Bel
20dd1110f6
Remove unused parameters of function _lcd_babystep(int axis, chonst char *msg).
...
Saves 24B of flash memory.
2019-06-25 19:43:10 +02:00
Marek Bel
ebdeb99134
Add menu to show sheet live adjust Z value.
2019-06-25 18:55:25 +02:00
NotaRobotexe
4058cd144b
add delay_keep_alive without updating lcd
2019-06-25 14:30:11 +02:00
NotaRobotexe
3e9dc91cef
ifdef for mk2
2019-06-24 18:01:49 +02:00
NotaRobotexe
b5168bd6c2
fan error fix
2019-06-24 17:30:56 +02:00
Marek Bel
b67ec501b4
Add rename sheet menu.
2019-06-24 17:11:13 +02:00
Marek Bel
e6fbac08ed
Move sheet selector to submenu.
2019-06-21 15:44:56 +02:00
Marek Bel
19a474eaa5
Fix compiler warnings.
2019-06-20 18:00:29 +02:00
Marek Bel
0a48082609
Add steel sheet profile selector.
2019-06-20 16:40:53 +02:00
Renzo Dani
9a904362e5
code only for TMC2130
2019-06-20 10:17:48 +02:00
Renzo
e54497d802
added new function belt test under calibration menu
2019-06-20 00:09:55 +02:00
Marek Bel
89b578c899
Merge branch 'MK3' into multiple_sheets
2019-06-19 18:40:09 +02:00
Marek Bel
524121141a
Remove commented out code. This code is of unknown genesis and purpose. It was added in commit "3.0.10 sync" two years ago and it was already commented out in that moment.
2019-06-19 15:54:24 +02:00
Marek Bel
6a272d83b1
Add compile time check for EEPROM stored varibles size.
2019-06-19 15:09:07 +02:00
Yuri D'Elia
2e073527fb
Also avoid E direction inversions while coasting
2019-06-19 14:28:04 +02:00
Marek Bel
64903e0ae8
Remove unused defines.
2019-06-19 14:27:02 +02:00
Yuri D'Elia
4b3af0d2df
Respect minimum direction change delay
2019-06-19 13:22:44 +02:00
Marek Bel
181c42fa62
Merge remote-tracking branch 'prusa3d/MK3' into enable_cutter
2019-06-18 20:03:41 +02:00
Marek Bel
8b6629ad58
Fix comment grammar.
2019-06-18 20:00:02 +02:00
Marek Bel
ae9ae95187
MMU: Filter IR sensor signal when detecting whether filament tip passes to heat break. Increase number of tries when loading filament to 3.
2019-06-18 19:15:16 +02:00
KDanielK
6cb85a455f
Update mmu.cpp
2019-06-18 15:08:47 +02:00
Marek Bel
24cec4091b
Merge branch 'MK3' into sound
2019-06-17 17:28:19 +02:00
Marek Běl
aff020a6d4
Merge pull request #1897 from NotaRobotexe/farm_mode
...
PFW-571 send PRN:4 instead PRN:1, PFW-874 new firmware version alert with 30s timeout
2019-06-14 20:05:30 +02:00
Marek Bel
b1df1fb1f1
Fix formatting. We are never using 2 space indentation. 4 spaces are preferred, tabulator is acceptable if surrounding code uses tabs.
2019-06-14 18:18:27 +02:00
Yuri D'Elia
367a28a5a8
Default to "Live Adjust Z" when longpressing during a print ( closes #1604 )
...
- Disable longpress action when homing or calibrating
- Default to Live Adjust during a print
- Retain "Move Z" otherwise
2019-06-14 11:44:06 +02:00
Voinea
d81970dd3d
Merge branch 'MK3' into MK3_Enable_fan_waiting_cooldown
2019-06-14 11:07:08 +03:00
DRracer
c5d130e763
Merge pull request #1914 from prusa3d/MK3_3.7.2
...
Increase version.
2019-06-14 09:39:41 +02:00
Marek Bel
fee67d9451
Increase version.
2019-06-13 16:37:51 +02:00
Marek Bel
6717590631
Merge branch 'MK3' into MK3_LA15
2019-06-13 15:39:50 +02:00
DRracer
55dc78546b
Merge pull request #1913 from mkbel/fix_spelling
...
Fix spelling.
2019-06-13 15:12:30 +02:00
Marek Bel
25f0eb9a39
Fix spelling.
2019-06-13 15:01:54 +02:00
Marek Bel
72f5e87c61
Merge branch 'MK3' into use_enum_class_2
2019-06-12 19:17:35 +02:00
Marek Bel
1390d4e5b9
Use first letter capital camel case for enum class members. Change underlying type to uint_least8_t.
2019-06-12 19:11:41 +02:00
Marek Bel
5fcf760954
Use first letter capital camel case for enum class members. Rename CustomMsgTypes to CustomMsg. Remove unnecessary maping to numbers. Change underlying type to uint_least8_t.
2019-06-12 18:54:43 +02:00
Marek Bel
51df6cdfdc
Remove LcdCommands::Unknown3. Remove LcdCommands mapping to numbers, as it is not needed.
2019-06-12 18:54:37 +02:00
Marek Bel
cbb92860d0
Use first letter capital camel case for enum class members.
2019-06-12 18:54:32 +02:00
Marek Bel
0401490cc1
Use first letter capital camel case for enum class members.
2019-06-12 18:54:25 +02:00
Marek Bel
9ceba00426
Use first letter capital camel case for enum class members. Remove dependency of FanCheck values on TestError values as it is not used.
2019-06-12 18:53:09 +02:00
MRprusa3d
b7d3766ae2
Merge branch 'MK3' into PFW-790
2019-06-12 17:32:13 +02:00
Marek Bel
6dd085bcc5
Use first letter capital camel case for enum class members.
2019-06-12 16:44:07 +02:00
Marek Bel
e393d91b12
Use first letter capital camel case for enum class members.
2019-06-12 16:20:21 +02:00
Marek Bel
cc80bfa020
Merge branch 'MK3' into use_enum_class
2019-06-12 16:04:26 +02:00
DRracer
c7e1e73880
another almost 200B down by proper usage of smaller data types and enum
...
classes
2019-06-12 15:41:55 +02:00
DRracer
94a5175980
Code size reduction - saved almost 2KB
2019-06-12 15:41:34 +02:00
DRracer
8d388fa03a
Merge pull request #1911 from mkbel/layer1_cal_flash
...
Layer1 cal flash
2019-06-12 15:40:59 +02:00
Marek Bel
49f172a7b9
Convert uint8_t cycle control varibles changed in previous commit to uint_least8_t to be potentially more portable.
2019-06-12 15:01:57 +02:00
DRracer
b15bbaf177
for cycles' variables: int -> uint8_t where appropriate, part1
2019-06-12 14:58:15 +02:00
Marek Bel
7ac098a135
Refactor. Put constants needed in functions inside fuctions to limit its scope.
2019-06-12 14:20:20 +02:00
Marek Bel
2755a3733d
Document.
2019-06-12 14:15:58 +02:00
Marek Bel
342954b88c
Refactor. Make constants producing first layer calibration square more clear. Note layer height discrepancy.
2019-06-12 13:31:17 +02:00
DRracer
4f8ed7f123
for cycles' variables: int -> uint8_t where appropriate, part1
2019-06-12 10:31:09 +02:00
DRracer
baa36ce740
another almost 200B down by proper usage of smaller data types and enum
...
classes
2019-06-12 09:58:42 +02:00
Marek Bel
d528a53526
Refactor. Move lcd_commands_func1() to first_lay_cal.cpp and rename it to lay1cal_square(). Remove its constant parameters. Move remaining G1 code to lay1cal_meander(). Saves 6B of FLASH memory.
2019-06-12 01:36:48 +02:00
Marek Bel
60cc3d58ec
Use sprintf_P in first layer calibration. Save 30B of FLASH memory.
2019-06-11 20:00:49 +02:00
Marek Bel
47a183e96e
Use loop to enquecommand_P() in first layer calibration. Save 126B of FLASH memory.
2019-06-11 19:49:56 +02:00
Marek Bel
21f4669600
Make count_e() constexpr.
2019-06-11 19:22:08 +02:00
Marek Bel
4effff9e99
Use loop to enquecommand_P() in first layer calibration. Save 10B FLASH memory.
2019-06-11 18:56:29 +02:00
Marek Bel
d21f256cd0
Remove duplicate calls of lcd_timeoutToStatus.start(), move !blocks_queued() && cmd_buffer_empty() condition to outer if, rewrite using switch statement. Save 487B of FLASH memory.
2019-06-11 18:26:59 +02:00
Marek Bel
97a5d6b5f4
Make constants const.
2019-06-11 17:30:37 +02:00
Marek Bel
9b1e3213ae
Variable lcd_commands_step doesn't need to be global.
2019-06-11 17:30:19 +02:00
DRracer
58948cffcd
Code size reduction - saved almost 2KB
2019-06-11 17:23:01 +02:00
Marek Bel
0c9121e99e
Use loop to enquecommand_P() in first layer calibration.
2019-06-11 17:08:56 +02:00
DRracer
f20125a3e2
Code size reduction - saved almost 2KB
2019-06-11 16:24:40 +02:00
Marek Běl
cb6a3e7e12
Merge pull request #1907 from DRracer/fan_check_error_fix
...
Do not allow resume printing if fans are still not ok
2019-06-11 15:12:48 +02:00
DRracer
13c3ab14fa
test fan check error only when enabled by #ifdef
2019-06-11 15:05:40 +02:00
DRracer
3e37150552
Do not allow resume printing if fans are still not ok
2019-06-11 14:53:10 +02:00
Marek Bel
27145204ed
Use internationalized M117, but anyway the text is not shown.
2019-06-10 21:40:12 +02:00
Marek Bel
4be8fa701e
Use loop to enquecommand_P() in first layer calibration.
2019-06-10 20:41:18 +02:00
Yuri D'Elia
c40e3b550d
Remove stubs and live K by default
2019-06-10 19:34:00 +02:00
NotaRobotexe
bb980e2fca
sound edit, delete mute mode, add blind mode
2019-06-10 15:03:52 +02:00
Marek Běl
28e7772421
Merge pull request #1886 from leptun/MK3_fix_load_filament_5
...
Fix Load Filament 5 for MMU2
2019-06-10 14:45:55 +02:00
Marek Běl
327e6cd39b
Merge pull request #1889 from DRracer/fan_check_error_fix
...
Fan check error fix
2019-06-06 15:52:44 +02:00
DRracer
0cf6bc0677
Merge pull request #1903 from mkbel/filament_runout_mk3_2
...
Filament runout mk3 2
2019-06-06 15:51:35 +02:00
DRracer
83578c3389
documentation + minor code cleanup based on code review
2019-06-06 15:50:13 +02:00
Vojtech Pavlik
a4bc91ed2f
M0/M1/M117 fix: Use CUSTOM_MSG states in M0/1/M117
...
Now that we have the new CUSTOM_MSG states, we can use them in the M0/M1
and M117 handlers to force the user message to be displayed even when
the printer is printing from a SD card and displaying a file name.
2019-06-06 14:25:36 +02:00
Vojtech Pavlik
5494f23942
M0/M1/M117 fix: Add new CUSTOM_MSG states.
...
When the printer prints from a SD card, the display of progress messages
and filename takes precedence over CUSTOM_MSG_TYPE_STATUS messages used
by M0/M1/M117. Let's introduce two new CUSTOM_MSG states, one that
overrides the SD status while waiting in M0/M1 (M0WAIT) and one that
ensures the message will be displayed in at least one screen update
(MSGUPD).
2019-06-06 14:25:06 +02:00
Vojtech Pavlik
5d8eb84965
M0/M1/M117 fix: Move M0/M1 to the top of decoder.
...
Move M0/M1 decoding before any other command. The M0/M1 message can contain
arbitrary characters and so it also can contain substrings that other
decoders trigger on, like the letter 'G'. Any such substring would cause
misdecoding of the M0/M1 and unpredictable behavior in addition to not
making the printer stop.
M117 already received the same treatment in the past, so we take the same
approach for M0/M1.
2019-06-06 14:24:34 +02:00
Yuri D'Elia
0239f4bce1
Update/compute advance steps inside calculate_trapezoid_for_block
...
Do not store the block e_D ratio, store directly the computed
compression factor so that we can recompute the advance steps
quickly and update them in sync with the acceleration rates.
2019-06-05 20:25:26 +02:00
Yuri D'Elia
048628083a
Remove clear_current_adv_vars()
...
The pressure state is already reset implicitly at the end of each block,
meaning an extruder switch will never have to reset the internal state
anyway.
We clear the internal backpressure in the following conditions:
- when switching to a non-LA block
- when quickStop is called
- when the scheduler is idling (losing pressure)
2019-06-05 20:25:19 +02:00
Yuri D'Elia
7d33089d9a
Remove use_advance_lead
...
The per-step state is kept implicitly using nextAdvanceISR,
while the current pressure is decoupled anyway.
2019-06-05 20:25:12 +02:00
Yuri D'Elia
dc436b71fe
Fix position_float after a quickStop condition
2019-06-05 20:25:05 +02:00
Yuri D'Elia
fa454f61e4
Drop unused "speed_lookup_table.h" from planner.cpp
2019-06-05 20:24:58 +02:00
MRprusa3d
1d8c24e8a9
"disable_z()" for Delta PSU IV
...
correction for (motor) mode switching
2019-06-05 19:22:04 +02:00
Marek Bel
19351df8a7
Extracted computation of z_shift for M600 into a separate function to
...
improve readability. Surprisingly, also the code got shorter.
2019-06-05 18:34:26 +02:00
Marek Bel
9c3bb14bae
remove function forward decl: fsensor_restore_print_and_continue_IR
...
revert LCD_BL_PIN change
2019-06-05 18:34:10 +02:00
DRracer
aeed49a80e
Fix filament runout on optical filament sensors
...
Reworked the IR variant accordingly
Some code-size optimization in related functions
2019-06-05 18:33:41 +02:00
DRracer
10247a28a3
Merge pull request #1896 from NotaRobotexe/power_panic
...
documentation for power panic
2019-06-05 16:10:04 +02:00
NotaRobotexe
0cab2284ea
PFW-874 new firmware alert timeout
2019-06-05 15:48:10 +02:00
NotaRobotexe
14270ac1f6
power panic documentation
2019-06-05 15:10:51 +02:00
NotaRobotexe
d263728c37
documentation
2019-06-05 14:55:59 +02:00
DRracer
33b2aa5e58
Merge pull request #1894 from NotaRobotexe/power_panic
...
Power panic Z axis fix
2019-06-05 13:34:21 +02:00
NotaRobotexe
2c4e98dc27
power panic improvement
2019-06-05 13:12:08 +02:00
Yuri D'Elia
cda9ed4a1d
Reset LA state more carefully during stop conditions
2019-06-04 16:22:40 +02:00
Yuri D'Elia
1bed8cfa94
Don't call fsensor_st_next_block repeatedly during the last step
...
Rely on st_block_begin to perform a single call instead of calling
block_chunk for each advance tick in the last step
2019-06-04 16:22:33 +02:00
Yuri D'Elia
8ce1c04740
Remove useless "extruder under pressure" flag
...
That's exactly what LA does
2019-06-04 16:22:27 +02:00
Yuri D'Elia
bca5618145
Save/restore K during a power panic
2019-06-03 17:33:19 +02:00
Yuri D'Elia
84009e1e8e
Do a full fsensor_update() when initializing the sensor
...
This correctly populates the "extruder info" details even when
the menu is entered for the first time after starting a print.
2019-06-03 17:32:57 +02:00
Yuri D'Elia
fa7c0fb2c9
Avoid triggering LA during a Z-priming move
...
When recovering from a pause, the nozzle is often primed while
being lowered. If LA is triggered under such a move, the pressure
advance will be wasted.
2019-06-03 17:32:51 +02:00
Yuri D'Elia
d2432056bd
Elide fsensor_st_block_begin, saving some cycles/bytes
2019-06-03 17:32:43 +02:00
DRracer
5985c0608e
Revert changes to pins_Einsy_1_0.h not related to the fan check error
...
fix
2019-06-03 09:02:27 +02:00
Yuri D'Elia
5cd0177389
Cleanup fsensor_st_block_begin
2019-06-02 18:17:59 +02:00
Yuri D'Elia
b4bf79297f
Remove unneeded includes from fsensor
2019-06-02 01:08:03 +02:00
Yuri D'Elia
c50b1c0351
Rework the filament counter logic
...
- Move direction checks out of fsensor: fsensor_counter is now
always in the same direction as e_steps
- Check the filament chunk after e_steps have been physically done,
using the real e_step count so far
2019-06-01 22:08:00 +02:00
DRracer
09fee4e64d
remove fan error simulation automaton
2019-05-31 11:30:30 +02:00
DRracer
6755791778
Fix repeated fan error checking
2019-05-31 11:29:11 +02:00
DRracer
adb5baa12b
Merge remote-tracking branch 'upstream/MK3' into MK3
2019-05-31 11:05:24 +02:00
DRracer
ebfad55617
Merge pull request #1888 from mkbel/always_cut_independent
...
Always cut independent
2019-05-31 07:00:37 +02:00
Marek Bel
00da4640e2
Document.
2019-05-30 23:29:33 +02:00
Marek Bel
e79c203c96
Do not always cut if it is not enabled from menu.
2019-05-30 23:04:06 +02:00
Marek Bel
ccb649b1f6
Add always cut experimental / for testing feature.
2019-05-30 23:03:59 +02:00
Marek Bel
18122049a6
Fix cut filament menu item labels.
2019-05-30 19:36:10 +02:00
Voinea
878e866401
Fix Load Filament 5 for MMU2
2019-05-30 17:28:02 +03:00
NotaRobotexe
e9c870e7a0
fix of fixof power panic
2019-05-29 20:33:22 +02:00
NotaRobotexe
3b2cbc68d8
PFW-571 send PRN:4 instead PRN:1 while changing filament
2019-05-28 18:22:34 +02:00
DRracer
1c619133a3
Merge pull request #1880 from NotaRobotexe/power_panic
...
PFW-828 add uvlo tiny z positio back
2019-05-28 14:29:13 +02:00
NotaRobotexe
bcb6129c29
delete comment
2019-05-28 14:11:38 +02:00
NotaRobotexe
8842d16832
add back uvlo tiny z positio
2019-05-28 13:50:21 +02:00
DRracer
326c061d8c
testing pin 5
2019-05-27 18:27:24 +02:00
DRracer
2f96badef4
Merge pull request #1870 from NotaRobotexe/power_panic
...
PFW-828 after power panic printer start print in the air
2019-05-27 17:13:08 +02:00
Marek Běl
9c3b93f900
Merge pull request #1869 from DRracer/fix_mintemp_and_fsensor
...
Fix MINTEMP errors and fsensor runout
2019-05-27 16:32:22 +02:00
DRracer
253087a4c5
Code cleanup
2019-05-27 16:18:21 +02:00
DRracer
4d020d99f6
Code cleanup
2019-05-27 14:57:02 +02:00
Yuri D'Elia
51d6904dad
Multiply the step rate when grouping advance steps
2019-05-27 14:44:09 +02:00
NotaRobotexe
f070a10904
edit
2019-05-27 10:10:24 +02:00
Yuri D'Elia
a742afcebd
Remove version check
2019-05-26 22:43:06 +02:00
Yuri D'Elia
4772532524
Allow Live-K to be used on stock 3.7.1 using a stub
2019-05-26 22:14:31 +02:00
Yuri D'Elia
47d2562510
Typos
2019-05-26 21:06:29 +02:00
Yuri D'Elia
823f7b069c
Fix filament sensor direction again
2019-05-26 21:06:22 +02:00
Yuri D'Elia
9d834925c0
Recalculate LA_phase correctly
2019-05-26 17:06:21 +02:00
Yuri D'Elia
3abb2188df
Fixup initial error by defect
2019-05-26 16:59:45 +02:00
Yuri D'Elia
ab478ec281
Save another 144b by avoiding a calc_timer copy
2019-05-26 16:42:03 +02:00
Yuri D'Elia
20694aeabc
Save 316 bytes by avoiding advance_spread copies
2019-05-26 16:41:56 +02:00
Yuri D'Elia
a28fb65bb2
Optimize advance_spread further
2019-05-26 16:41:50 +02:00
Yuri D'Elia
daa8007de5
Allow to exclude Live K from the build
2019-05-26 16:41:45 +02:00
Yuri D'Elia
6f6cef65b5
Revert "Correctly handle direction for the filament sensor"
...
This reverts commit aae03ad83e .
2019-05-26 16:41:37 +02:00
Yuri D'Elia
bddc3e84ab
Use WRITE_NC directly in the isr
2019-05-25 21:52:06 +02:00
Yuri D'Elia
aae03ad83e
Correctly handle direction for the filament sensor
2019-05-25 21:51:59 +02:00
Yuri D'Elia
935a798236
Speedup advance_spread for common divisors
2019-05-25 21:51:52 +02:00
Yuri D'Elia
fa7ecfc38e
Check for serial roughtly in the middle of the stepper isr
2019-05-25 18:41:28 +02:00
Yuri D'Elia
0a26de1e7f
Allow to live-tune K during a print
2019-05-25 18:41:21 +02:00
NotaRobotexe
55a2d588f1
PFW-828 printing in the air after power panic
2019-05-24 18:30:58 +02:00
NotaRobotexe
69455bfc75
PFW-828 fix printing in the air after power panic
2019-05-24 18:28:16 +02:00
Yuri D'Elia
282b502393
Improve the distribution of the advance steps
2019-05-24 17:08:32 +02:00
Yuri D'Elia
294bf4068d
Improve debug messages
2019-05-24 17:08:32 +02:00
Yuri D'Elia
53b77bab36
Do not operate on the prev block when already in use
2019-05-24 17:08:32 +02:00
Yuri D'Elia
aae5cce28f
Use the nominal frequency to merge ticks
2019-05-24 17:08:32 +02:00
Yuri D'Elia
c6dbcc494f
Typo
2019-05-24 17:08:32 +02:00
Yuri D'Elia
942c38c18b
Minor reformatting
2019-05-24 17:08:32 +02:00
Yuri D'Elia
9586d71adb
Mention LA_DEBUG_LOGIC
2019-05-24 17:08:32 +02:00
Yuri D'Elia
a1be8b6784
Initialize current_adv_steps correctly
...
Initialize at 0 both on startup and on reset on regular (non-LA)
segments to avoid cumulating errors.
2019-05-24 17:08:32 +02:00
Yuri D'Elia
707849e6c4
Use a define instead of hard-coding a divider
2019-05-24 17:08:32 +02:00
Yuri D'Elia
a2fa8e5313
Rewrite the advance_isr scheduler
2019-05-24 17:08:32 +02:00
Yuri D'Elia
2d3fe3197c
Move calc_timer into speed_lookup_table for planner reuse
2019-05-24 17:08:32 +02:00
Yuri D'Elia
9425b6b07a
Planner: do not recalculate max_adv_steps, since it doesn't change
2019-05-24 17:08:32 +02:00
Yuri D'Elia
2c8e04bd5f
Planner: use the correct block when updating LA factors
2019-05-24 17:08:32 +02:00
Yuri D'Elia
3b528196dd
Fixup prefix echomagic for the LA config report
2019-05-24 17:08:32 +02:00
Yuri D'Elia
520cb491b2
Move speed lookup defs into a separate source
2019-05-24 17:08:32 +02:00
Yuri D'Elia
ebdc5e35e7
Remove two more OCR1A direct manipulations
...
Use _NEXT_ISR and st_reset_timer to correctly reinitialize and
re-schedule the advance ticks.
2019-05-24 17:08:32 +02:00
Yuri D'Elia
cbf1a85ec3
Switch original LA implementation with LA1.5
...
This discards several Prusa optimizations for LA1.0.
We'll re-implement those later if needed.
Debugging is turned on.
2019-05-24 17:08:32 +02:00
Yuri D'Elia
bf0c60dd45
Factor-out some repetition into fsensor_step
2019-05-24 17:08:32 +02:00
Yuri D'Elia
124540a06f
Adapt LA changes to ConfigurationStore
2019-05-24 17:08:32 +02:00
Yuri D'Elia
45563bfdd3
Formatting sanity
2019-05-24 17:08:32 +02:00
Yuri D'Elia
eeea2725cb
Partial LA15 support
2019-05-24 17:08:32 +02:00
DRracer
098c0979ba
Merge pull request #1848 from MRprusa3d/PFW-853
...
recovery from "Stop()"
2019-05-24 09:54:07 +02:00
DRracer
9cb0bc7bcf
Fix MINTEMP errors and fsensor runout
2019-05-24 08:46:44 +02:00
NotaRobotexe
1399d7dcc8
support only for MK3/MK3S
2019-05-23 15:22:31 +02:00
Marek Běl
df02030fe0
Merge pull request #1863 from DRracer/lcd20190523
...
Fix. menu texts and formatting - issues PFW-877 and PFW-879
2019-05-23 14:31:51 +02:00
Ondrej Tuma
63235625ab
pause printer by flag
2019-05-23 13:13:11 +02:00
DRracer
e17f3f8405
change language files accordingly
2019-05-23 11:14:26 +02:00
DRracer
da98977de3
Fix. menu texts and formatting - issues PFW-877 and PFW-879
2019-05-23 10:45:55 +02:00
MRprusa3d
a408f90659
recovery from "Stop()"
2019-05-18 21:28:59 +02:00
Marek Bel
15ba17f110
Fix translator columns hint for Adjusting Z:
2019-05-16 17:30:15 +02:00
Marek Bel
74d8c15b4f
Fix documentation.
2019-05-16 17:23:54 +02:00
Marek Bel
dcfc6348ed
Fix documentation.
2019-05-16 17:22:47 +02:00
DRracer
a453c6fc9d
Save 236B by improving functions in menu.cpp. Beware - the label now has
...
to come with a ':' as its last character. Changed language files along
with this commit too.
2019-05-16 16:43:44 +02:00
Marek Bel
dad2065da6
Merge branch 'MK3' into rise_z
2019-05-15 16:37:17 +02:00
Marek Bel
1f3877b221
Extract duplicate code into function. Saves 4B of flash.
2019-05-15 16:31:10 +02:00
Marek Běl
fbc0c260b1
Merge pull request #1826 from ondratu/selftest_wizard
...
Selftest fan improvements
2019-05-15 13:43:48 +02:00
Ondrej Tuma
ebfc8c1c79
Fan autotest for swapping in Selftest
2019-05-15 10:10:46 +02:00
Ondrej Tuma
c851e158cc
Manual fan check menu have default (selected) option
2019-05-15 10:10:46 +02:00
Marek Bel
1a78bd53ba
Fix compiler warning
...
sketch/Marlin_main.cpp: In function 'void marlin_wait_for_click()':
sketch/Marlin_main.cpp:9646:12: warning: unused variable 'busy_state_backup' [-Wunused-variable]
2019-05-14 19:11:46 +02:00
Marek Bel
91e72a79f0
Fix compiler warning
...
sketch/Marlin_main.cpp:871:13: warning: unused variable 'ir_detected' [-Wunused-variable]
2019-05-14 19:07:50 +02:00
Marek Bel
acfcd59369
Fix compiler warning:
...
sketch/menu.cpp: In function 'int menu_draw_item_puts_P(char, const char*, char)':
sketch/menu.cpp:184:1: warning: no return statement in function returning non-void [-Wreturn-type]
2019-05-14 18:32:40 +02:00
Marek Bel
89fc9e7f92
sketch/menu.h:90:115: warning: invalid conversion from 'void (*)(int)' to 'void (*)(uint8_t) {aka void (*)(unsigned char)}' [-fpermissive]
...
#define MENU_ITEM_FUNCTION_NR_P(str, number, func, fn_par) do { if (menu_item_function_P(str, number, func, fn_par)) return; } while (0)
^
sketch/ultralcd.cpp:5926:5: note: in expansion of macro 'MENU_ITEM_FUNCTION_NR_P'
MENU_ITEM_FUNCTION_NR_P(_T(MSG_LOAD_FILAMENT), '1', extr_adj, 0); ////MSG_LOAD_FILAMENT_1 c=16
2019-05-14 18:25:43 +02:00
Marek Bel
66d20f0297
Fix code formatting (indentation).
2019-05-14 16:45:15 +02:00
Marek Bel
4de93ca19c
Fix eject filament menu items numbering.
2019-05-14 16:43:33 +02:00
Marek Bel
150787efbd
Generate menu item texts Cut filament <nr.> during runtime to conserve flash.
2019-05-14 16:25:29 +02:00
Marek Bel
6495a8fa58
Decrease flash reserved for secondary language.
2019-05-14 16:10:04 +02:00
Marek Bel
7c4f66181f
Generate menu item texts Load filament <nr.> and Eject filament <nr.> during runtime to conserve flash.
2019-05-14 15:47:25 +02:00
Marek Běl
dddc1b84e6
Merge pull request #1825 from prusa3d/MK3_3.7.1
...
Increase version 3.7.1 final.
2019-05-13 17:29:30 +02:00
Marek Běl
efa8e6e6ba
Merge pull request #1658 from Harpalyke/save-ustep-res-with-M500
...
Allow save of uStep resolution with M500
2019-05-13 17:08:34 +02:00
Marek Bel
e93f043fee
Increase version 3.7.1 final.
2019-05-13 15:09:58 +02:00
Marek Běl
bbd1b60229
Merge pull request #1437 from craiglink/memory-overrun
...
set array size correctly to 4
2019-05-11 03:01:52 +02:00
Marek Běl
12b801fa1f
Merge pull request #1397 from jhoblitt/plumbing/sh-chmod
...
make all shell scripts executable
2019-05-11 02:37:09 +02:00
Marek Běl
0a343d4d66
Merge pull request #1806 from NotaRobotexe/fw_check
...
check if firmware is on right type of printer
2019-05-11 02:11:54 +02:00
Marek Běl
176b28bc83
Merge pull request #1813 from prusa3d/MK3_3.7.1
...
Enable watchdog for all variants.
2019-05-10 17:33:44 +00:00
Marek Bel
a9d6ae296b
Enable watchdog for all variants.
2019-05-10 16:30:08 +02:00
Marek Běl
2a39fad400
Merge branch 'MK3' into bugfixes
2019-05-10 13:43:36 +00:00
Marek Běl
084c6f2700
Merge pull request #1805 from DRracer/MK3
...
PFW-844
2019-05-10 13:41:59 +00:00
Marek Bel
5707d4b85c
Set all target hot ends to 0 deg. Celsius instead of just hotend nr. 0 to be more safe with custom modifications.
2019-05-10 15:27:25 +02:00
DRracer
dc4f30530d
Fix a number overflow to last line of LCD when doing large extruder in
...
menu Settings -> Move axis -> Extruder
2019-05-09 13:44:35 +02:00
DRracer
714fb23de6
Merge remote-tracking branch 'upstream/MK3' into MK3
2019-05-09 13:40:28 +02:00
NotaRobotexe
e7dd5c60d3
check if firmware is on right type of printer
2019-05-07 18:10:44 +02:00
Marek Běl
8692565cf0
Merge pull request #1802 from XPila/MK3
...
Variable bed PWM resolution/frequency (adjusted to 5bits/32Hz)
2019-05-07 15:13:02 +00:00
DRracer
f431d24762
Merge branch 'MK3' of https://github.com/DRracer/Prusa-Firmware into MK3
2019-05-07 16:17:14 +02:00
DRracer
0124fbf9ee
Fix: display target extruder temperature on the main screen when doing
...
PID calibration
2019-05-07 16:15:42 +02:00
Robert Pelnar
85806a0f38
variable bed pwm frequency fix (input value is 7bit, not 8bit)
2019-05-07 15:35:34 +02:00
Ondrej Tuma
b7fe43bf68
Deleted bad cols/rows definitions for translation.
2019-05-07 12:52:23 +02:00
Robert Pelnar
58683da2fb
Variable bed PWM resolution/frequency (adjusted to 5bits/32Hz)
2019-05-06 18:07:42 +02:00
Marek Běl
e56be687bb
Merge pull request #1800 from XPila/MK3
...
return with exitcode 1 if any language not generated properly
2019-05-06 15:58:34 +00:00
Marek Bel
1a0370e1c7
Make macro ON_MENU_LEAVE() usage similar to macros MENU_ITEM_BACK_P() and MENU_ITEM_FUNCTION_P().
2019-05-06 17:39:00 +02:00
Robert Pelnar
fa1bdd6ab1
Lang - decreased reserved space for secondary language (10496 bytes)
2019-05-06 17:29:47 +02:00
DRracer
ffbdb43881
Remove commented code
2019-05-06 17:26:42 +02:00
Robert Pelnar
41a827fa00
Removed unused texts, increased reserved space to 0x2e00 (11776 bytes)
2019-05-06 17:24:06 +02:00
DRracer
0794430208
Fix for linearity correction not being stored to EEPROM when doing MENU-
...
UP
2019-05-06 15:33:13 +02:00
Robert Pelnar
1c9d134c62
return with exitcode 1 if any language not generated properly
...
fix - include system_timer.h
2019-05-06 15:29:57 +02:00
DRracer
e5911c42da
limit printed menu text to max 18 characters
2019-05-06 12:44:36 +02:00
Robert Pelnar
3852aa4275
Different secondary language reserved space for MK3 and MK25
2019-04-30 12:42:18 +02:00
Marek Běl
177c123b4d
Merge pull request #1780 from MRprusa3d/PFW-841
...
"stop" immediately after "pause" patch
2019-04-29 14:49:49 +00:00
Marek Bel
8fadbf1b44
Do not call watchdog reset from updateTemperaturesFromRawValues().
2019-04-29 16:41:38 +02:00
MRprusa3d
b93f37ee02
"stop" immediately after "pause" patch
2019-04-29 14:39:19 +02:00
Robert Pelnar
18dec75b56
MK2.5 - watchdog enabled + test (command "D-1")
2019-04-29 13:19:59 +02:00
NotaRobotexe
f16bea26e5
raise the Z axis before filament loading to nozzle on MMU2S
2019-04-25 17:39:09 +02:00
XPila
238079fc95
Merge pull request #1763 from mkbel/save_flash_timer2
...
Do not compile timer02.c if not used. Saves 148B flash.
2019-04-24 16:07:17 +02:00
mkbel
e8e7fa907f
Change comment
2019-04-24 15:52:24 +02:00
Robert Pelnar
1d8b2b3e18
Secondary language reserved space resized
2019-04-24 15:22:17 +02:00
Marek Bel
f25f8f1b71
Do not compile timer02.c if not used. Saves 148B flash.
2019-04-23 19:39:49 +02:00
mkbel
ca449ef517
Merge pull request #1742 from XPila/MK3-bed_pwm_revert
...
Bed high frequency PWM disabled
2019-04-16 21:04:28 +00:00
Marek Bel
75fac9dab2
Do not kill printer if External SPI flash W25X20CL is not responding.
...
Remove internationalization macro for this message. It has no sense to be translated as internationalization in most cases doesn't work if it is not responding.
Show this message instead of splash screen if the error is encountered.
There is no additional delay or wait for click, as such functions doesn't work in setup function.
2019-04-16 22:20:53 +02:00
Robert Pelnar
1f9737b4a6
Bed high frequency PWM disabled
2019-04-16 16:48:01 +02:00
Paul Bransford
863c7158b2
use modification times for sdcard sort
2019-04-16 06:24:47 -04:00
PavelSindler
7168c09eec
Merge pull request #1713 from mkbel/fix_octoprint_mmu_load_failed
...
Fix octoprint mmu load failed
2019-04-10 18:21:06 +02:00
MRprusa3d
b5f196406e
(preliminary) fix @ preHeatError II
2019-04-10 00:29:58 +02:00
Marek Bel
0d3e3c506a
Merge remote-tracking branch 'prusa3d/MK3' into fix_octoprint_mmu_load_failed
2019-04-09 20:54:21 +02:00
Marek Bel
c7d403733a
Allow load filament retry after button push unlimited times in case mmu_continue_loading() is in blocking mode.
2019-04-09 20:50:29 +02:00
MRprusa3d
32f3471862
print parameters checking
...
prusa_stat_diameter()
2019-04-09 15:22:08 +02:00
Voinea
173062295f
Enable print fan while waiting for cooldown
2019-04-06 13:42:21 +03:00
Marek Bel
84cabd3836
Change busy_state type, save 340B of flash
2019-04-05 15:20:34 +02:00
Marek Bel
bf57a59147
Extract duplicate code into function. Saves 106B flash.
2019-04-05 15:12:35 +02:00
Marek Bel
4bfa3d7e0b
Reporty busy: paused for user in case MMU is not responding.
2019-04-04 19:04:15 +02:00
Marek Bel
bf1a55ab02
Add mmu_continue_loading blocking variant and use it for usb printing, so that "ok" is not returned to the controller in case MMU load failed.
...
Known limitation: MMU load failed is not handled properly if it happens again after user clicked printer button to continue print.
2019-04-04 18:15:37 +02:00
MRprusa3d
aa0edd09f5
(preliminary) fix @ (bed) preHeatError
2019-04-03 22:48:58 +02:00
MRprusa3d
4b1fc69088
"disable_z()" for Delta PSU III
...
stealthChop set if motor-disable (@ Z) required
2019-04-02 20:04:44 +02:00
PavelSindler
fd96bde69f
Merge pull request #1667 from mkbel/Add_IR_sensor_fail_message
...
Add ir sensor fail message
2019-04-02 14:55:27 +02:00
PavelSindler
a8d8d9e4c9
version change
2019-04-01 20:52:24 +02:00
PavelSindler
c440ca7369
Revert "Phase correct PWM for bed, frequency 40KHz."
2019-04-01 18:44:13 +02:00
Marek Bel
469aa10097
Enable MMU cutter.
2019-03-29 07:27:29 +01:00
PavelSindler
ae11c1e26f
rename function
2019-03-28 16:39:56 +01:00
PavelSindler
97594c83bb
function misleading names changed
2019-03-28 14:58:58 +01:00
PavelSindler
96a111119b
document
2019-03-28 14:52:50 +01:00
PavelSindler
8f69d5a501
document
2019-03-28 14:48:35 +01:00
PavelSindler
1dd486d86d
max length of menu item strings added
2019-03-28 13:18:28 +01:00
PavelSindler
d22793f276
Z-probe nr. states reduced to 1; 3; 5
2019-03-28 12:02:46 +01:00
PavelSindler
02faadf0b9
MMU mode renamed
2019-03-28 09:49:08 +01:00
PavelSindler
e7900aeaa1
Merge remote-tracking branch 'upstream/MK3' into 7x7_polishing
2019-03-28 08:08:54 +01:00
PavelSindler
c1da07bda0
Merge pull request #1653 from XPila/MK3
...
Phase correct PWM for bed, frequency 40KHz.
2019-03-27 21:07:15 +01:00
PavelSindler
e259967991
remove / comment debug code
2019-03-27 20:41:45 +01:00
PavelSindler
5863297538
if deviation between current Z-probe and avg, value > 50um, enlarge Z-probe movements and repeat measurement
2019-03-27 20:25:00 +01:00
PavelSindler
a9ce38df71
Function for decision if we have valid Z-calibration data in eeprom fixed, mesh bed leveling: possible crash fix, temporaty debug info on serial line.
2019-03-26 17:14:05 +01:00
MRprusa3d
17a534e42b
"disable_z()" for Delta PSU II
2019-03-25 23:28:25 +01:00
Marek Bel
baeee5817e
Make lcd_selftest_error() calls safer, as nullptr parameter is not handled. It is hard to believe, but it actually saves 4B flash.
2019-03-22 00:24:22 +01:00
Marek Bel
966e772702
Fix compile error for non TMC2130 endstops check.
2019-03-22 00:14:29 +01:00
Marek Bel
89f1a3bacf
Fix compile error for non TMC2130 pulley check.
2019-03-22 00:11:02 +01:00
Marek Bel
8582babddb
Fix compile error for manual fan check.
2019-03-22 00:08:44 +01:00
Marek Bel
d1c5c03907
Fix compile error for manual fan check.
2019-03-22 00:03:14 +01:00
Marek Bel
c45a7f8641
Fix 1_75mm_MK3-EINSy10a-E3Dv6full variant build error.
2019-03-21 23:50:01 +01:00
Marek Bel
91779a5d04
Add filament sensor false triggering message.
2019-03-21 23:36:59 +01:00
Marek Bel
ba23b1b2c5
Remove unused.
2019-03-21 22:50:46 +01:00
Marek Bel
6c28ed6349
Convert lcd_selftest_error() first parameter to enum class.
2019-03-21 22:48:57 +01:00
PavelSindler
fbe68cb287
variables scope changed
2019-03-21 19:37:34 +01:00
PavelSindler
576bfb17c7
whitespace
2019-03-21 18:51:54 +01:00
PavelSindler
175f840d16
return statement not used (fixes Pronterface issues)
2019-03-21 18:46:07 +01:00
MRprusa3d
632781c4a2
"disable_z()" for Delta PSU
2019-03-21 00:45:15 +01:00
Harpalyke
0f21ccee3c
Adding the microstepping resolution for all axis to the eprom config which is persisted during M500 for Mk3 and Mk3S
2019-03-19 21:39:59 +00:00
MRprusa3d
7d98177716
farmMode updates
2019-03-19 19:48:40 +01:00
Robert Pelnar
cfd185f315
Phase correct PWM for bed, frequency 40KHz.
2019-03-19 14:50:57 +01:00
Marek Bel
4100bd33a7
Fix Dcodes compilation errors and warnings.
2019-03-19 13:53:58 +01:00
PavelSindler
e37c2e0b2e
version change
2019-03-15 20:01:02 +01:00
PavelSindler
7c5e9500a8
version change
2019-03-15 20:00:07 +01:00
PavelSindler
c05561d6b1
Merge pull request #1607 from PavelSindler/7x7
...
7x7 mbl and switching mmu modes
2019-03-15 19:55:15 +01:00
PavelSindler
0ca52216f3
Revert "variants update"
...
This reverts commit c3a95ab79b .
2019-03-15 13:14:32 +01:00
Marek Bel
ffe45bdef3
Disable mmu filament cutter feature.
2019-03-15 03:38:37 +01:00
PavelSindler
80ef2686ae
mmu mode switching fix
2019-03-14 18:17:40 +01:00
PavelSindler
6e26f61726
fixed 7x7 mesh bed leveling vs. Z calibration check
2019-03-14 14:48:01 +01:00
PavelSindler
ef198856a4
increase relative movement in Z to work better with higher hysteresis PINDAs
2019-03-14 14:10:52 +01:00
PavelSindler
9e0e4198c5
Mesh by 3d-gussner, fixed difference between mbl points coordinates and coordinates used in planner for corrections, mbl settings menu update
2019-03-14 01:52:44 +01:00
MRprusa3d
1f131f66e0
print parameters checking
...
nozzle diameter
2019-03-14 00:36:56 +01:00
PavelSindler
72f51989fa
compare measured Z-value during mesh bed leveling with Z-calibration value even for 7x7 mesh
2019-03-13 19:41:09 +01:00
PavelSindler
32138ea09a
menu item alignment
2019-03-13 15:08:09 +01:00
PavelSindler
6c70d59810
mbl settings initialization fix
2019-03-13 15:05:10 +01:00
PavelSindler
c3a95ab79b
variants update
2019-03-12 11:57:35 +01:00
PavelSindler
b20d9171b6
Merge remote-tracking branch 'upstream/MK3' into 7x7
2019-03-12 11:47:17 +01:00
PavelSindler
42036270cf
Merge pull request #1619 from MRprusa3d/PFW-795d
...
better autoLoad II
2019-03-12 11:44:30 +01:00
PavelSindler
c55f42965d
Merge pull request #1601 from MRprusa3d/PFW-749
...
SD card menu enhancement
2019-03-12 11:42:53 +01:00
PavelSindler
c9cff11732
Merge pull request #1593 from MRprusa3d/PFW-647
...
mode switching, G-code unification
2019-03-12 11:40:43 +01:00
PavelSindler
4d2b155ff9
Merge pull request #1594 from mkbel/fix_change_filament
...
Fix change filament
2019-03-12 11:39:15 +01:00
PavelSindler
0aa21c362e
compile error fix
2019-03-11 23:37:30 +01:00
PavelSindler
9a83925a97
fixed bug in counting approximate Z coordinate
2019-03-11 23:13:55 +01:00
MRprusa3d
3388444b6c
better autoLoad II
...
autoLoad inhibit if Support::ExtruderInfo(@MKx)/SensorInfo(@MKxS)-menu is selected
2019-03-11 20:43:07 +01:00
PavelSindler
698f81abe0
fix compile error
2019-03-11 15:55:48 +01:00
PavelSindler
819a91ab1e
switching stealth/normal mode for mmu in settings menu and tune menu
2019-03-11 12:33:22 +01:00
PavelSindler
141b78c048
number of Z-probes defualt value changed from 4 to 3, mmu stealth mode switch in settings menu
2019-03-10 16:03:46 +01:00
PavelSindler
091934462d
menu correction
2019-03-08 20:06:30 +01:00
PavelSindler
315959c13a
menu update
2019-03-08 20:03:23 +01:00
PavelSindler
952e0e1e77
change min. nProbeRetry to 1
2019-03-08 19:49:10 +01:00
PavelSindler
f293d61d3d
faster Z probe: move Z 150um relatively to last measurement. If PINDA is triggered at the beginning of measurement, move Z 500um higher and repeat measurement
2019-03-08 18:52:14 +01:00
PavelSindler
6a864ffbab
G80 parameters configurable via settings menu
2019-03-08 15:43:37 +01:00
PavelSindler
98bb2b7acf
merge debug gcodes for bed analysis
2019-03-06 20:45:23 +01:00
PavelSindler
dccb6ca2c6
Merge remote-tracking branch 'upstream/MK3' into bed_analysis_gcodes2
2019-03-06 19:56:52 +01:00
PavelSindler
f0cc313fed
debug gcodes (fans, bed analysis) moved to Dcodes, HOST_KEEPALIVE_FEATURE simplified
2019-03-06 19:56:48 +01:00
PavelSindler
2a71dbefb8
Merge pull request #1597 from mkbel/fix_compiler__warning
...
Fix compiler warning
2019-03-06 19:55:18 +01:00
MRprusa3d
6217329d50
SD card menu enhancement
2019-03-06 19:51:26 +01:00
PavelSindler
101453b674
mbl submenu
2019-03-06 13:27:31 +01:00
PavelSindler
5766a5537e
limit number of probes
2019-03-05 22:43:44 +01:00
PavelSindler
7c187541e1
function for valid points determination improved; simple Z-coordinate estimation; measure all points and use inaccurate Z-coordinate in case that we don't have enought information for counting Z-coordinate estimation
2019-03-05 22:36:30 +01:00
PavelSindler
d9e93e8a77
measurements points moved 10mm to the left; measure only chosen points (e.g. not points affected by magnets proximity)
2019-03-05 20:40:08 +01:00
Marek Bel
1eab058ad4
Fix uninitialized variable used.
2019-03-05 18:08:35 +01:00
Marek Bel
7fcecabd5f
Fix compiler warning: variable 'previous_millis_cmd' set but not used
2019-03-05 18:04:58 +01:00
Marek Bel
484259cbb2
Fix compiler warning: 'lcd_settings_linearity_correction_menu_save' defined but not used
2019-03-05 18:00:16 +01:00
Marek Bel
28f1e309a2
Fix compiler warning: 'old_x_max_endstop' defined but not used
...
Fix compiler warning: 'old_y_max_endstop' defined but not used
2019-03-05 17:44:47 +01:00
Marek Bel
7bcd54f8ba
Add missing function prototype.
2019-03-05 17:30:27 +01:00
Marek Bel
ebfd4b2f47
Fix compiler warning: unused parameter 'calib'
2019-03-05 17:02:57 +01:00
Marek Bel
790ae9f0ce
Fix compiler warning: unused parameter 'pstep'.
2019-03-05 16:41:41 +01:00
Marek Bel
5b9e7c4fe7
Fix warning: assignment makes pointer from integer without a cast.
2019-03-05 16:27:47 +01:00
PavelSindler
f1031d2302
new farm statuses for pause (14) and wait for user (15)
2019-03-05 16:00:50 +01:00
Marek Bel
23859921b9
Fix compiler warnings macro redefined.
2019-03-05 15:56:20 +01:00
MRprusa3d
20a03d703d
G-code unification
...
"FSENSOR_RECOVER" ->-> "PRUSA fsensor_recover"
2019-03-05 13:36:13 +01:00
Marek Bel
f161d3ade4
Change formatting.
2019-03-04 22:17:43 +01:00
Marek Bel
b2255c8be9
Preheat nozzle before loading filament in M600 (change filament) gcode.
...
This fixes problem of not heating the nozzle when retrying load after MMU load failed.
2019-03-04 22:00:24 +01:00
MRprusa3d
7e48d633cb
mode switching
...
info-message viewing during mode switching
2019-03-04 21:30:36 +01:00
PavelSindler
17f095b957
shorter Z movements (makes calibration faster)
2019-03-04 20:32:56 +01:00
mkbel
27f69bb761
Merge pull request #1570 from PavelSindler/mmu_stealth_mode
...
mmu stealth mode
2019-03-04 17:09:11 +01:00
PavelSindler
7f92d73a40
MMU_STEALTH_MODE -> MMU_FORCE_STEALTH_MODE; activate_stealth_mode() function update
2019-03-04 17:04:22 +01:00
PavelSindler
9dde8c4732
Merge pull request #1591 from MRprusa3d/PFW-795c
...
better autoLoad
2019-03-04 15:31:04 +01:00
PavelSindler
1051b7c39f
Merge pull request #1583 from mkbel/fix_cut
...
Fix unable to cut filament, if nozzle is already preheated.
2019-03-04 15:29:54 +01:00
PavelSindler
e832f0f2ee
Merge pull request #1582 from mkbel/remove_unused_code
...
Remove commented out code, fix formatting.
2019-03-04 15:29:36 +01:00
Marek Bel
8812d40546
Revert "Fix compiler warning: variable 'kill_message' set but not used"
...
This reverts commit a964f996fa .
2019-03-04 15:05:14 +01:00
MRprusa3d
b02ca18c93
better autoLoad
...
autoLoad inhibit if Support::ExtruderInfo-menu is selected
2019-03-04 12:52:35 +01:00
Marek Bel
9e38b1e101
Add missing message "Preheating to cut".
2019-03-01 18:17:08 +01:00
Marek Bel
6437d44991
Fix unable to cut filament, if nozzle is already preheated.
2019-03-01 18:10:06 +01:00
Marek Bel
83e07b5cdf
Fix compiler warnings:
...
sketch/ultralcd.cpp: In function 'void mFilamentPrompt()':
sketch/ultralcd.cpp:2335:7: warning: enumeration value 'e_FILAMENT_ACTION_none' not handled in switch [-Wswitch]
switch(eFilamentAction)
^
sketch/ultralcd.cpp:2335:7: warning: enumeration value 'e_FILAMENT_ACTION_mmuCut' not handled in switch [-Wswitch]
sketch/ultralcd.cpp:2359:12: warning: enumeration value 'e_FILAMENT_ACTION_none' not handled in switch [-Wswitch]
switch(eFilamentAction)
^
sketch/ultralcd.cpp:2359:12: warning: enumeration value 'e_FILAMENT_ACTION_mmuLoad' not handled in switch [-Wswitch]
sketch/ultralcd.cpp:2359:12: warning: enumeration value 'e_FILAMENT_ACTION_mmuUnLoad' not handled in switch [-Wswitch]
sketch/ultralcd.cpp:2359:12: warning: enumeration value 'e_FILAMENT_ACTION_mmuEject' not handled in switch [-Wswitch]
sketch/ultralcd.cpp:2359:12: warning: enumeration value 'e_FILAMENT_ACTION_mmuCut' not handled in switch [-Wswitch]
sketch/ultralcd.cpp: In function 'void mFilamentItem(uint16_t, uint16_t)':
sketch/ultralcd.cpp:2513:12: warning: enumeration value 'e_FILAMENT_ACTION_none' not handled in switch [-Wswitch]
switch(eFilamentAction)
^
sketch/ultralcd.cpp:2513:12: warning: enumeration value 'e_FILAMENT_ACTION_mmuCut' not handled in switch [-Wswitch]
sketch/ultralcd.cpp:2562:12: warning: enumeration value 'e_FILAMENT_ACTION_none' not handled in switch [-Wswitch]
switch(eFilamentAction)
^
sketch/ultralcd.cpp:2562:12: warning: enumeration value 'e_FILAMENT_ACTION_mmuCut' not handled in switch [-Wswitch]
2019-03-01 18:07:19 +01:00
Marek Bel
824d11e4b0
Remove "Press the knob to eject filament" message, as it is never shown.
2019-03-01 17:43:28 +01:00
Marek Bel
57cf7ee171
Fix compiler warning: 'lcd_selftest_fsensor' defined but not used
2019-03-01 17:21:13 +01:00
Marek Bel
4c2d4fcf77
Fix compiler warning ultralcd.cpp:4038:10: warning: unused variable 'chars
2019-03-01 17:18:05 +01:00
Marek Bel
a964f996fa
Fix compiler warning: variable 'kill_message' set but not used
...
kill_message is unused since:
Author: MRprusa3d <martin.remis@prusa3d.cz>
Date: 4 months ago (11/2/2018 11:03:14 PM)
Commit hash: 73794b56cf
MeshBed Leveling Fail
Z-leveling after MeshBed leveling failing
2019-03-01 17:08:36 +01:00
Marek Bel
8e51b37d91
Suppress warning: unused parameter.
2019-03-01 16:57:20 +01:00
Marek Bel
22500970ba
Remove commented out code, fix formatting.
2019-03-01 16:18:16 +01:00
PavelSindler
85c208f9f4
Merge branch 'MK3' into bad_load_cut
2019-03-01 14:55:55 +01:00
PavelSindler
22c0d6e230
Merge pull request #1577 from mkbel/add_cut
...
Add MMU cut filament
2019-03-01 14:53:12 +01:00
PavelSindler
e14e4be94e
Merge pull request #1575 from mkbel/add_ramming_eject
...
Add filament ramming to eject filament.
2019-03-01 14:21:23 +01:00
PavelSindler
0db721b244
Merge pull request #1559 from mkbel/detect_bad_load
...
Move extruder forth and back after filament detected by sensor to det…
2019-03-01 14:21:04 +01:00
PavelSindler
3cbcbba738
Merge pull request #1510 from mkbel/fix_menu_stack_third_time
...
Fix menu stack overrun.
2019-03-01 14:20:22 +01:00
PavelSindler
250a448d05
Merge pull request #1549 from mionut/7MBL
...
7x7 mesh bed leveling with power failure save + pinda temperature filter
2019-03-01 14:19:52 +01:00
PavelSindler
488497df2c
version change
2019-03-01 13:56:03 +01:00
PavelSindler
ca88010018
Revert "version change"
...
This reverts commit f14733f2dd .
2019-03-01 13:54:25 +01:00
PavelSindler
f14733f2dd
version change
2019-03-01 13:53:18 +01:00
PavelSindler
e27fdafcec
menu switch - initial
2019-02-28 19:42:09 +01:00
PavelSindler
482f8ef01a
Merge remote-tracking branch 'mionut/7MBL' into 7x7
2019-02-28 15:54:49 +01:00
Marek Bel
2a005caf42
Add cutter enable to tune menu.
2019-02-27 17:47:51 +01:00
Marek Bel
02a692c5d9
Store cutter enable state in EEPROM.
2019-02-27 17:34:03 +01:00
PavelSindler
ff6eb0b1af
Merge pull request #1568 from MRprusa3d/PFW-795
...
preHeat @ filament management
2019-02-27 13:15:39 +01:00
Marek Bel
4a4eb9962c
Cut filament when cutter is enabled and MMU load fails.
2019-02-27 10:42:26 +01:00
MRprusa3d
2f1e968563
"lcd_update_enable()" replacement
2019-02-26 23:17:52 +01:00
Marek Bel
49b1d1cb93
Move prototype to header file.
2019-02-26 18:50:15 +01:00
Marek Bel
a67645fda6
Merge branch 'add_cut' into bad_load_cut
2019-02-26 18:35:55 +01:00
Marek Bel
815231bc26
Add MMU cut filament menu.
2019-02-26 17:58:00 +01:00
MRprusa3d
ff35119ef3
preHeat @ filament management
...
another funcionality III / autoLoad
2019-02-26 17:33:37 +01:00
Marek Bel
5a5a482a59
Rename preprocessor macro K1 to PID_K1 to avoid future conflict with MMU command.
2019-02-26 13:59:44 +01:00
Marek Bel
6c9dd4f272
Add filament ramming to eject filament.
2019-02-26 13:41:28 +01:00
Marek Bel
7a1b47c340
Convert functions mmu_eject_fil_0 to mmu_eject_fil_4 to template function.
2019-02-26 11:11:05 +01:00
Marek Bel
34e2495487
Convert mmu_load_to_nozzle_0 to mmu_load_to_nozzle_4 to template.
2019-02-26 10:32:10 +01:00
Marek Bel
d5c5ed55eb
Change formatting.
2019-02-25 11:12:39 +01:00
Marek Bel
8f5fbe569c
Merge branch 'MK3' into detect_bad_load
2019-02-25 10:41:26 +01:00
PavelSindler
8e3d52ee6d
fix compilation error for MK2.5, make code more readable
2019-02-22 17:15:40 +01:00
PavelSindler
26cab2911f
mmu stealth mode
2019-02-22 16:30:54 +01:00
Laurentiu
51827c578f
MESH_MEAS_NUM_X_POINTS constant correction to MESH_MEAS_NUM_Y_POINTS
2019-02-22 15:05:06 +02:00
Laurentiu
62875f2e95
MESH_MEAS_NUM_X_POINTS constant correction to MESH_MEAS_NUM_Y_POINTS
2019-02-22 14:35:48 +02:00
MRprusa3d
c0a8d87e9e
Merge remote-tracking branch 'my_remote/PFW-795' into PFW-795
2019-02-22 03:16:23 +01:00
MRprusa3d
be0ed46335
preHeat @ filament management
...
another funcionality III
2019-02-22 03:09:50 +01:00
PavelSindler
730e370e78
Merge pull request #1565 from PavelSindler/MK3_for_merging
...
version change
2019-02-21 19:17:03 +01:00
PavelSindler
da28773480
version change
2019-02-21 19:16:24 +01:00
MRprusa3d
e422cc1c26
Merge branch 'MK3' into PFW-795
2019-02-21 15:43:56 +01:00
MRprusa3d
ed93f1b7f0
preHeat @ filament management
...
another funcionality IIb
2019-02-21 15:27:22 +01:00
PavelSindler
16bb6c80c7
Merge pull request #1562 from PavelSindler/mmu_stop_print_fix
...
comments
2019-02-21 14:29:04 +01:00
PavelSindler
6ad5c07e6d
comments
2019-02-21 14:28:05 +01:00
MRprusa3d
323071f50a
preHeat @ filament management
...
another funcionality II
2019-02-21 13:20:29 +01:00
MRprusa3d
a54c68b874
preHeat @ filament management
...
another funcionality II
2019-02-21 04:45:44 +01:00
Marek Bel
8b858286ac
Document.
2019-02-21 02:30:01 +01:00
Marek Bel
326c8492b5
Move extruder forth and back after filament detected by sensor to detect bad load.
2019-02-21 01:19:26 +01:00
PavelSindler
1e729048dc
cmdqueue_reset fix
2019-02-21 00:14:49 +01:00
MRprusa3d
da0867cfc5
preHeat @ filament management
...
another funcionality
2019-02-20 03:01:33 +01:00
Laurentiu
afc86a1363
missing ;
2019-02-18 05:50:29 +02:00
PavelSindler
11d19879fc
Merge pull request #1533 from MRprusa3d/PFW-210
...
preHeat @ filament load / unload / autoLoad / MMU
2019-02-15 17:45:38 +01:00
PavelSindler
9d76b6912c
merge new changes from upstream
2019-02-15 17:05:39 +01:00
PavelSindler
2b6668b853
merge MK3S branch into MK3
2019-02-15 16:42:40 +01:00
PavelSindler
fec64a9d5e
Merge pull request #1525 from mkbel/improve_mmu_load_failed_2
...
Improve mmu load failed 2
2019-02-15 15:52:35 +01:00
PavelSindler
69ff37729e
whitespace
2019-02-15 14:19:30 +01:00
PavelSindler
0f791ce47f
mmu needs attention: idler error fix
2019-02-15 14:17:47 +01:00
MRprusa3d
0c1f9b5100
preHeat @ filament management
...
target temperature keeping
2019-02-15 02:25:44 +01:00
Laurentiu
4835b9b220
7x7 points mesh bed leveling
2019-02-14 10:57:58 +02:00
MRprusa3d
80c3420a12
Merge branch 'MK3' into PFW-210
2019-02-14 00:05:50 +01:00
MRprusa3d
ef1f82627e
preHeat @ filament load / unload / autoLoad / MMU
...
MMU options added
2019-02-13 23:53:00 +01:00
Marek Bel
a5437cb15b
Resend MMU T commands only.
...
This solves problem with unload repeated if unload takes too long, second ok reply then triggers Wait end and resumes print.
2019-02-13 22:29:29 +01:00
Marek Bel
a4032e437e
Add MMU wait command after MMU load failed. Resume print when MMU wait command returns OK.
2019-02-13 21:28:21 +01:00
Marek Bel
daaec0ef04
Convert MmuCmd to enum class.
2019-02-13 17:12:35 +01:00
Marek Bel
8e23e7f322
Save some flash by using smaller type for filament.
2019-02-13 16:37:54 +01:00
Marek Bel
9e873ac0f7
Use enum for mmu_cmd instead of plain integer type.
2019-02-13 01:51:39 +01:00
Marek Bel
bb7eeef1f4
Define debug printf and puts functions to make code more readable.
2019-02-12 23:24:23 +01:00
Marek Bel
e1216934ef
Save flash by defining underlying type and omitting number value.
2019-02-12 21:53:11 +01:00
Marek Bel
3379fb4866
Convert mmu_state to enum.
2019-02-12 21:43:26 +01:00
PavelSindler
4c76393231
version change
2019-02-12 13:44:50 +01:00
PavelSindler
62500f0b55
version changed
2019-02-12 10:39:09 +01:00
Marek Bel
6c8d9c6fb4
Retry filament load on MMU load failure once.
2019-02-11 23:43:42 +01:00
Marek Bel
d33b24c281
Unload filament after MMU load failed so MMU unit can be controlled by its buttons.
2019-02-11 23:24:55 +01:00
PavelSindler
b85661309f
configuration change
2019-02-11 16:38:36 +01:00
PavelSindler
ccc542d74a
MK2.5 IR_SENSOR_PIN modified
2019-02-11 14:32:21 +01:00
PavelSindler
cd692f6be6
version change
2019-02-07 19:43:08 +01:00
PavelSindler
065d56b2c6
version change
2019-02-06 23:58:30 +01:00
PavelSindler
38b0e5439b
version change
2019-02-06 23:52:24 +01:00
MRprusa3d
b17a961241
MK2.5S
...
pin definition for filament sensor connection
2019-02-06 23:31:48 +01:00
PavelSindler
e028db7bf9
version change
2019-02-06 23:30:01 +01:00
PavelSindler
ff52499bdc
extr fan RPM measuring fix
2019-02-06 23:05:13 +01:00
PavelSindler
e432e258dc
extr fan RPM measuring fix
2019-02-06 22:56:10 +01:00
PavelSindler
22217a42f7
message change
2019-02-06 21:37:39 +01:00
PavelSindler
a85d8e7f97
message change
2019-02-06 21:36:21 +01:00
PavelSindler
d19c92bca8
welcome message changed
2019-02-06 19:41:17 +01:00
PavelSindler
de9c87c592
welcome message changed
2019-02-06 19:38:52 +01:00
Marek Bel
c704a4b7ab
Fix menu stack overrun.
2019-02-06 18:25:45 +01:00
PavelSindler
726d5aa3c3
typo fixed
2019-02-06 16:29:10 +01:00
PavelSindler
63c8a36185
typo fixed
2019-02-06 16:27:44 +01:00
PavelSindler
a220c97f94
Revert "variant files"
...
This reverts commit 850d3316b6 .
2019-02-06 16:19:30 +01:00