Jack7
- 36
- 10
Ahh! I see! Thank you so much for explaining it like that, that makes a lot of sense!malawi_glenn said:You could define piece-wise constant accelerations over several time-intervals.
...
So it sounds like I need to write a custom function. This function needs to:
- Fix the "v0" and "t0" values to zero
- Fix the "v" and "t" values to the relevant constraints
- Use some sort of loop to iteratively add in additional points until the area = "s" (± some small error)
The key challenge I foresee with doing this automated is keeping the shape of the curve smooth. As you point out, it should avoid sharp rises as much as possible, so it will need to stagger the slope as much as possible. This requires the function to have a method of assessing the shape as points are added, and factoring that into the construction process. It sounds like this will be a challenge! But it does give me a clear route forward which helps tremendously. (I suspect there are algorithms that are already capable of doing this, so I will look into that).
Thank you so much!
