Skip to content

Commit ba9352e

Browse files
⛙ Merge w/Marlin
2 parents 6333d94 + 0f76f17 commit ba9352e

File tree

103 files changed

+1279
-341
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+1279
-341
lines changed

Marlin/Configuration.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3497,6 +3497,7 @@
34973497
* NOTOSANS - Default font with anti-aliasing. Supports Latin Extended and non-Latin characters.
34983498
* UNIFONT - Lightweight font, no anti-aliasing. Supports Latin Extended and non-Latin characters.
34993499
* HELVETICA - Lightweight font, no anti-aliasing. Supports Basic Latin (0x0020-0x007F) and Latin-1 Supplement (0x0080-0x00FF) characters only.
3500+
* :['NOTOSANS', 'UNIFONT', 'HELVETICA']
35003501
*/
35013502
#define TFT_FONT NOTOSANS
35023503

@@ -3506,6 +3507,7 @@
35063507
* BLUE_MARLIN - Default theme with 'midnight blue' background
35073508
* BLACK_MARLIN - Theme with 'black' background
35083509
* ANET_BLACK - Theme used for Anet ET4/5
3510+
* :['BLUE_MARLIN', 'BLACK_MARLIN', 'ANET_BLACK']
35093511
*/
35103512
#define TFT_THEME BLACK_MARLIN
35113513

Marlin/Configuration_adv.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,6 +1156,7 @@
11561156
#if ENABLED(FT_MOTION)
11571157
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
11581158
//#define FT_MOTION_MENU // Provide a MarlinUI menu to set M493 and M494 parameters
1159+
//#define FTM_HOME_AND_PROBE // Use FT Motion for homing / probing. Disable if FT Motion breaks these functions.
11591160

11601161
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
11611162

@@ -1197,6 +1198,15 @@
11971198
// smoothing acceleration peaks, which may also smooth curved surfaces.
11981199
#endif
11991200

1201+
#define FTM_TRAJECTORY_TYPE TRAPEZOIDAL // Block acceleration profile (TRAPEZOIDAL, POLY5, POLY6)
1202+
// TRAPEZOIDAL: Continuous Velocity. Max acceleration is respected.
1203+
// POLY5: Like POLY6 with 1.5x but cpu cheaper.
1204+
// POLY6: Continuous Acceleration (aka S_CURVE).
1205+
// POLY trajectories not only reduce resonances without rounding corners, but also
1206+
// reduce extruder strain due to linear advance.
1207+
1208+
#define FTM_POLY6_ACCELERATION_OVERSHOOT 1.875f // Max acceleration overshoot factor for POLY6 (1.25 to 1.875)
1209+
12001210
/**
12011211
* Advanced configuration
12021212
*/

Marlin/Version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
* here we define this default string as the date where the latest release
4242
* version was tagged.
4343
*/
44-
//#define STRING_DISTRIBUTION_DATE "2025-10-01"
44+
//#define STRING_DISTRIBUTION_DATE "2025-10-04"
4545

4646
#define STRING_DISTRIBUTION_DATE __DATE__
4747
#define STRING_DISTRIBUTION_TIME __TIME__

Marlin/src/core/boards.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828

2929
#include "macros.h"
3030

31+
#define BOARD_ERROR -2
3132
#define BOARD_UNKNOWN -1
3233

3334
//

Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
#include "../hilbert_curve.h"
5353
#endif
5454

55-
#if FT_MOTION_DISABLE_FOR_PROBING
55+
#if ENABLED(FT_MOTION)
5656
#include "../../../module/ft_motion.h"
5757
#endif
5858

