Click here to Skip to main content
15,890,506 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Trapezoid interpolation Pin
Daniel Pfeffer12-Feb-17 3:40
professionalDaniel Pfeffer12-Feb-17 3:40 
AnswerRe: Trapezoid interpolation Pin
Patrice T8-Feb-17 6:41
mvePatrice T8-Feb-17 6:41 
GeneralRe: Trapezoid interpolation Pin
Joan M8-Feb-17 9:05
professionalJoan M8-Feb-17 9:05 
GeneralRe: Trapezoid interpolation Pin
Patrice T8-Feb-17 9:34
mvePatrice T8-Feb-17 9:34 
GeneralRe: Trapezoid interpolation Pin
Ralf Meier8-Feb-17 10:04
mveRalf Meier8-Feb-17 10:04 
GeneralRe: Trapezoid interpolation Pin
Joan M9-Feb-17 8:58
professionalJoan M9-Feb-17 8:58 
GeneralRe: Trapezoid interpolation Pin
Patrice T9-Feb-17 11:45
mvePatrice T9-Feb-17 11:45 
GeneralRe: Trapezoid interpolation Pin
Joan M9-Feb-17 21:57
professionalJoan M9-Feb-17 21:57 
Of course Patrice:

Notice that the variables I've written that start with u_ are values entered by the user and the ones that start with c_ are values calculated by the algorithm.

This set of parameters doesn't reach the user vmax and require 37 iterations (ugliest code in the world) to fins the right one:
u_vmax	3000 mm/s
u_v0	2200 mm/s  <--------- the important different one
u_vf	0 mm/s	
u_a	2000 mm/s^2	
u_x0	3000 mm	
u_xf	6000 mm	
c_dist	3000 mm
c_vmax	2901,250001 mm


This set of parameters works without reaching the vmax as the dynamics doesn't allow the motor to reach it:
u_vmax	3000 mm/s	
u_v0	0 mm/s  <--------- the important different one	
u_vf	0 mm/s	
u_a	2000 mm/s^2	
u_x0	3000 mm	
u_xf	6000 mm	
c_dist	3000 mm	
c_vmax	2449,489743 mm	


This set of parameters work as the vmax entered by the user is reached and we have some part of the movement at constant speed:
u_vmax	3000 mm/s	
u_v0	2600 mm/s  <--------- the important different one
u_vf	0 mm/s	
u_a	2000 mm/s^2	
u_x0	3000 mm	
u_xf	6000 mm	
c_dist	3000 mm	
c_vmax	3000 mm	


Thank you!
GeneralRe: Trapezoid interpolation Pin
Patrice T9-Feb-17 22:53
mvePatrice T9-Feb-17 22:53 
GeneralRe: Trapezoid interpolation Pin
Joan M9-Feb-17 23:10
professionalJoan M9-Feb-17 23:10 
GeneralRe: Trapezoid interpolation Pin
Patrice T9-Feb-17 23:21
mvePatrice T9-Feb-17 23:21 
GeneralRe: Trapezoid interpolation Pin
Joan M9-Feb-17 23:28
professionalJoan M9-Feb-17 23:28 
GeneralRe: Trapezoid interpolation Pin
Joan M12-Feb-17 3:03
professionalJoan M12-Feb-17 3:03 
QuestionLongest subarray: minimum first element, maximum last element Pin
Member 105660894-Feb-17 23:44
Member 105660894-Feb-17 23:44 
AnswerRe: Longest subarray: minimum first element, maximum last element Pin
Richard Andrew x645-Feb-17 3:25
professionalRichard Andrew x645-Feb-17 3:25 
QuestionRe: Longest subarray: minimum first element, maximum last element Pin
Member 105660895-Feb-17 3:28
Member 105660895-Feb-17 3:28 
AnswerRe: Longest subarray: minimum first element, maximum last element Pin
Patrice T8-Feb-17 9:42
mvePatrice T8-Feb-17 9:42 
AnswerRe: Longest subarray: minimum first element, maximum last element Pin
Patrice T8-Feb-17 9:52
mvePatrice T8-Feb-17 9:52 
GeneralRe: Longest subarray: minimum first element, maximum last element Pin
Member 105660898-Feb-17 10:10
Member 105660898-Feb-17 10:10 
GeneralRe: Longest subarray: minimum first element, maximum last element Pin
Patrice T8-Feb-17 10:56
mvePatrice T8-Feb-17 10:56 
GeneralRe: Longest subarray: minimum first element, maximum last element Pin
Member 105660898-Feb-17 15:15
Member 105660898-Feb-17 15:15 
QuestionAccounting aging algorithm help Pin
kimbhoot26-Jan-17 5:52
kimbhoot26-Jan-17 5:52 
AnswerRe: Accounting aging algorithm help Pin
Gerry Schmitz26-Jan-17 7:08
mveGerry Schmitz26-Jan-17 7:08 
GeneralRe: Accounting aging algorithm help Pin
kimbhoot26-Jan-17 10:51
kimbhoot26-Jan-17 10:51 
GeneralRe: Accounting aging algorithm help Pin
Gerry Schmitz26-Jan-17 11:04
mveGerry Schmitz26-Jan-17 11:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.