Skip to content
GitLab
Explore
Sign in
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
20304e83
Commit
20304e83
authored
15 years ago
by
Pieter Donker
Browse files
Options
Downloads
Patches
Plain Diff
Bug 335: changed rcu init start order
parent
af0489f5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
MAC/APL/PAC/Cal_Server/src/CalServer.cc
+22
-16
22 additions, 16 deletions
MAC/APL/PAC/Cal_Server/src/CalServer.cc
with
22 additions
and
16 deletions
MAC/APL/PAC/Cal_Server/src/CalServer.cc
+
22
−
16
View file @
20304e83
...
...
@@ -617,19 +617,37 @@ GCFEvent::TResult CalServer::handle_cal_start(GCFEvent& e, GCFPortInterface &por
m_subarrays
.
schedule_add
(
subarray
);
// calibration will start within one second
_enableRCUs
(
subarray
);
bitset
<
MEPHeader
::
MAX_N_RCUS
>
validmask
;
for
(
int
rcu
=
0
;
rcu
<
m_n_rcus
;
++
rcu
)
{
validmask
.
set
(
rcu
);
// select rcu
}
// calibration will start within one second
// set the spectral inversion right
// prepare RSP command
RSPSetbypassEvent
specInvCmd
;
bool
SIon
(
start
.
rcumode
()(
0
).
getNyquistZone
()
==
2
);
// on or off?
specInvCmd
.
timestamp
=
Timestamp
(
0
,
0
);
specInvCmd
.
rcumask
=
start
.
subset
&
validmask
;
specInvCmd
.
settings
().
resize
(
1
);
specInvCmd
.
settings
()(
0
).
setXSI
(
SIon
);
specInvCmd
.
settings
()(
0
).
setYSI
(
SIon
);
LOG_DEBUG_STR
(
"NyquistZone = "
<<
start
.
rcumode
()(
0
).
getNyquistZone
()
<<
" setting spectral inversion "
<<
((
SIon
)
?
"ON"
:
"OFF"
));
m_rspdriver
.
send
(
specInvCmd
);
//
// set the control register of the RCU's
// if in HBA mode turn on HBAs in groups to prevent resetting of boards
//
RSPSetrcuEvent
setrcu
;
bitset
<
MEPHeader
::
MAX_N_RCUS
>
validmask
;
bitset
<
MEPHeader
::
MAX_N_RCUS
>
testmask
;
Timestamp
timeStamp
;
...
...
@@ -676,18 +694,6 @@ GCFEvent::TResult CalServer::handle_cal_start(GCFEvent& e, GCFPortInterface &por
}
}
// set the spectral inversion right
// prepare RSP command
RSPSetbypassEvent
specInvCmd
;
bool
SIon
(
start
.
rcumode
()(
0
).
getNyquistZone
()
==
2
);
// on or off?
specInvCmd
.
timestamp
=
Timestamp
(
0
,
0
);
specInvCmd
.
rcumask
=
setrcu
.
rcumask
;
specInvCmd
.
settings
().
resize
(
1
);
specInvCmd
.
settings
()(
0
).
setXSI
(
SIon
);
specInvCmd
.
settings
()(
0
).
setYSI
(
SIon
);
LOG_DEBUG_STR
(
"NyquistZone = "
<<
start
.
rcumode
()(
0
).
getNyquistZone
()
<<
" setting spectral inversion "
<<
((
SIon
)
?
"ON"
:
"OFF"
));
m_rspdriver
.
send
(
specInvCmd
);
}
}
port
.
send
(
ack
);
// send ack
...
...
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