@@ -318,9 +318,8 @@ void unified_bed_leveling::G29() {
318318
const uint8_t p_val = parser.byteval('P');
319319
const bool may_move = p_val == 1 || p_val == 2 || p_val == 4 || parser.seen_test('J');
320320

321-
#if FT_MOTION_DISABLE_FOR_PROBING
322-
FTMotionDisableInScope FT_Disabler; // Disable Fixed-Time Motion for probing
323-
#endif
321+
// Potentially disable Fixed-Time Motion for probing
322+
TERN_(FT_MOTION, FTMotionDisableInScope FT_Disabler);
324323

325324
// Check for commands that require the printer to be homed
326325
if (may_move) {

Marlin/src/feature/mmu/mmu2-serial-protocol.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ When initialized, MMU sends
77
We follow with
88

99
- MMU <= 'S1\n'
10-
- MMU => 'ok*Firmware version*\n'
10+
- MMU => 'ok<_Firmware version_>\n'
1111
- MMU <= 'S2\n'
12-
- MMU => 'ok*Build number*\n'
12+
- MMU => 'ok<_Build number_>\n'
1313

1414
#if (12V_mode)
1515

@@ -19,25 +19,25 @@ We follow with
1919
#endif
2020

2121
- MMU <= 'P0\n'
22-
- MMU => '_FINDA status_\n'
22+
- MMU => '<_FINDA status_>\n'
2323

2424
Now we are sure MMU is available and ready. If there was a timeout or other communication problem somewhere, printer will be killed.
2525

26-
- _Firmware version_ is an integer value, but we don't care about it
27-
- _Build number_ is an integer value and has to be >=126, or =>132 if 12V mode is enabled
28-
- _FINDA status_ is 1 if the filament is loaded to the extruder, 0 otherwise
26+
- <_Firmware version_> is an integer value, but we don't care about it.
27+
- <_Build number_> is an integer value and has to be >=126, or =>132 if 12V mode is enabled.
28+
- <_FINDA status_> is 1 if the filament is loaded to the extruder, 0 otherwise.
2929

30-
_Build number_ is checked against the required value, if it does not match, printer is halted.
30+
<_Build number_> is checked against the required value, if it does not match, printer is halted.
3131

3232
# Toolchange
3333

34-
- MMU <= 'T*Filament index*\n'
34+
- MMU <= 'T<_Filament index_>\n'
3535

3636
MMU sends
3737

3838
- MMU => 'ok\n'
3939

40-
as soon as the filament is fed down to the extruder. We follow with
40+
as soon as the filament is fed down to the extruder. We follow with:
4141

4242
- MMU <= 'C0\n'
4343

@@ -52,27 +52,27 @@ be one or more extruder moves to feed the filament into the hotend.
5252
# FINDA status
5353

5454
- MMU <= 'P0\n'
55-
- MMU => '_FINDA status_\n'
55+
- MMU => '<_FINDA status_>\n'
5656

5757
_FINDA status_ is 1 if the is filament loaded to the extruder, 0 otherwise. This could be used as filament runout sensor if probed regularly.
5858

5959
# Load filament
6060

61-
- MMU <= 'L*Filament index*\n'
61+
- MMU <= 'L<_Filament index_>\n'
6262

63-
MMU will feed filament down to the extruder, when done
63+
MMU will feed filament down to the extruder, when done:
6464

6565
- MMU => 'ok\n'
6666

6767
# Unload filament
6868

6969
- MMU <= 'U0\n'
7070

71-
MMU will retract current filament from the extruder, when done
71+
MMU will retract current filament from the extruder, when done:
7272

7373
- MMU => 'ok\n'
7474

7575
# Eject filament
7676

77-
- MMU <= 'E*Filament index*\n'
77+
- MMU <= 'E<_Filament index_>\n'
7878
- MMU => 'ok\n'

Marlin/src/gcode/bedlevel/abl/G29.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
#define DEBUG_OUT ENABLED(DEBUG_LEVELING_FEATURE)
6161
#include "../../../core/debug_out.h"
6262

63-
#if DISABLED(PROBE_MANUALLY) && FT_MOTION_DISABLE_FOR_PROBING
63+
#if DISABLED(PROBE_MANUALLY) && ENABLED(FT_MOTION)
6464
#include "../../../module/ft_motion.h"
6565
#endif
6666

@@ -276,8 +276,9 @@ G29_TYPE GcodeSuite::G29() {
276276
// Set and report "probing" state to host
277277
TERN_(FULL_REPORT_TO_HOST_FEATURE, set_and_report_grblstate(M_PROBE, false));
278278

279-
#if DISABLED(PROBE_MANUALLY) && FT_MOTION_DISABLE_FOR_PROBING
280-
FTMotionDisableInScope FT_Disabler; // Disable Fixed-Time Motion for probing
279+
#if DISABLED(PROBE_MANUALLY) && ENABLED(FT_MOTION)
280+
// Potentially disable Fixed-Time Motion for probing
281+
FTMotionDisableInScope FT_Disabler;
281282
#endif
282283

283284
/**

Marlin/src/gcode/bedlevel/mbl/G29.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
#define DEBUG_OUT ENABLED(DEBUG_LEVELING_FEATURE)
4646
#include "../../../core/debug_out.h"
4747

48-
#if FT_MOTION_DISABLE_FOR_PROBING
48+
#if ENABLED(FT_MOTION)
4949
#include "../../module/ft_motion.h"
5050
#endif
5151

@@ -67,9 +67,8 @@ inline void echo_not_entered(const char c) { SERIAL_CHAR(c); SERIAL_ECHOLNPGM("
6767
*/
6868
void GcodeSuite::G29() {
6969

70-
#if FT_MOTION_DISABLE_FOR_PROBING
71-
FTMotionDisableInScope FT_Disabler; // Disable Fixed-Time Motion for probing
72-
#endif
70+
// Potentially disable Fixed-Time Motion for probing
71+
TERN_(FT_MOTION, FTMotionDisableInScope FT_Disabler);
7372

7473
DEBUG_SECTION(log_G29, "G29", true);
7574

Marlin/src/gcode/calibrate/G28.cpp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
#include "../../feature/bltouch.h"
5353
#endif
5454

55-
#if FT_MOTION_DISABLE_FOR_PROBING
55+
#if ENABLED(FT_MOTION)
5656
#include "../../module/ft_motion.h"
5757
#endif
5858

@@ -130,9 +130,8 @@
130130

131131
inline void home_z_safely() {
132132

133-
#if FT_MOTION_DISABLE_FOR_PROBING
134-
FTMotionDisableInScope FT_Disabler; // Disable Fixed-Time Motion for homing
135-
#endif
133+
// Potentially disable Fixed-Time Motion for homing
134+
TERN_(FT_MOTION, FTMotionDisableInScope FT_Disabler);
136135

137136
DEBUG_SECTION(log_G28, "home_z_safely", DEBUGGING(LEVELING));
138137

@@ -290,9 +289,8 @@ void GcodeSuite::G28() {
290289
motion_state_t saved_motion_state = begin_slow_homing();
291290
#endif
292291

293-
#if FT_MOTION_DISABLE_FOR_PROBING
294-
FTMotionDisableInScope FT_Disabler; // Disable Fixed-Time Motion for homing
295-
#endif
292+
// Potentially disable Fixed-Time Motion for homing
293+
TERN_(FT_MOTION, FTMotionDisableInScope FT_Disabler);
296294

297295
// Always home with tool 0 active
298296
#if HAS_MULTI_HOTEND

0 commit comments

Comments
 (0)