Another acceleration bug May 10, 2014 12:45PM |
Registered: 10 years ago Posts: 14,682 |
Re: Another acceleration bug May 10, 2014 02:08PM |
Registered: 10 years ago Posts: 256 |
Re: Another acceleration bug May 12, 2014 07:40AM |
Registered: 10 years ago Posts: 2,472 |
Re: Another acceleration bug May 12, 2014 08:04AM |
Registered: 10 years ago Posts: 14,682 |
Re: Another acceleration bug May 12, 2014 09:47AM |
Registered: 10 years ago Posts: 2,472 |
Re: Another acceleration bug May 12, 2014 10:02AM |
Registered: 10 years ago Posts: 14,682 |
Re: Another acceleration bug May 12, 2014 10:40AM |
Registered: 10 years ago Posts: 2,472 |
Quote
dc42
I agree with setting up the number of microsteps for each motor, along with the acceleration for each motor and a few other things. However I don't think your suggestion of generating interrupts at a rate much faster than the fastest step rate is workable, because the rate would be too high. Movement in the X or Y direction at 200mm/sec (the maximum I use at present) requires microstepping at nearly 18kHz, so that need would interrupts at about 18MHz @ 1024 interrupts/step. My plan was that in the ISR I would determine which motor(s) need to be stepped next and when, and schedule an interrupt for that time.
Re: Another acceleration bug May 12, 2014 11:02AM |
Registered: 10 years ago Posts: 14,682 |
Re: Another acceleration bug May 13, 2014 04:09AM |
Registered: 10 years ago Posts: 256 |
Quote
dc42
Dave,
[...]
I would also like to end the classification of move types into xy, z or e moves, with the exception that extruder-only moves are a bit special because of how the feed fate is interpreted. I'd like to work in Cartesian coordinates throughout. This combination would eliminate problems with xyz moves. And I'd like to make the timing of steps of the stepper motors independent of each other so that all the motors are driven smoothly, which is not how it is now for moves involving more than one motor.
Re: Another acceleration bug May 13, 2014 10:08AM |
Registered: 10 years ago Posts: 2,472 |
Quote
kwikius
This sounds good to me. Treat each axis as if the others didnt exist! There is no interaction that I can see.
Andy
Re: Another acceleration bug May 13, 2014 10:17AM |
Registered: 10 years ago Posts: 14,682 |
Re: Another acceleration bug May 15, 2014 11:16AM |
Registered: 10 years ago Posts: 665 |
Quote
dc42
Ideally, I'd rewrite a large part of the movement code, taking in proper handling of combined XYZ moves in the process.
Re: Another acceleration bug May 15, 2014 11:40AM |
Registered: 10 years ago Posts: 14,682 |
Re: Another acceleration bug May 16, 2014 08:03AM |
Registered: 10 years ago Posts: 2,472 |
Quote
dc42
Two updates:
1. I've now got combined XYZ moves working, with all accelerations and velocities within the configured limits; except that the lookahead doesn't work yet.
2. I believe the current lookahead algorithm is flawed anyway. It's fine when the angle between adjacent moves is very small, such as when printing circles with large radius. However, for fast movements with e.g. a 20 degree angle between adjacent moves, it commands high instantaneous velocity changes from the steppers and I can hear a knocking sound. I've done the maths and I can see why. It's only a problem at high print speeds, but I guess I'll rewrite the lookahead code too.
Re: Another acceleration bug May 30, 2014 04:38PM |
Registered: 10 years ago Posts: 2 |
Re: Another acceleration bug May 31, 2014 03:05AM |
Registered: 10 years ago Posts: 256 |
Quote
dc42
Two updates:
1. I've now got combined XYZ moves working, with all accelerations and velocities within the configured limits; except that the lookahead doesn't work yet.
2. I believe the current lookahead algorithm is flawed anyway. It's fine when the angle between adjacent moves is very small, such as when printing circles with large radius. However, for fast movements with e.g. a 20 degree angle between adjacent moves, it commands high instantaneous velocity changes from the steppers and I can hear a knocking sound. I've done the maths and I can see why. It's only a problem at high print speeds, but I guess I'll rewrite the lookahead code too.
Re: Another acceleration bug May 31, 2014 04:50AM |
Registered: 10 years ago Posts: 256 |
Quote
dmould
Quote
kwikius
This sounds good to me. Treat each axis as if the others didnt exist! There is no interaction that I can see.
Andy
Unfortunately there is interaction, especially between the X & Y axis. If you only consider speed and not acceleration, then with max X and Y speeds of 100mm/s, if there is a move from 0,0 to 100,200 then with Y moving at 100mm/s, X can only move at 50mm/s because it's speed is constrained by Y. But in a move from 0,0 to 200,100 it will be Y's speed that is constrained by X. If you add acceleration into the equation, the relationship becomes more complex (Think of a move from 0,0 to 100,100 followed by a move to 150,200).
Dave
(#106)
Re: Another acceleration bug May 31, 2014 05:56AM |
Registered: 10 years ago Posts: 145 |
Re: Another acceleration bug May 31, 2014 08:13AM |
Registered: 10 years ago Posts: 256 |
Quote
GregL
I am not sure that is strictly correct Andy.
If the extrusion rate is fixed at some maximum, the it is the combined XYZ speed which is important - that is, the speed in the X direction could limit the speed in the other two directions.
Greg
Re: Another acceleration bug May 31, 2014 08:41AM |
Registered: 10 years ago Posts: 209 |
Re: Another acceleration bug May 31, 2014 08:58AM |
Registered: 10 years ago Posts: 14,682 |
Re: Another acceleration bug May 31, 2014 01:16PM |
Registered: 13 years ago Posts: 1,611 |
Re: Another acceleration bug May 31, 2014 01:41PM |
Registered: 10 years ago Posts: 14,682 |
Quote
droftarts
We're looking at this as well, as a matter of urgency. Particularly with all the mutli-extruder code, it was becoming very necessary, so it's Adrian's number one priority at the moment. I don't really have any more detail at the moment, though.
Re: Another acceleration bug May 31, 2014 05:37PM |
Registered: 10 years ago Posts: 1,230 |
Quote
dc42
Quote
droftarts
We're looking at this as well, as a matter of urgency. Particularly with all the mutli-extruder code, it was becoming very necessary, so it's Adrian's number one priority at the moment. I don't really have any more detail at the moment, though.
I could save him some time, I've almost got it working.
Re: Another acceleration bug May 31, 2014 08:32PM |
Registered: 13 years ago Posts: 1,611 |
Quote
dc42
I could save him some time, I've almost got it working.
Re: Another acceleration bug June 01, 2014 05:21AM |
Registered: 10 years ago Posts: 14,682 |
Re: Another acceleration bug June 01, 2014 08:00AM |
Registered: 13 years ago Posts: 1,611 |
Re: Another acceleration bug June 01, 2014 10:36AM |
Registered: 10 years ago Posts: 14,682 |
Re: Another acceleration bug June 02, 2014 06:15AM |
Registered: 13 years ago Posts: 1,611 |
Re: Another acceleration bug June 02, 2014 12:16PM |
Registered: 10 years ago Posts: 14,682 |