Re: [etherlab-users] Calculation of time_diff in ec_fsm_master_dc_offset()

2013-04-29 Thread Gavin Lambert
Quoth Florian Pose: Am 23.01.2013 17:36, schrieb Jun Yuan: 1. I must call ecrt_master_application_time() once somewhere before my run loop, otherwise I'll get error No app_time received up to now, and ec_fsm_master_state_dc_read_offset will not be executed. The app time given to the

Re: [etherlab-users] Calculation of time_diff in ec_fsm_master_dc_offset()

2013-02-05 Thread Florian Pose
Hello, I read your newer post already, just a quick comment on this. Am 23.01.2013 17:36, schrieb Jun Yuan: 1. I must call ecrt_master_application_time() once somewhere before my run loop, otherwise I'll get error No app_time received up to now, and ec_fsm_master_state_dc_read_offset will not

Re: [etherlab-users] Calculation of time_diff in ec_fsm_master_dc_offset()

2013-02-05 Thread Florian Pose
Hello, Am 30.01.2013 11:58, schrieb Jun Yuan: OK, I believe that I've found the final real solution. The variable 'correction' is necessary. Please ignore my last change. Find below my final patch for this problem. I'd love to hear any feedback. I don't understand why it should be better to

Re: [etherlab-users] Calculation of time_diff in ec_fsm_master_dc_offset()

2013-01-30 Thread Jun Yuan
Hello Florian, OK, I believe that I've found the final real solution. The variable 'correction' is necessary. Please ignore my last change. Find below my final patch for this problem. I'd love to hear any feedback. diff -r 9cdd7669dc0b master/fsm_master.c --- a/master/fsm_master.cThu Jan 10