Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Calibration
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Calibration
Commits
eb3be8aa
Commit
eb3be8aa
authored
Jun 22, 2018
by
Peter Jansweijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mode gm re-lock each link restart to average mode gm lock offsets (50 ps issue)
parent
c3bee37a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
pps_diff.py
sw/insitu_alpha/pps_diff.py
+6
-4
No files found.
sw/insitu_alpha/pps_diff.py
View file @
eb3be8aa
...
...
@@ -145,6 +145,8 @@ def link_restart(ser_master,ser_slave, master_is_switch = True):
wr2wrpc
(
ser_slave
,
"ptp stop
\r
"
,
"slv=>"
)
time
.
sleep
(
1
)
wr2wrpc
(
ser_slave
,
"mode slave
\r
"
,
"slv=>"
)
time
.
sleep
(
1
)
wr2wrpc
(
ser_slave
,
"ptp start
\r
"
,
"slv=>"
)
time
.
sleep
(
1
)
...
...
@@ -157,8 +159,8 @@ def link_restart(ser_master,ser_slave, master_is_switch = True):
else
:
wr2wrpc
(
ser_master
,
"ptp stop
\r
"
,
"mst=>"
)
time
.
sleep
(
1
)
#
wr2wrpc(ser_master,"mode gm\r","mst=>")
#
time.sleep (20)
wr2wrpc
(
ser_master
,
"mode gm
\r
"
,
"mst=>"
)
time
.
sleep
(
20
)
wr2wrpc
(
ser_master
,
"ptp start
\r
"
,
"mst=>"
)
time
.
sleep
(
1
)
...
...
@@ -561,8 +563,8 @@ if __name__ == "__main__":
ser_tunable
=
ser_slave
ser_tunable_str
=
"slv=>"
wr2wrpc
(
ser_master
,
"mode gm
\r
"
,
"mst=>"
)
wr2wrpc
(
ser_slave
,
"mode slave
\r
"
,
"slv=>"
)
#
wr2wrpc(ser_master,"mode gm\r","mst=>")
#
wr2wrpc(ser_slave,"mode slave\r","slv=>")
time
.
sleep
(
20
)
timestamp
=
time
.
localtime
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment