Prusa-Firmware/Firmware
Yuri D'Elia 186ce0f4b3 Handle acceleration settings in UVLO/power panic
Acceleration settings need to be saved in UVLO, since these are often
changed/set during a print. This is especially important for travel and
retract acceleration, which is usually set once per-print.

Saving and restoring is not 100% correct.

We save the current front-end value, which might ahead of the backend
when UVLO is triggered. Print acceleration, likely the most significant,
should be saved in the block buffer to be accurate.

Acceleration needs to be restored after the UVLO Z repositioning is
performed, using an M204 command. This is correct, however we don't save
the _temporary_ max acceleration limits set via M201, which could be
higher than the saved limits (via M500). This could result in lower
clamped values compared to the original print.

Maximum acceleration/jerk/feedrate limits should _all_ be saved in UVLO
in the future.
2021-02-03 11:28:51 +01:00
..
variants Add DEFAULT_TRAVEL_ACCELERATION in all variants 2021-02-03 11:20:28 +01:00
AutoDeplete.cpp
AutoDeplete.h
BlinkM.cpp
BlinkM.h
Configuration.cpp
Configuration.h Merge pull request #2875 from wavexx/raise_while_preheating 2021-01-11 07:45:54 +01:00
ConfigurationStore.cpp Report travel acceleration in M503 2021-02-03 11:20:28 +01:00
ConfigurationStore.h Implement separate travel acceleration (M204 T) 2021-02-03 11:20:28 +01:00
Configuration_adv.h Remove defines 2021-01-22 12:26:29 +01:00
Dcodes.cpp Change printf_P without format arguments and NL to puts_P only 2021-01-22 18:56:05 +02:00
Dcodes.h Bugfix for last PR 2020-04-07 11:22:48 +02:00
Firmware.ino
Marlin.h Fix compile error 2021-02-02 19:14:05 +02:00
MarlinSerial.cpp Merge pull request #2982 from DRracer/codesize 2021-01-26 12:04:39 +01:00
MarlinSerial.h More than 7.5KB saved by slight refactoring of printing to serial line 2019-07-12 10:10:56 +02:00
Marlin_main.cpp Handle acceleration settings in UVLO/power panic 2021-02-03 11:28:51 +01:00
Sd2Card.cpp Update reference URL 2020-03-15 19:04:02 +09:00
Sd2Card.h 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
Sd2PinMap.h Move SDA/SCL pins into pins.h for fastio compatibility 2021-01-29 17:48:59 +01:00
SdBaseFile.cpp Support for more special characters allowed in file names (^ + = [ ] ; 2019-08-27 13:47:58 +02:00
SdBaseFile.h
SdFatConfig.h
SdFatStructs.h
SdFatUtil.cpp
SdFatUtil.h
SdFile.cpp
SdFile.h
SdInfo.h
SdVolume.cpp
SdVolume.h
Servo.cpp
Servo.h
Timer.cpp
Timer.h Code refactoring 2021-01-20 11:46:25 +01:00
TimerRemaining.h
adc.c Change printf_P without format arguments and NL to puts_P only 2021-01-22 18:56:05 +02:00
adc.h
backlight.cpp Add newline at the end of file 2020-09-15 14:56:41 +02:00
backlight.h General fixes and improvements to code 2019-10-31 19:07:20 +02:00
boards.h
bootapp.c Reboot after factory reset 2020-08-12 12:46:35 +03:00
bootapp.h
cardreader.cpp Change M27 argument from L to P as that makes more sense (path vs LFN)) 2021-02-01 14:54:37 +02:00
cardreader.h Change MAX_DIR_DEPTH from 10 to 6 2021-02-02 19:08:19 +02:00
cmdqueue.cpp Fix warning 2020-11-09 21:49:56 +02:00
cmdqueue.h Marlin_main.cpp hacks 2021-01-22 17:15:36 +01:00
config.h Still use SWI2C on RAMBo10a boards 2020-09-27 14:29:07 +02:00
conv2str.cpp
conv2str.h
doxyfile Updated doxygen docs to work better with confluence. 2019-07-19 13:51:55 +02:00
eeprom.cpp Set default SuperPINDA toggle on MK2.5/S to NO 2020-12-23 20:59:33 +01:00
eeprom.h Handle acceleration settings in UVLO/power panic 2021-02-03 11:28:51 +01:00
fastio.h Remove the extra copy of CRITICAL_SECTION from fastio 2021-01-29 18:30:16 +01:00
first_lay_cal.cpp Gracefully dump the queue + fixes to fancheck 2020-11-09 21:49:56 +02:00
first_lay_cal.h Rename lay1cal_preheat() to lay1cal_wait_preheat(). 2019-09-12 00:19:20 +02:00
fsensor.cpp Silence bUpdateEEPROM unused warning in MK3 variant 2021-02-01 07:09:44 +01:00
fsensor.h MK3s IR sensor improvement (#2698) 2020-06-03 16:14:56 +02:00
heatbed_pwm.cpp Remove io_atmega2560.h and some more macros 2020-09-11 17:43:38 +03:00
la10compat.cpp Re-adjust LA10->15 conversion 2020-09-07 21:44:34 +02:00
la10compat.h Adjust E-jerk in LA10 compatibility mode 2020-02-03 15:42:27 +01:00
language.c Macros initial 2020-09-11 16:12:49 +03:00
language.h Macros initial 2020-09-11 16:12:49 +03:00
lcd.cpp Add lcd_putc_at (code down >150B), refactor lcd_selftest_screen_step 2021-01-25 14:58:57 +01:00
lcd.h Add lcd_putc_at (code down >150B), refactor lcd_selftest_screen_step 2021-01-25 14:58:57 +01:00
le.sh
macros.h More macros 2020-09-11 18:48:44 +03:00
menu.cpp Save ~100B on menu implementation 2021-01-26 09:29:17 +01:00
menu.h Save ~100B on menu implementation 2021-01-26 09:29:17 +01:00
mesh_bed_calibration.cpp Remove degree char 2021-01-12 00:28:46 +01:00
mesh_bed_calibration.h
mesh_bed_leveling.cpp
mesh_bed_leveling.h
messages.c 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
messages.h 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
mmu.cpp Refactor lcd_set_cursor + lcd_puts_P -> lcd_puts_at_P 2021-01-22 18:34:47 +01:00
mmu.h Show FINDA state as N/A if last received response is older than 1s. 2019-10-31 17:45:22 +01:00
motion_control.cpp
motion_control.h
optiboot_w25x20cl.cpp Handle second serial port correctly 2020-05-27 17:40:14 +03:00
optiboot_w25x20cl.h Fix missing start on MK3/S 2020-05-27 09:44:28 +03:00
pat9125.c Fix probing in IR_SENSOR 2020-09-28 21:02:06 +02:00
pat9125.h Isolate more pat9125 code 2020-08-20 15:34:46 +02:00
pins.h Move SDA/SCL pins into pins.h for fastio compatibility 2021-01-29 17:48:59 +01:00
pins_Einsy_1_0.h Merge remote-tracking branch 'upstream/MK3' into MK3_PAT9125_I2C 2021-01-29 18:28:55 +01:00
pins_Rambo_1_0.h
pins_Rambo_1_3.h Still use SWI2C on RAMBo10a boards 2020-09-27 14:29:07 +02:00
planner.cpp Implement separate travel acceleration (M204 T) 2021-02-03 11:20:28 +01:00
planner.h Also convert acceleration_rate to uint32_t 2020-08-03 19:01:38 +02:00
printers.h
qr_solve.cpp
qr_solve.h
rbuf.c
rbuf.h
sm4.c Merge pull request #2789 from wavexx/MK3_TMC2130_DEDGE 2021-01-29 11:13:09 +01:00
sm4.h Fix sm4.h line ending 2021-01-22 18:57:24 +02:00
sound.cpp General fixes and improvements to code 2019-10-31 19:07:20 +02:00
sound.h Toggle Sound 2019-08-31 16:56:14 +03:00
speed_lookuptable.cpp
speed_lookuptable.h Add reference C implementations for MultiU16X8toH16/MultiU24X24toH16 2020-08-03 19:03:13 +02:00
spi.c
spi.h
static_assert.h
stepper.cpp Merge pull request #2789 from wavexx/MK3_TMC2130_DEDGE 2021-01-29 11:13:09 +01:00
stepper.h Move reset LA state from G80 to M84 2020-04-29 22:51:23 +02:00
stk500.h
swi2c.c Merge remote-tracking branch 'upstream/MK3' into MK3_PAT9125_I2C 2021-01-29 18:28:55 +01:00
swi2c.h
swspi.cpp
swspi.h
system_timer.h ALTFAN implementation (#2692) 2020-06-01 17:58:15 +02:00
temperature.cpp Merge branch 'MK3' into PFW-1171-EEPROM_SN 2021-01-31 17:19:00 +02:00
temperature.h ALTFAN override 2020-07-20 19:35:25 +03:00
thermistortables.h Implement MIN/MAX AMBIENT safety checks 2020-08-01 17:38:10 +02:00
timer02.c split timer0 and timer2 initialization. Move timer2 init early 2021-01-31 17:18:32 +02:00
timer02.h split timer0 and timer2 initialization. Move timer2 init early 2021-01-31 17:18:32 +02:00
tmc2130.cpp Merge pull request #2789 from wavexx/MK3_TMC2130_DEDGE 2021-01-29 11:13:09 +01:00
tmc2130.h Reinstate the nop instruction as delay in non-DEDGE 2021-01-26 19:43:29 +01:00
tone04.c Merge remote-tracking branch 'upstream/MK3' into MK3_PAT9125_I2C 2021-01-29 18:28:55 +01:00
tone04.h ALTFAN implementation (#2692) 2020-06-01 17:58:15 +02:00
twi.c Switch twi.c to fastio 2021-01-29 17:51:38 +01:00
twi.h Be more compliant in the I2C protocol 2020-09-28 20:21:07 +02:00
uart2.c Change printf_P without format arguments and NL to puts_P only 2021-01-22 18:56:05 +02:00
uart2.h
ultralcd.cpp M552 - Printer IP address 2021-02-02 13:21:16 +02:00
ultralcd.h Merge pull request #2977 from DRracer/farm-patch1 2021-01-25 11:15:44 +01:00
uni_avr_rpi.h
util.cpp M552 - Printer IP address 2021-02-02 13:21:16 +02:00
util.h M552 - Printer IP address 2021-02-02 13:21:16 +02:00
vector_3.cpp
vector_3.h
w25x20cl.c Remove io_atmega2560.h and some more macros 2020-09-11 17:43:38 +03:00
w25x20cl.h
xyzcal.cpp Remove unused vars in xyzcal.cpp 2021-01-22 17:50:08 +01:00
xyzcal.h New XYZ calibration algorithm 2020-12-17 18:19:36 +01:00