Duet3D / DuetWebControl

A completely new web interface for the Duet electronics
GNU General Public License v3.0
410 stars 229 forks source link

Inputshaping accel plugin #372

Closed mfs12 closed 3 years ago

mfs12 commented 3 years ago

Closes #374.

chrishamm commented 3 years ago

Please restore the original accelerometer i18n keys and add your own inputShaping keys (copied from accelerometer) instead. Alternatively move the i18n stuff to your own i18n JS files and use the new registerPluginLocalization call to register it (just be aware that I haven't tested this function yet).

chrishamm commented 3 years ago

OTOH it probably doesn't matter provided the accelerometer plugin will be replaced with it anyway.

First observations:

My first attempt didn't produce a usable result so I cannot say if there are any more issues.

chrishamm commented 3 years ago

Further notes:

I'll send you a patch to wrap the different panels into tabs shortly.

mfs12 commented 3 years ago

I didn't say i addressed all of the commented points. Sorry, if there was an misunderstanding.

mfs12 commented 3 years ago

It is still possible to start profile recording if the selected axis is not homed

I can't start it. It reports an error that axis are not homed. Or what do you mean exactly? The button should be greyed out? Show an error when pressed?

mfs12 commented 3 years ago
mfs12 commented 3 years ago

german translation will not be part of this PR. It will be a separate PR as soon as the alternative internationalization is tested an available.

chrishamm commented 3 years ago

I've tested your PR once again and found more issues:

Have you managed to get your accelerometer working with your printer yet? If not, we really need to find a solution next week.

mfs12 commented 3 years ago

Thanks for the feedback.

It would be very helpful if you comment directly on the code. This way i can see which code your comment relates to. It saves time and the discussion if needed can be done next to the code.

No, unfortunately it isn't working yet. I learned a lot about better printing. Mine is only working with very short cables. Either I am totally stupid or it's some hardware problem. Let's chat next week about it.

mfs12 commented 3 years ago

@dc42 commented: The logic that decides on the default movement start and end positions seems odd to me. My delta has X axis limits -150 to 150 and it defaults to 60 to 90. My tool changer has limits -185 to 178.5 and it default to 71.4 to 107.1. I was expecting the move to be centred on or to end at the centre of the axis range.

You are sampling during the move instead of after it. That is why you are getting low frequency components. The M956 command should be at the end, after the M400.

So best I think to start the move 5mm or 10mm above the axis minimum, and end it e.g. 2/3 of the way between the axis minimum and axis maximum ...taking account of the change to axis minimum/maximum caused by the tool offset, which I think you do already

mfs12 commented 3 years ago
mfs12 commented 3 years ago

Closing this PR because the actual work is done at moment at https://github.com/mfs12/DuetWebControl.

If there will be a plan to merge the plugin back a new PR will be setup.