Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Bliss
bliss
Commits
984e7c6e
Commit
984e7c6e
authored
May 04, 2021
by
Sebastien Petitdemange
Committed by
Cyril Guilloud
May 21, 2021
Browse files
pi_e753: fixed offset wave start + add 2 helper methods to control wave
parent
a85925c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
bliss/controllers/motors/pi_e753.py
View file @
984e7c6e
...
...
@@ -436,10 +436,10 @@ class PI_E753(pi_gcs.Communication, pi_gcs.Recorder, Controller):
(
0.5
*
wavelen
),
)
else
:
cmd
=
b
"WAV 1 X SIN_P %d %
d
%
d
%d %d %d"
%
(
cmd
=
b
"WAV 1 X SIN_P %d %
f
%
f
%d %d %d"
%
(
wavelen
,
+
amplitude
,
offset
,
offset
-
amplitude
/
2
,
wavelen
,
0
,
(
0.5
*
wavelen
),
...
...
@@ -512,3 +512,11 @@ class Axis(axis_module.Axis):
yield
finally
:
self
.
controller
.
stop_wave
(
self
)
def
start_wave
(
self
,
wavetype
,
offset
,
amplitude
,
nb_cycles
,
wavelen
,
wait
=
False
):
self
.
controller
.
start_wave
(
self
,
wavetype
,
offset
,
amplitude
,
nb_cycles
,
wavelen
,
wait
=
wait
)
def
stop_wave
(
self
):
self
.
controller
.
stop_wave
(
self
)
Write
Preview
Supports
Markdown
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!
Cancel
Please
register
or
sign in
to comment