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
3e461f1b
"SAS/TMSS/git@git.astron.nl:ro/lofar.git" did not exist on "ecf1742d450f30fe82f5fba91d710262710341f2"
Commit
3e461f1b
authored
9 years ago
by
Pieter Donker
Browse files
Options
Downloads
Patches
Plain Diff
Task #8966: now CalibrationControl is also working
parent
8cd16866
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/StationCU/src/CalibrationControl/CalibrationControl.cc
+13
-14
13 additions, 14 deletions
...PL/StationCU/src/CalibrationControl/CalibrationControl.cc
with
13 additions
and
14 deletions
MAC/APL/StationCU/src/CalibrationControl/CalibrationControl.cc
+
13
−
14
View file @
3e461f1b
...
@@ -74,7 +74,8 @@ CalibrationControl::CalibrationControl(const string& cntlrName) :
...
@@ -74,7 +74,8 @@ CalibrationControl::CalibrationControl(const string& cntlrName) :
itsState
(
CTState
::
NOSTATE
)
itsState
(
CTState
::
NOSTATE
)
{
{
LOG_TRACE_OBJ_STR
(
cntlrName
<<
" construction"
);
LOG_TRACE_OBJ_STR
(
cntlrName
<<
" construction"
);
LOG_INFO
(
Version
::
getInfo
<
StationCUVersion
>
(
"CalibrationControl"
));
LOG_INFO
(
Version
::
getInfo
<
StationCUVersion
>
(
"CalibrationControl"
));
// First readin our observation related config file.
// First readin our observation related config file.
LOG_DEBUG_STR
(
"Reading parset file:"
<<
LOFAR_SHARE_LOCATION
<<
"/"
<<
cntlrName
);
LOG_DEBUG_STR
(
"Reading parset file:"
<<
LOFAR_SHARE_LOCATION
<<
"/"
<<
cntlrName
);
...
@@ -153,17 +154,17 @@ void CalibrationControl::setState(CTState::CTstateNr newState)
...
@@ -153,17 +154,17 @@ void CalibrationControl::setState(CTState::CTstateNr newState)
//
//
// convertFilterSelection2int(string)
// convertFilterSelection2int(string)
//
//
int32
CalibrationControl
::
convertFilterSelection2int
(
const
string
&
filter
selection
)
int32
CalibrationControl
::
convertFilterSelection2int
(
const
string
&
band
selection
)
{
{
if
(
filter
selection
==
"LBA_10_70"
)
{
return
(
BAND_10_70
);
}
// 160 Mhz
if
(
band
selection
==
"LBA_10_70"
)
{
return
(
BAND_10_70
);
}
// 160 Mhz
if
(
filter
selection
==
"LBA_10_90"
)
{
return
(
BAND_10_90
);
}
// 200 Mhz
if
(
band
selection
==
"LBA_10_90"
)
{
return
(
BAND_10_90
);
}
// 200 Mhz
if
(
filter
selection
==
"LBA_30_70"
)
{
return
(
BAND_30_70
);
}
// 160 Mhz
if
(
band
selection
==
"LBA_30_70"
)
{
return
(
BAND_30_70
);
}
// 160 Mhz
if
(
filter
selection
==
"LBA_30_90"
)
{
return
(
BAND_30_90
);
}
// 200 Mhz
if
(
band
selection
==
"LBA_30_90"
)
{
return
(
BAND_30_90
);
}
// 200 Mhz
if
(
filter
selection
==
"HBA_110_190"
)
{
return
(
BAND_110_190
);
}
// 200 Mhz
if
(
band
selection
==
"HBA_110_190"
)
{
return
(
BAND_110_190
);
}
// 200 Mhz
if
(
filter
selection
==
"HBA_170_230"
)
{
return
(
BAND_170_230
);
}
// 160 Mhz
if
(
band
selection
==
"HBA_170_230"
)
{
return
(
BAND_170_230
);
}
// 160 Mhz
if
(
filter
selection
==
"HBA_210_250"
)
{
return
(
BAND_210_250
);
}
// 200 Mhz
if
(
band
selection
==
"HBA_210_250"
)
{
return
(
BAND_210_250
);
}
// 200 Mhz
LOG_WARN_STR
(
"
filter
selection value '"
<<
filter
selection
<<
"' not recognized"
);
LOG_WARN_STR
(
"
band
selection value '"
<<
band
selection
<<
"' not recognized"
);
return
(
BAND_UNDEFINED
);
return
(
BAND_UNDEFINED
);
}
}
...
@@ -631,9 +632,7 @@ bool CalibrationControl::startCalibration()
...
@@ -631,9 +632,7 @@ bool CalibrationControl::startCalibration()
CALStartEvent
calStartEvent
;
CALStartEvent
calStartEvent
;
calStartEvent
.
name
=
itsObsPar
->
beams
[
i
].
name
;
calStartEvent
.
name
=
itsObsPar
->
beams
[
i
].
name
;
StationConfig
config
;
StationConfig
config
;
// TODO: As long as the AntennaArray.conf uses different names as SAS we have to use this dirty hack.
calStartEvent
.
antennaSet
=
itsObsPar
->
beams
[
i
].
antennaSet
;
// calStartEvent.parent = itsObsPar->getAntennaArrayName(config.hasSplitters);
calStartEvent
.
antennaSet
=
AS
->
antennaField
(
itsObsPar
->
beams
[
i
].
antennaSet
);
calStartEvent
.
band
=
convertFilterSelection2int
(
itsObsPar
->
filter
);
calStartEvent
.
band
=
convertFilterSelection2int
(
itsObsPar
->
filter
);
calStartEvent
.
rcuMask
=
itsObsPar
->
getRCUbitset
(
0
,
0
,
itsObsPar
->
beams
[
i
].
antennaSet
)
&
calStartEvent
.
rcuMask
=
itsObsPar
->
getRCUbitset
(
0
,
0
,
itsObsPar
->
beams
[
i
].
antennaSet
)
&
AS
->
RCUallocation
(
itsObsPar
->
beams
[
i
].
antennaSet
);
AS
->
RCUallocation
(
itsObsPar
->
beams
[
i
].
antennaSet
);
...
...
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