Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
PyPCC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
LOFAR2.0
PyPCC
Commits
6970006b
Commit
6970006b
authored
Feb 14, 2023
by
Paulus Kruger
Browse files
Options
Downloads
Patches
Plain Diff
DAB filter on opcua point
parent
a488c40f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#44181
passed
Feb 14, 2023
Stage: image
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
pypcc/config/RECVTR_HB.yaml
+2
-2
2 additions, 2 deletions
pypcc/config/RECVTR_HB.yaml
pypcc/opcuaserv/yamlreader.py
+2
-2
2 additions, 2 deletions
pypcc/opcuaserv/yamlreader.py
scripts/DABselect.py
+4
-4
4 additions, 4 deletions
scripts/DABselect.py
with
8 additions
and
8 deletions
pypcc/config/RECVTR_HB.yaml
+
2
−
2
View file @
6970006b
...
@@ -612,8 +612,8 @@ variables:
...
@@ -612,8 +612,8 @@ variables:
#RCU2H points
#RCU2H points
-
name
:
RCU_DAB_
select
-
name
:
RCU_DAB_
filter_on
description
:
DAB filter enable
1=enabled, 2=disabled
description
:
DAB filter enable
driver
:
I2C_RCU
driver
:
I2C_RCU
devreg
:
[
IO4.GPIO1
,
IO4.GPIO1
,
IO4.GPIO1
]
devreg
:
[
IO4.GPIO1
,
IO4.GPIO1
,
IO4.GPIO1
]
bitoffset
:
[
0
,
2
,
4
]
bitoffset
:
[
0
,
2
,
4
]
...
...
This diff is collapsed.
Click to expand it.
pypcc/opcuaserv/yamlreader.py
+
2
−
2
View file @
6970006b
...
@@ -121,7 +121,7 @@ def var2byte(v,data):
...
@@ -121,7 +121,7 @@ def var2byte(v,data):
logging
.
warn
(
"
setvar unsupported type
"
);
logging
.
warn
(
"
setvar unsupported type
"
);
return
None
;
return
None
;
data2
=
[
d
for
d
in
data2
]
data2
=
[
d
for
d
in
data2
]
return
data2
return
data2
,
mask
class
yamlreader
(
yamlconfig
):
class
yamlreader
(
yamlconfig
):
def
__init__
(
self
,
i2cserver
,
yamlfile
=
'
RCU
'
):
def
__init__
(
self
,
i2cserver
,
yamlfile
=
'
RCU
'
):
...
@@ -244,7 +244,7 @@ class yamlreader(yamlconfig):
...
@@ -244,7 +244,7 @@ class yamlreader(yamlconfig):
logging
.
info
(
"
Update variable
"
)
logging
.
info
(
"
Update variable
"
)
var1
.
set_value
(
data
);
var1
.
set_value
(
data
);
return
;
return
;
data2
=
var2byte
(
v
,
data
)
data2
,
mask
=
var2byte
(
v
,
data
)
logging
.
info
(
str
((
"
setvar
"
,
v
[
'
name
'
],
data2
,
mask
)));
logging
.
info
(
str
((
"
setvar
"
,
v
[
'
name
'
],
data2
,
mask
)));
if
data2
is
None
:
return
if
data2
is
None
:
return
self
.
SetBusy
()
self
.
SetBusy
()
...
...
This diff is collapsed.
Click to expand it.
scripts/DABselect.py
+
4
−
4
View file @
6970006b
from
test_common
import
*
from
test_common
import
*
name
=
"
RCU_DAB_
select
"
name
=
"
RCU_DAB_
filter_on
"
#RCU=[0,1,2,3,4,5,8,12];
#RCU=[0,1,2,3,4,5,8,12];
RCU
=
[
0
,
1
,
2
,
3
];
RCU
=
[
8
,
9
,
10
,
11
];
Att
=
[
2
,
2
,
2
]
#2=DAB off
Att
=
[
True
]
*
3
#Att=[
1,1,1] #1=DAB on
#Att=[
False]*3
connect
()
connect
()
setAntmask
(
RCU
)
setAntmask
(
RCU
)
...
...
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