@@ -351,44 +351,44 @@ void menu_move() {
351
351
}
352
352
#endif
353
353
354
- void ftm_menu_set_cmpn (const AxisEnum axis, const ftMotionShaper_t s) {
354
+ void ftm_menu_set_shaper (const AxisEnum axis, const ftMotionShaper_t s) {
355
355
ftMotion.cfg .shaper [axis] = s;
356
356
ftMotion.update_shaping_params ();
357
357
ui.go_back ();
358
358
}
359
359
360
- inline void menu_ftm_cmpn_x () {
360
+ inline void menu_ftm_shaper_x () {
361
361
const ftMotionShaper_t shaper = ftMotion.cfg .shaper .x ;
362
362
START_MENU ();
363
363
BACK_ITEM (MSG_FIXED_TIME_MOTION);
364
364
365
- if (shaper != ftMotionShaper_NONE) ACTION_ITEM (MSG_LCD_OFF, []{ ftm_menu_set_cmpn (X_AXIS, ftMotionShaper_NONE); });
366
- if (shaper != ftMotionShaper_ZV) ACTION_ITEM (MSG_FTM_ZV, []{ ftm_menu_set_cmpn (X_AXIS, ftMotionShaper_ZV); });
367
- if (shaper != ftMotionShaper_ZVD) ACTION_ITEM (MSG_FTM_ZVD, []{ ftm_menu_set_cmpn (X_AXIS, ftMotionShaper_ZVD); });
368
- if (shaper != ftMotionShaper_ZVDD) ACTION_ITEM (MSG_FTM_ZVDD, []{ ftm_menu_set_cmpn (X_AXIS, ftMotionShaper_ZVDD); });
369
- if (shaper != ftMotionShaper_ZVDDD) ACTION_ITEM (MSG_FTM_ZVDDD,[]{ ftm_menu_set_cmpn (X_AXIS, ftMotionShaper_ZVDDD); });
370
- if (shaper != ftMotionShaper_EI) ACTION_ITEM (MSG_FTM_EI, []{ ftm_menu_set_cmpn (X_AXIS, ftMotionShaper_EI); });
371
- if (shaper != ftMotionShaper_2HEI) ACTION_ITEM (MSG_FTM_2HEI, []{ ftm_menu_set_cmpn (X_AXIS, ftMotionShaper_2HEI); });
372
- if (shaper != ftMotionShaper_3HEI) ACTION_ITEM (MSG_FTM_3HEI, []{ ftm_menu_set_cmpn (X_AXIS, ftMotionShaper_3HEI); });
373
- if (shaper != ftMotionShaper_MZV) ACTION_ITEM (MSG_FTM_MZV, []{ ftm_menu_set_cmpn (X_AXIS, ftMotionShaper_MZV); });
365
+ if (shaper != ftMotionShaper_NONE) ACTION_ITEM (MSG_LCD_OFF, []{ ftm_menu_set_shaper (X_AXIS, ftMotionShaper_NONE); });
366
+ if (shaper != ftMotionShaper_ZV) ACTION_ITEM (MSG_FTM_ZV, []{ ftm_menu_set_shaper (X_AXIS, ftMotionShaper_ZV); });
367
+ if (shaper != ftMotionShaper_ZVD) ACTION_ITEM (MSG_FTM_ZVD, []{ ftm_menu_set_shaper (X_AXIS, ftMotionShaper_ZVD); });
368
+ if (shaper != ftMotionShaper_ZVDD) ACTION_ITEM (MSG_FTM_ZVDD, []{ ftm_menu_set_shaper (X_AXIS, ftMotionShaper_ZVDD); });
369
+ if (shaper != ftMotionShaper_ZVDDD) ACTION_ITEM (MSG_FTM_ZVDDD,[]{ ftm_menu_set_shaper (X_AXIS, ftMotionShaper_ZVDDD); });
370
+ if (shaper != ftMotionShaper_EI) ACTION_ITEM (MSG_FTM_EI, []{ ftm_menu_set_shaper (X_AXIS, ftMotionShaper_EI); });
371
+ if (shaper != ftMotionShaper_2HEI) ACTION_ITEM (MSG_FTM_2HEI, []{ ftm_menu_set_shaper (X_AXIS, ftMotionShaper_2HEI); });
372
+ if (shaper != ftMotionShaper_3HEI) ACTION_ITEM (MSG_FTM_3HEI, []{ ftm_menu_set_shaper (X_AXIS, ftMotionShaper_3HEI); });
373
+ if (shaper != ftMotionShaper_MZV) ACTION_ITEM (MSG_FTM_MZV, []{ ftm_menu_set_shaper (X_AXIS, ftMotionShaper_MZV); });
374
374
375
375
END_MENU ();
376
376
}
377
377
378
- inline void menu_ftm_cmpn_y () {
378
+ inline void menu_ftm_shaper_y () {
379
379
const ftMotionShaper_t shaper = ftMotion.cfg .shaper .y ;
380
380
START_MENU ();
381
381
BACK_ITEM (MSG_FIXED_TIME_MOTION);
382
382
383
- if (shaper != ftMotionShaper_NONE) ACTION_ITEM (MSG_LCD_OFF, []{ ftm_menu_set_cmpn (Y_AXIS, ftMotionShaper_NONE); });
384
- if (shaper != ftMotionShaper_ZV) ACTION_ITEM (MSG_FTM_ZV, []{ ftm_menu_set_cmpn (Y_AXIS, ftMotionShaper_ZV); });
385
- if (shaper != ftMotionShaper_ZVD) ACTION_ITEM (MSG_FTM_ZVD, []{ ftm_menu_set_cmpn (Y_AXIS, ftMotionShaper_ZVD); });
386
- if (shaper != ftMotionShaper_ZVDD) ACTION_ITEM (MSG_FTM_ZVDD, []{ ftm_menu_set_cmpn (Y_AXIS, ftMotionShaper_ZVDD); });
387
- if (shaper != ftMotionShaper_ZVDDD) ACTION_ITEM (MSG_FTM_ZVDDD,[]{ ftm_menu_set_cmpn (Y_AXIS, ftMotionShaper_ZVDDD); });
388
- if (shaper != ftMotionShaper_EI) ACTION_ITEM (MSG_FTM_EI, []{ ftm_menu_set_cmpn (Y_AXIS, ftMotionShaper_EI); });
389
- if (shaper != ftMotionShaper_2HEI) ACTION_ITEM (MSG_FTM_2HEI, []{ ftm_menu_set_cmpn (Y_AXIS, ftMotionShaper_2HEI); });
390
- if (shaper != ftMotionShaper_3HEI) ACTION_ITEM (MSG_FTM_3HEI, []{ ftm_menu_set_cmpn (Y_AXIS, ftMotionShaper_3HEI); });
391
- if (shaper != ftMotionShaper_MZV) ACTION_ITEM (MSG_FTM_MZV, []{ ftm_menu_set_cmpn (Y_AXIS, ftMotionShaper_MZV); });
383
+ if (shaper != ftMotionShaper_NONE) ACTION_ITEM (MSG_LCD_OFF, []{ ftm_menu_set_shaper (Y_AXIS, ftMotionShaper_NONE); });
384
+ if (shaper != ftMotionShaper_ZV) ACTION_ITEM (MSG_FTM_ZV, []{ ftm_menu_set_shaper (Y_AXIS, ftMotionShaper_ZV); });
385
+ if (shaper != ftMotionShaper_ZVD) ACTION_ITEM (MSG_FTM_ZVD, []{ ftm_menu_set_shaper (Y_AXIS, ftMotionShaper_ZVD); });
386
+ if (shaper != ftMotionShaper_ZVDD) ACTION_ITEM (MSG_FTM_ZVDD, []{ ftm_menu_set_shaper (Y_AXIS, ftMotionShaper_ZVDD); });
387
+ if (shaper != ftMotionShaper_ZVDDD) ACTION_ITEM (MSG_FTM_ZVDDD,[]{ ftm_menu_set_shaper (Y_AXIS, ftMotionShaper_ZVDDD); });
388
+ if (shaper != ftMotionShaper_EI) ACTION_ITEM (MSG_FTM_EI, []{ ftm_menu_set_shaper (Y_AXIS, ftMotionShaper_EI); });
389
+ if (shaper != ftMotionShaper_2HEI) ACTION_ITEM (MSG_FTM_2HEI, []{ ftm_menu_set_shaper (Y_AXIS, ftMotionShaper_2HEI); });
390
+ if (shaper != ftMotionShaper_3HEI) ACTION_ITEM (MSG_FTM_3HEI, []{ ftm_menu_set_shaper (Y_AXIS, ftMotionShaper_3HEI); });
391
+ if (shaper != ftMotionShaper_MZV) ACTION_ITEM (MSG_FTM_MZV, []{ ftm_menu_set_shaper (Y_AXIS, ftMotionShaper_MZV); });
392
392
393
393
END_MENU ();
394
394
}
@@ -438,7 +438,7 @@ void menu_move() {
438
438
439
439
if (c.active ) {
440
440
#if HAS_X_AXIS
441
- SUBMENU_N (X_AXIS, MSG_FTM_CMPN_MODE, menu_ftm_cmpn_x );
441
+ SUBMENU_N (X_AXIS, MSG_FTM_CMPN_MODE, menu_ftm_shaper_x );
442
442
MENU_ITEM_ADDON_START_RJ (5 ); lcd_put_u8str (shaper_name[X_AXIS]); MENU_ITEM_ADDON_END ();
443
443
444
444
if (AXIS_HAS_SHAPER (X)) {
@@ -449,7 +449,7 @@ void menu_move() {
449
449
}
450
450
#endif
451
451
#if HAS_Y_AXIS
452
- SUBMENU_N (Y_AXIS, MSG_FTM_CMPN_MODE, menu_ftm_cmpn_y );
452
+ SUBMENU_N (Y_AXIS, MSG_FTM_CMPN_MODE, menu_ftm_shaper_y );
453
453
MENU_ITEM_ADDON_START_RJ (5 ); lcd_put_u8str (shaper_name[Y_AXIS]); MENU_ITEM_ADDON_END ();
454
454
455
455
if (AXIS_HAS_SHAPER (Y)) {
@@ -495,11 +495,11 @@ void menu_move() {
495
495
START_MENU ();
496
496
497
497
#if HAS_X_AXIS
498
- SUBMENU_N (X_AXIS, MSG_FTM_CMPN_MODE, menu_ftm_cmpn_x );
498
+ SUBMENU_N (X_AXIS, MSG_FTM_CMPN_MODE, menu_ftm_shaper_x );
499
499
MENU_ITEM_ADDON_START_RJ (5 ); lcd_put_u8str (shaper_name[X_AXIS]); MENU_ITEM_ADDON_END ();
500
500
#endif
501
501
#if HAS_Y_AXIS
502
- SUBMENU_N (Y_AXIS, MSG_FTM_CMPN_MODE, menu_ftm_cmpn_y );
502
+ SUBMENU_N (Y_AXIS, MSG_FTM_CMPN_MODE, menu_ftm_shaper_y );
503
503
MENU_ITEM_ADDON_START_RJ (5 ); lcd_put_u8str (shaper_name[Y_AXIS]); MENU_ITEM_ADDON_END ();
504
504
#endif
505
505
0 commit comments