Commit Graph

3461 Commits

Author SHA1 Message Date
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 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