Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
discharge-corr
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cs
util
sequencer
discharge-corr
Commits
98d82306
Commit
98d82306
authored
3 years ago
by
Giulio Gaio
Browse files
Options
Downloads
Patches
Plain Diff
Fixed on command and decrease num of params
parent
fb1e9469
No related branches found
Branches containing commit
Tags
1.0.2
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/DischargeCorr.py
+10
-8
10 additions, 8 deletions
src/DischargeCorr.py
with
10 additions
and
8 deletions
src/DischargeCorr.py
+
10
−
8
View file @
98d82306
...
...
@@ -10,9 +10,9 @@
# DischargeCorr.py [selfseqdev] [mimofb] [gofprofile] [plane]
#
# Example:
# DischargeCorr.py seq/discharge/psch_sr opt/sr/discharge_psch_sr
sr/feedback/profile_s
hor
#
./
DischargeCorr.py seq/discharge/psch_sr opt/sr/discharge_psch_sr hor
#
# DischargeCorr.py seq/discharge/pscv_sr opt/sr/discharge_pscv_sr
sr/feedback/profile_s
ver
#
./
DischargeCorr.py seq/discharge/pscv_sr opt/sr/discharge_pscv_sr ver
#
import
sys
,
re
...
...
@@ -32,8 +32,8 @@ def main():
try
:
selfseq_dev
=
DeviceProxy
(
sys
.
argv
[
1
])
mimo_dev
=
DeviceProxy
(
sys
.
argv
[
2
])
mean_orbit_dev
=
DeviceProxy
(
sys
.
argv
[
3
]
)
plane
=
sys
.
argv
[
4
]
plane
=
sys
.
argv
[
3
]
mean_orbit_dev
=
DeviceProxy
(
"
sr/feedback/profile_s
"
)
except
DevFailed
as
df
:
print
(
str
(
df
))
sys
.
exit
(
1
)
...
...
@@ -183,10 +183,10 @@ def main():
# sensor configuration
config_sensors
=
[]
if
plane
==
"
hor
"
:
config_sensors
.
append
(
sys
.
argv
[
3
]
+
'
;AbsRmsOrbitHor;AbsRmsOrbitHor;
0.5
;0;0.6;
'
+
'
{:03f}
'
.
format
(
rms_ref
)
+
'
;0;500;0;ON,OFF,STANDBY;0,1,2
'
);
config_sensors
.
append
(
sys
.
argv
[
3
]
+
'
;AbsRmsOrbitHor;AbsRmsOrbitHor;
1
;0;0.6;
'
+
'
{:03f}
'
.
format
(
rms_ref
)
+
'
;0;500;0;ON,OFF,STANDBY;0,1,2
'
);
else
:
config_sensors
.
append
(
sys
.
argv
[
3
]
+
'
;AbsRmsOrbitVer;AbsRmsOrbitVer;
0.5
;0;0.6;
'
+
'
{:03f}
'
.
format
(
rms_ref
)
+
'
;0;500;0;ON,OFF,STANDBY;0,1,2
'
);
config_sensors
.
append
(
ps_list
[
max_idx
]
+
'
;Current;
'
+
ps_list
[
max_idx
]
+
'
;
1
;-16;16;
'
+
'
{:03f}
'
.
format
(
target_val
)
+
'
;0;500;0;ON;0,1,2
'
);
config_sensors
.
append
(
sys
.
argv
[
3
]
+
'
;AbsRmsOrbitVer;AbsRmsOrbitVer;
1
;0;0.6;
'
+
'
{:03f}
'
.
format
(
rms_ref
)
+
'
;0;500;0;ON,OFF,STANDBY;0,1,2
'
);
config_sensors
.
append
(
ps_list
[
max_idx
]
+
'
;Current;
'
+
ps_list
[
max_idx
]
+
'
;
5
;-16;16;
'
+
'
{:03f}
'
.
format
(
target_val
)
+
'
;0;500;0;ON;0,1,2
'
);
config_sensors
.
append
(
'
NONE;NONE
'
);
config_sensors
.
append
(
'
NONE;NONE
'
);
...
...
@@ -205,9 +205,11 @@ def main():
mimo_dev
.
LimitKickFactor
=
1
# turn on the optimizer
mimo_dev
.
On
mimo_dev
.
On
()
time
.
sleep
(
5
)
# check the mimo is running (ON)
while
(
mimo_dev
.
read_attribute
(
'
State
'
)
==
0
):
time
.
sleep
(
2
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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