jerk

3rd-order rate limiter in Simulink? How to generate smooth triggered signals?

匿名 (未验证) 提交于 2019-12-03 01:10:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: First for those, who are not familiar with Simulink, there is a imaginable outside-Simulink partial solution: I need to create a vector satisfying the following conditions: known initial value a1 known final value a2 it has a pre-defined step size, but the length is not pre-determined the first derivative over the whole range is limited to v_max resp. -v_max the second derivative over the whole range is limited to a_max resp. -a_max the third derivative over the whole range is limited to j_max resp. -j_max at the first and the final point

Step function in matplotlib

匿名 (未验证) 提交于 2019-12-03 00:59:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have seen some questions asked about step functions in matplotlib but this one is different. Here is my function: def JerkFunction(listOfJerk): '''Return the plot of a sequence of jerk''' #initialization of the jerk x = np.linspace(0,5,4) y = listOfJerk #step signal plt.axis([0,5,-2,2]) plt.step(x,y,'y') #step display plt.xlabel('Time (s)') plt.ylabel('Jerk (m/s^3)') plt.title('Jerk produced by the engine') return plt.show() I would like to have the curve obtained when I put JerkFunction([1,1,-1,1]) but by entering: [1,-1,1,-1] , indeed,