Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
adc8ea24
Commit
adc8ea24
authored
8 years ago
by
Pieter Donker
Browse files
Options
Downloads
Patches
Plain Diff
Task #10073: changed dumping procedure in TBBDriver
parent
091e58bd
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
MAC/APL/PIC/TBB_Driver/src/ReadCmd.cc
+35
-37
35 additions, 37 deletions
MAC/APL/PIC/TBB_Driver/src/ReadCmd.cc
with
35 additions
and
37 deletions
MAC/APL/PIC/TBB_Driver/src/ReadCmd.cc
+
35
−
37
View file @
adc8ea24
...
...
@@ -220,16 +220,14 @@ void ReadCmd::saveTpAckEvent(GCFEvent& event)
double
sampletime
=
1.
/
(
itsLastSavedSampleFreq
*
1E6
);
// in sec
// calculate time of last sample in memory
NsTimestamp
lastSampleTime
(
itsLastSavedSecond
+
((
itsLastSavedSampleNr
+
itsLastSavedNrOfSamples
)
*
sampletime
));
NsTimestamp
lastSampleTime
(
itsLastSavedSecond
+
((
itsLastSavedSampleNr
+
itsLastSavedNrOfSamples
)
*
sampletime
));
// calculate time of first sample in memory
NsTimestamp
firstSampleTime
((
double
)
lastSampleTime
-
(
TS
->
getChPageSize
(
getChannelNr
())
*
itsLastSavedNrOfSamples
*
sampletime
));
NsTimestamp
firstSampleTime
((
double
)
lastSampleTime
-
(
TS
->
getChPageSize
(
getChannelNr
())
*
itsLastSavedNrOfSamples
*
sampletime
));
// calculate start and stop time
NsTimestamp
startTimestamp
=
itsTimestamp
-
itsTimeBefore
;
NsTimestamp
stopTimestamp
=
itsTimestamp
+
itsTimeAfter
;
NsTimestamp
startTimestamp
(
itsTimestamp
-
itsTimeBefore
)
;
NsTimestamp
stopTimestamp
(
itsTimestamp
+
itsTimeAfter
)
;
#if 1
//LOG_DEBUG_STR(formatString("Timestamp = %lu seconds %lu nseconds", itsTimestamp.sec(), itsTimestamp.nsec()));
...
...
@@ -267,8 +265,8 @@ void ReadCmd::saveTpAckEvent(GCFEvent& event)
setDone
(
true
);
}
itsTimeBefore
=
itsTimestamp
-
startTimestamp
;
itsTimeAfter
=
stopTimestamp
-
itsTimestamp
;
itsTimeBefore
.
set
(
itsTimestamp
-
startTimestamp
)
;
itsTimeAfter
.
set
(
stopTimestamp
-
itsTimestamp
)
;
// convert it to board units
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment