@@ -932,7 +932,7 void applyCorrection( double correction | |||
|
932 | 932 | } |
|
933 | 933 | else |
|
934 | 934 | { |
|
935 | correctionInt = floor(correction); | |
|
935 | correctionInt = 2 * floor(correction); | |
|
936 | 936 | } |
|
937 | 937 | } |
|
938 | 938 | else |
@@ -943,7 +943,7 void applyCorrection( double correction | |||
|
943 | 943 | } |
|
944 | 944 | else |
|
945 | 945 | { |
|
946 | correctionInt = ceil(correction); | |
|
946 | correctionInt = 2 * ceil(correction); | |
|
947 | 947 | } |
|
948 | 948 | } |
|
949 | 949 | waveform_picker_regs->delta_snapshot = waveform_picker_regs->delta_snapshot + correctionInt; |
@@ -987,9 +987,7 void snapshot_resynchronization( unsigne | |||
|
987 | 987 | PRINTF1("CORRECTION === %d\n", nbSnapshots); |
|
988 | 988 | state = MEASURE; |
|
989 | 989 | computeCorrection( timePtr ); |
|
990 | correction = -correction; | |
|
991 | PRINTF1("CORRECTION === correction = %.2f\n", correction ); | |
|
992 | applyCorrection( correction ); | |
|
990 | set_wfp_delta_snapshot(); | |
|
993 | 991 | PRINTF1("CORRECTION === delta_snapshot = %d\n", waveform_picker_regs->delta_snapshot); |
|
994 | 992 | //**** |
|
995 | 993 | break; |
General Comments 0
You need to be logged in to leave comments.
Login now