About tcRunCycle()

More
18 May 2011 06:10 #9910 by euerka
About tcRunCycle() was created by euerka
When i read the source code in void tcRunCycle(TP_STRUCT *tp, TC_STRUCT *tc, double *v, int *on_final_decel) , I can't understand the follows mean:
discr = 0.5 * tc->cycle_time * tc->currentvel - (tc->target - tc->progress);
discr = 0.25 * pmSq(tc->cycle_time) - 2.0 / tc->maxaccel * discr;
newvel = maxnewvel = -0.5 * tc->maxaccel * tc->cycle_time +tc->maxaccel * pmSqrt(discr);
although i have read Simple Tp Notes(wiki.linuxcnc.org/emcinfo.pl?action=history&id=Simple_Tp_Notes), and understand it.
Is there anyone can explain it? or you can contact me with email: This email address is being protected from spambots. You need JavaScript enabled to view it.
Thank you very much.

Please Log in or Create an account to join the conversation.

More
18 May 2011 11:53 #9911 by BigJohnT
Replied by BigJohnT on topic Re:About tcRunCycle()
You might ask this on the mailing list as the developers hangout there.

John

Please Log in or Create an account to join the conversation.

More
18 May 2011 12:11 #9912 by euerka
Replied by euerka on topic Re:About tcRunCycle()
Yes. I think it is a basic question. Anyway thank you, i will try there.

Please Log in or Create an account to join the conversation.

More
18 May 2011 13:09 #9913 by BigJohnT
Replied by BigJohnT on topic Re:About tcRunCycle()
Yes, basic for a developer... mostly users hang out here.

John

Please Log in or Create an account to join the conversation.

More
19 May 2011 12:30 #9925 by euerka
Replied by euerka on topic Re:About tcRunCycle()
But there is nobody reply it. I am still looking forward to anyone explain it to me here.
Thank you!

Please Log in or Create an account to join the conversation.

More
20 May 2011 06:39 #9944 by euerka
Replied by euerka on topic Re:About tcRunCycle()
Anders Wallin have explained it on the mailing list. Thank him very much.Here it goes:http://www.anderswallin.net/2011/05/emc2-tpruncycle-revisited/

Chen Chengxi

Please Log in or Create an account to join the conversation.

Time to create page: 0.124 seconds
Powered by Kunena Forum