Skip to content
Snippets Groups Projects
Commit 1d88a719 authored by Pieter Donker's avatar Pieter Donker
Browse files

TR_tod_pps_delta_R now in seconds.

parent db9b801d
No related branches found
No related tags found
No related merge requests found
...@@ -45,13 +45,13 @@ ...@@ -45,13 +45,13 @@
#define C_Q_fft 2 #define C_Q_fft 2
#define C_N_sub 512 #define C_N_sub 512
#define C_N_sub_bf 488
#define C_N_step 1 #define C_N_step 1
#define C_N_crosslets_max 7 #define C_N_crosslets_max 7
#define C_N_scrap 512 // Number of 32 bit words in FPGA scrap memory. #define C_N_scrap 512 // Number of 32 bit words in FPGA scrap memory.
#define C_N_pol 2 // Number of antenna polarizations, X and Y. #define C_N_pol 2 // Number of antenna polarizations, X and Y.
#define C_A_pn 6 // Number of dual polarization antennas per Processing Node (PN) FPGA. #define C_A_pn 6 // Number of dual polarization antennas per Processing Node (PN) FPGA.
#define C_N_beamlets 976 // Number of beamlets per antenna band 488, 976 // #define C_N_beamlets 976 // Number of beamlets per antenna band 488, 976
#define C_N_sub_bf 488
#define C_200MHZ_1_CNT_NS 5 // Time of one cnt in nS #define C_200MHZ_1_CNT_NS 5 // Time of one cnt in nS
#define C_N_CLK_PER_PPS 200000000 #define C_N_CLK_PER_PPS 200000000
......
...@@ -145,7 +145,7 @@ bool TranslatorMap::translator(TermOutput& termout, const char cmd, const string ...@@ -145,7 +145,7 @@ bool TranslatorMap::translator(TermOutput& termout, const char cmd, const string
for (uint i=0; i<pps_offset_cnt.size(); i++) { for (uint i=0; i<pps_offset_cnt.size(); i++) {
if (pps_offset_cnt[i] > 0) { if (pps_offset_cnt[i] > 0) {
cout << "use pps_offset_cnt from node " << i << " cnt=" << pps_offset_cnt[i] << endl; cout << "use pps_offset_cnt from node " << i << " cnt=" << pps_offset_cnt[i] << endl;
pps_delta = (double)(pps_offset_cnt[i] * C_200MHZ_1_CNT_NS); pps_delta = (double)(pps_offset_cnt[i] * C_200MHZ_1_CNT_NS) / 1e9; // pps_delta in seconds now
break; break;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment