-
-
Notifications
You must be signed in to change notification settings - Fork 19.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FT MOTION: add individual axis shaping and new buffer management #26848
FT MOTION: add individual axis shaping and new buffer management #26848
Conversation
Thanks for creating this, I intended to issue the pull request myself after more testing. I'm fairly confident in the changes, but please tag me if you encounter any issues. |
This is not perhaps the best solution, but I was thinking of progressively incorporate your code in current Marlin bugfix after testing and debugging the branch in your repository. |
@ulendoalex , in |
This throws a warning about a possible uninitialized variable in menu_motion.cpp line 461, 466 and 470. I am pretty sure it is safe to ignore, but maybe you want to avoid? Adding a "default:" to the switch cases fixes this warning. |
Strange, there is no switch .. case here. I do a compilation test for the simulator with the menu enabled and there is no warning. |
in motion_menu.cpp switches at line 414, 420 and 434. |
Still no issue. |
VS Code is showing it in the console during a real build. |
You're right, corrected |
Awesome! I'm excited to see this addition (once I figure my machine's issue out). Great work! |
@narno2202 FYI related to this PR, I did find some bugs and have updated our repository accordingly. You may wish to take a look at those changes to make sure you take them (or already fixed them). |
Is it a bug or feature that motors/motions have a high-pitched whine with |
To answer my own question after re-reading 230119_marlin_fixed_time_ctrl.pdf:
I'll see if I can write up a note for M493 - Fixed-Time Motion since I know I won't be the only one wondering if something was misconfigured. I don't know about other drivers, but at least for UART & SPI-connected TMCs with various motors (stock Creality, LDO, Prusa - OEM'd by LDO, E3D, other generics), they sound like the current is cranked way too high & slightly crunchy. |
@thisiskeithb , on my config, this noise was only present in the early development phase of FT_MOTION, now the sound is quite different but without cracking or anything else. Have you tried to increase the stepper command buffer size? Can you post an audio file? |
I tried Remove obsolete config parameters commit Z homing still fails. There is indeed some new sound during movements. Here is recording Strong 400 and 200 Hz signal is present with FTM enabled (w/o input shaping) Oscillograms: Frequency is about 15-20% higher, voltage seems to be the same. Motion oscillograms (video): no-ftm.mp4FTM ftm.mp4 |
@vovodroid , could you comment line 3206 in planner.cpp |
Unfortunately nothing changed, even when built with old IS disabled. Would you like me to try with some logs added? |
I also tried with this line and latest bugfix merged (with #27179), the same failure. |
Thanks @vovodroid . Have you tried to enable ENDSTOP_NOISE_THRESHOLD? I'm waiting for a BIqu Microprobe to do more testing. It should be of interest to have feedback with other probes (my BLTouch and 2 other similar probes work fine). |
I can't as
What could be different here is that BIqu Microprobe is connected to Z-stop connector, not Z-probe. |
The BLTouch probe is also connected to the Z min endstop on my moterboard |
Finally iI get a Biqu Microprobe V2. I can't get it working for Z homing in current bugfix without |
What are symptoms? Here is relevant parameters:
I leave XY endstop in floating state, as I have sensorless homing. And |
I need to define #define ENDSTOPPULLUP_XMIN, #define ENDSTOPPULLUP_YMIN and MAX for X and Y axis as I use sensorless homing. I use the same configuration as you described. I have the same failure as in your previous posts. |
As it's reproducible I believe we can catch it with logs. |
Let's merge this to get motion stuff settled, then address endstop and whining in a new PR. |
Description
@ulendoalex update the Marlincollaborative repository with a new buffer system management and the possibility to set shaping per axis. This PR adds individual axis shaping function, adapt the FTMotion menu accordingly and the new buffer managemnt system. This PR is a mix between #26720 last working code (homing works for coreXY as reported in anotther discussion, BLTOUCH HS Mode...) and @ulendoalex code with some minor changes. This PR suspercedes #26720 which needs more work to be fully functional.
Requirements
Ideally, this PR should be merged before the other
FT_MOTION
PRs :Configurations
Just enable
FT_MOTION
inConfiguration_adv.h
Related Issues
None