0
0
Fork 0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2025-01-18 23:49:49 +00:00

📝 Update M493 (FT_MOTION) comments (#26620)

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
narno2202 2024-01-03 20:19:19 +01:00 committed by GitHub
parent 6d407767e7
commit 68b7802fc1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 38 additions and 33 deletions

View file

@ -38,14 +38,14 @@ void say_shaping() {
SERIAL_ECHOPGM(" with "); SERIAL_ECHOPGM(" with ");
switch (ftMotion.cfg.mode) { switch (ftMotion.cfg.mode) {
default: break; default: break;
case ftMotionMode_ZV: SERIAL_ECHOPGM("ZV"); break; case ftMotionMode_ZV: SERIAL_ECHOPGM("ZV"); break;
case ftMotionMode_ZVD: SERIAL_ECHOPGM("ZVD"); break; case ftMotionMode_ZVD: SERIAL_ECHOPGM("ZVD"); break;
case ftMotionMode_ZVDD: SERIAL_ECHOPGM("ZVDD"); break; case ftMotionMode_ZVDD: SERIAL_ECHOPGM("ZVDD"); break;
case ftMotionMode_ZVDDD: SERIAL_ECHOPGM("ZVDDD"); break; case ftMotionMode_ZVDDD: SERIAL_ECHOPGM("ZVDDD"); break;
case ftMotionMode_EI: SERIAL_ECHOPGM("EI"); break; case ftMotionMode_EI: SERIAL_ECHOPGM("EI"); break;
case ftMotionMode_2HEI: SERIAL_ECHOPGM("2 Hump EI"); break; case ftMotionMode_2HEI: SERIAL_ECHOPGM("2 Hump EI"); break;
case ftMotionMode_3HEI: SERIAL_ECHOPGM("3 Hump EI"); break; case ftMotionMode_3HEI: SERIAL_ECHOPGM("3 Hump EI"); break;
case ftMotionMode_MZV: SERIAL_ECHOPGM("MZV"); break; case ftMotionMode_MZV: SERIAL_ECHOPGM("MZV"); break;
//case ftMotionMode_DISCTF: SERIAL_ECHOPGM("discrete transfer functions"); break; //case ftMotionMode_DISCTF: SERIAL_ECHOPGM("discrete transfer functions"); break;
//case ftMotionMode_ULENDO_FBS: SERIAL_ECHOPGM("Ulendo FBS."); return; //case ftMotionMode_ULENDO_FBS: SERIAL_ECHOPGM("Ulendo FBS."); return;
} }
@ -129,14 +129,17 @@ void GcodeSuite::M493_report(const bool forReplay/*=true*/) {
* M493: Set Fixed-time Motion Control parameters * M493: Set Fixed-time Motion Control parameters
* *
* S<mode> Set the motion / shaping mode. Shaping requires an X axis, at the minimum. * S<mode> Set the motion / shaping mode. Shaping requires an X axis, at the minimum.
* 0: NORMAL *
* 1: FIXED-TIME * 0: Standard Motion
* 10: ZV * 1: Fixed-Time Motion
* 11: ZVD * 10: ZV : Zero Vibration
* 12: EI * 11: ZVD : Zero Vibration and Derivative
* 13: 2HEI * 12: ZVDD : Zero Vibration, Derivative, and Double Derivative
* 14: 3HEI * 13: ZVDDD : Zero Vibration, Derivative, Double Derivative, and Triple Derivative
* 15: MZV * 14: EI : Extra-Intensive
* 15: 2HEI : 2-Hump Extra-Intensive
* 16: 3HEI : 3-Hump Extra-Intensive
* 17: MZV : Mass-based Zero Vibration
* *
* P<bool> Enable (1) or Disable (0) Linear Advance pressure control * P<bool> Enable (1) or Disable (0) Linear Advance pressure control
* *
@ -147,11 +150,15 @@ void GcodeSuite::M493_report(const bool forReplay/*=true*/) {
* 1: Z-based (Requires a Z axis) * 1: Z-based (Requires a Z axis)
* 2: Mass-based (Requires X and E axes) * 2: Mass-based (Requires X and E axes)
* *
* A<Hz> Set static/base frequency for the X axis * A<Hz> Set static/base frequency for the X axis
* F<Hz> Set frequency scaling for the X axis * F<Hz> Set frequency scaling for the X axis
* I 0.0 Set damping ratio for the X axis
* Q 0.00 Set the vibration tolerance for the X axis
* *
* B<Hz> Set static/base frequency for the Y axis * B<Hz> Set static/base frequency for the Y axis
* H<Hz> Set frequency scaling for the Y axis * H<Hz> Set frequency scaling for the Y axis
* J 0.0 Set damping ratio for the Y axis
* R 0.00 Set the vibration tolerance for the Y axis
*/ */
void GcodeSuite::M493() { void GcodeSuite::M493() {
struct { bool update_n:1, update_a:1, reset_ft:1, report_h:1; } flag = { false }; struct { bool update_n:1, update_a:1, reset_ft:1, report_h:1; } flag = { false };

View file

@ -24,24 +24,22 @@
#include "../core/types.h" #include "../core/types.h"
typedef enum FXDTICtrlMode : uint8_t { typedef enum FXDTICtrlMode : uint8_t {
ftMotionMode_DISABLED = 0U, ftMotionMode_DISABLED = 0, // Standard Motion
ftMotionMode_ENABLED = 1U, ftMotionMode_ENABLED = 1, // Time-Based Motion
//ftMotionMode_ULENDO_FBS = 2U, ftMotionMode_ZV = 10, // Zero Vibration
ftMotionMode_ZV = 10U, ftMotionMode_ZVD = 11, // Zero Vibration and Derivative
ftMotionMode_ZVD = 11U, ftMotionMode_ZVDD = 12, // Zero Vibration, Derivative, and Double Derivative
ftMotionMode_ZVDD = 12U, ftMotionMode_ZVDDD = 13, // Zero Vibration, Derivative, Double Derivative, and Triple Derivative
ftMotionMode_ZVDDD = 13U, ftMotionMode_EI = 14, // Extra-Intensive
ftMotionMode_EI = 14U, ftMotionMode_2HEI = 15, // 2-Hump Extra-Intensive
ftMotionMode_2HEI = 15U, ftMotionMode_3HEI = 16, // 3-Hump Extra-Intensive
ftMotionMode_3HEI = 16U, ftMotionMode_MZV = 17 // Mass-based Zero Vibration
ftMotionMode_MZV = 17U,
//ftMotionMode_DISCTF = 20U
} ftMotionMode_t; } ftMotionMode_t;
enum dynFreqMode_t : uint8_t { enum dynFreqMode_t : uint8_t {
dynFreqMode_DISABLED = 0U, dynFreqMode_DISABLED = 0,
dynFreqMode_Z_BASED = 1U, dynFreqMode_Z_BASED = 1,
dynFreqMode_MASS_BASED = 2U dynFreqMode_MASS_BASED = 2
}; };
#define IS_EI_MODE(N) WITHIN(N, ftMotionMode_EI, ftMotionMode_3HEI) #define IS_EI_MODE(N) WITHIN(N, ftMotionMode_EI, ftMotionMode_3HEI)