summaryrefslogtreecommitdiff
path: root/cesar/cp2/pwl/doc/scilab/src/estimateBP.sce
diff options
context:
space:
mode:
authorlaranjeiro2008-05-19 08:22:25 +0000
committerlaranjeiro2008-05-19 08:22:25 +0000
commitaf492ffe895b62ac0eddae8d4b369bfaa0e3f870 (patch)
treea044da1d574ce5464cc673d530381fc5314f2790 /cesar/cp2/pwl/doc/scilab/src/estimateBP.sce
parent3c0082f128c3097068ac27a8e0d5b745fc7b5a84 (diff)
pwl: complete the scilab simulation to write the table for the unit test
in C. git-svn-id: svn+ssh://pessac/svn/cesar/trunk@2015 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/cp2/pwl/doc/scilab/src/estimateBP.sce')
-rw-r--r--cesar/cp2/pwl/doc/scilab/src/estimateBP.sce5
1 files changed, 2 insertions, 3 deletions
diff --git a/cesar/cp2/pwl/doc/scilab/src/estimateBP.sce b/cesar/cp2/pwl/doc/scilab/src/estimateBP.sce
index 9564822286..3f7329db01 100644
--- a/cesar/cp2/pwl/doc/scilab/src/estimateBP.sce
+++ b/cesar/cp2/pwl/doc/scilab/src/estimateBP.sce
@@ -14,11 +14,10 @@
// @param date_ntb the matrix containing the previous zc cross.
// @param bp_ntb the beacon period in NTB clock base.
// @param zc ntb the ACL zero cross.
-// @param fvar_ntb the frequency variation in NTB.
// @return the [per, date_ntb']
-function [res] = cp_pwl_estimate_beacon_period (date_ntb, bp_ntb, zc_ntb, fvar_ntb)
+function [res] = cp_pwl_estimate_beacon_period (date_ntb, bp_ntb, zc_ntb)
-date_ntb(1) = phy_clock_get_zero_cross_captured_date (date_ntb(2), fvar_ntb);
+date_ntb(1) = phy_clock_get_zero_cross_captured_date (date_ntb(2));
diff_ntb = modulo((date_ntb(1) - date_ntb(2)), bp_ntb + 10000);
per_ntb = (4-(diff_ntb / zc_ntb)) * zc_ntb + diff_ntb;